Categories
< All Topics
Print

Hide Wishlist for specific products

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" %}
      	<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" 
data-wp-preserve="%3Cstyle%20type%3D%22text%2Fcss%22%3E%0A%20%20%20%20%20%20%20%20.wishlisthero-product-page-button-container%7B%0A%20%20%20%20%20%20%20%20%09display%3A%20none%20!important%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%3C%2Fstyle%3E" 
data-mce-resize="false" data-mce-placeholder="1" class="mce-object" 
width="20" height="20" alt="&lt;style&gt;" title="&lt;style&gt;" />
{% endif %}

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

Previous Change the location of the Add to Wishlist on my Product page
Next How Do I Clean Up My Store After I Uninstall?