1 min read
The Wishlist V3 SDK is where your customers can save their favourite products to add them later to their cart. It is made up of all the components required to present a Wishlist screen.
Without any customisation, Wishlist V3 screen looks like this:
Start using the Wishlist V3 SDK
The platform module includes the Wishlist V3 SDK. To start using it, you need to set to true the value
WishlistComponentSettings. The Wishlist V3 SDK is composed of these modules:
The Wishlist V3 SDK dependencies are injected using Koin. Wishlist V3 SDK provides the default dependencies definitions via these Koin modules:
The Wishlist V3 SDK is configurable via
WishlistComponentSettings. Through WishlistComponentSettings you can configure:
isWishlistV3Enabled: to enable Wishlist V3, disabled by default.
wishlistLevel: it controls the amount of data required to add to wishlist. It allows these 3 values:
PRODUCT: the whole product is added to the wishlist.
LISTING(default): the listing id is required. It means only a subset of variants will be added to the wishlist. For example, on an app with 2 forms, colour and size, different colours will appear as different wishlist entries.
VARIANT: the variant id is required. It means only one variant will be added to the wishlist. For example, on an app with 2 forms, colour and size, both forms will be required before adding the product to the wishlist.
pageSize: it controls the size of the pagination page. In general, this only drives the amount of products prefetched initially (3 * pageSize) as backend controls the page size.