WishlistItem container
The WishlistItem
container manages and displays a single product from a wishlist. It allows users to interact with the product, such as moving it to the cart or navigating to the product details page.
For complex products that have no variant selected in the wishlist, the Move To Cart button becomes a Customize button. Users must select a variant first by navigating to the product details page.
Its behavior is driven by configuration options such as moveProdToCart
, getProductData
, getRefinedProduct
and routing via routeProdDetailPage
callbacks.
WishlistItem container
Configurations
The WishlistItem
container provides the following configuration options:
Example
The following example demonstrates how to render the WishlistItem
container:
provider.render(WishlistItem, { item: sampleWishlistItem, moveProdToCart: cartApi.addProductsToCart, routeProdDetailPage: (product) => rootLink(`/products/${product.urlKey}/${product.sku}`), getProductData: pdpApi.getProductData, getRefinedProduct: pdpApi.getRefinedProduct });