Shopify themes, liquid, logos, and UX
Hello,
Can someone provide the code I would need to hide the quantity box on the cart page for products that are either in a specific collection or have a specific tag. I am using Debut theme
Hi @Kayla18 ,
You don't need a code. Just go to Theme editor by clicking the "customize" button in your online store. Follow the steps on the image below.
Hello @made4Uo
That will remove the product selector on everything, including the product pages. What I’m wanting, is to keep it visible for all products, except for a specific collection tagged "wholesale". I have already added the code to hide the quantity selector for this one collection, but it only hides it on the product page. I’m looking to find a way to make it apply to the cart as well.
Have you tried putting the code in the theme.liquid? You can put the code next to <main>
I found this code on another forum. I think its suppossed to go in cart-template.liquid, but I don't know where. If you could guide me on that, then I could test to see if it would work.
{% if item.product.tags contains 'NoQuantity' %}noquantity{% endif %}
And then this for the theme.scss.liquid template
.noquantity {display: none;}
Did ypu ever get a solution for this?
User | RANK |
---|---|
211 | |
167 | |
69 | |
55 | |
53 |
Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On 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, 2023