All things Shopify and commerce
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 %}
<button class="quick-shop__trigger"></button>
{% 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' %}
<button class="quick-shop__trigger js-quickshop-trigger" aria-hidden="true" tabindex="-1">
{% render 'icon-quickbuy' %}
</button>
{% endif %}
You mean this?
{% if quick_shop_trigger == 'icon' and product.available %} <button class="quick-shop__trigger js-quickshop-trigger" aria-hidden="true" tabindex="-1"> {% render 'icon-quickbuy' %} </button> {% endif %}
User | RANK |
---|---|
48 | |
46 | |
39 | |
28 | |
20 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023