You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You could do it with a JS/jQuery script and regex.
Ex: Your product is a Gucci Bag. To hide it in single page product if (/gucci-bag/.test(window.location.href)) { // To hide it jQuery("alg-wc-wl-btn-wrapper").hide() // To remove it from HTML jQuery("alg-wc-wl-btn-wrapper").remove() }
If you want to hide it from product listing: jQuery(".woocommerce-loop-product__title").each(function(){ var product = new RegExp(jQuery(this).text()); if (product.test(/Gucci Bag/)){ jQuery(this).parent().siblings( ".alg-wc-wl-btn-wrapper" ).hide() } })
Is it possible to deactivate the wishlist button on a specific product?
Thanks
Best regards,
Patric
The text was updated successfully, but these errors were encountered: