A user is attempting to hide the “Add to Cart” button on sold-out products in collection pages using the Venue theme.
Initial Solution Provided:
{% if product.available %} [button code] {% endif %}
Issue Encountered:
Current Status:
{% if quick_shop_trigger == 'icon' and product.available %}
I’m trying to remove the “Add to Cart” badge/button so it doesn’t show up on any sold out products on any Collections page. I’ve tried a few of the suggestions listed on here but none seem to work for my theme. Any help would be appreciated.
Theme: Venue
Site: melier.com (example https://melier.com/collections/adversity-cellars)
You need to find the button by class “quick-shop__trigger” and wrap it in the desired liquid code.
{% if product.available %} {% endif %}
Thank you. This hid the icon, but I only want it to be hidden when a product is sold out. Any idea how to make that adjustment?
Here’s what I wrapped in comment/endcomment to disable.
{% if quick_shop_trigger == ‘icon’ %} {% render ‘icon-quickbuy’ %} {% endif %}
You mean this?
{% if quick_shop_trigger == 'icon' and product.available %} {% endif %}