How to hide wishlist button for specific products (e.g. auction/pre-order)?

Written by Admin

May 19, 2021

1. The following code is added in the file of the product page, which is likely `sections/product-template.liquid`

{% if product.tags contains "on_auction" or product.tags contains "wk_end_auction" %}
      	<style type="text/css">
        .wishlisthero-product-page-button-container{
        	display: none !important;
        }
      </style>
{% endif %}

2. The tag on_auction or wk_end_auction is replaced with any other tag for the customer

You May Also Like…

0 Comments