Custom Trigger

Custom trigger for wish list panel

If you want your custom button on a product page, you can simply do this by calling the link_click() function, as Hello Retail already have the meta-data for this specific product. This will trigger the wish list panel to slide out and add the product to the wish list.
1
// Custom event to trigger the wish list panel to slide out, and add the current product to the wishlist.
2
ADDWISH_PARTNER_NS.link_click();
Copied!
If you want to show the wish list without adding the current product, you can use show_panel(true) instead.
1
// Custom event to trigger the wish list panel to slide out, without adding a product.
2
ADDWISH_PARTNER_NS.show_panel(true);
Copied!

Last modified 1yr ago