Hi, I’m trying to adapt this wishlist tutorial which works for product pages to dynamic item or list pages.
Unfortunately. I can’t work out how to change this piece of code, so it gets the current item from the dynamic item page instead of getting the product:
w.onReady(async function () {
product = await $w('#productPage1').getProduct();
});
Can anyone help? And would this tutorial also work on dynamic list pages, so that a user can add items to his wishlist directly on a repeater/dynamic list?
Thank you so much for your help!