Skip to main content

AddToWishlistProductPageWidget

This widget allows users to add or remove the current product and its variant to or from their wishlist on product pages.

Widget example

Add

Add to wishlist widget example

Remove

Remove from wishlist widget example

Code

<div
class="gw-wl-add-to-wishlist-placeholder"
data-gw-button-class="custom-class-name"
data-gw-product-id="1234567890"
data-gw-variant-id="1234567890"
style="display: block"
></div>

Attributes

  • data-gw-button-class: Specifies the custom class name for the button.
  • data-gw-product-id: Specifies the unique identifier for the product to be added or removed from the wishlist.
  • data-gw-variant-id: Specifies the unique identifier for the product variant to be added or removed from the wishlist.