Ability for product group child items add to Wishlist/Save for Later
Currently there is no ability to have child items added to save for later/add to wishlist from the the parent product page. I have tried workarounds by adding a button that then manipulates the request like this:
all('.hbtnAddToWishlist', (b: HTMLButtonElement)=> {
b.addEventListener('click', (e)=> {
e.preventDefault();
e.stopPropagation();
(byId('hfItemID') as HTMLInputElement).value = b.dataset.id;
let btn = (byId('hbtnAddToWishlist') as HTMLButtonElement);
// btn.name = 'ibtnAddToWishlist';
btn.value = 'Save For Later'
btn.click();
})
});
But it won't work
1
Please sign in to leave a comment.
Comments
0 comments