Hide Quantity Box on Cart Page for Tagged Products

Kayla18
Tourist
10 1 4

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

Replies 5 (5)
made4Uo
Shopify Partner
3787 710 1099

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.

Screenshot 2022-03-08 210400.jpg

Volunteering to assist you!  Likes and Accept as Solution  is highly appreciated.✌
Coffee fuels my dedication. If helpful, a small Coffee Tip would be greatly appreciated.
Need EXPERIENCED Shopify developer without breaking the bank?
Hire us at Made4Uo.com for quick replies.
Stay in control and maintain your security by avoiding unnecessary store access!
Kayla18
Tourist
10 1 4

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. 

made4Uo
Shopify Partner
3787 710 1099

Have you tried putting the code in the theme.liquid? You can put the code next to <main>

Volunteering to assist you!  Likes and Accept as Solution  is highly appreciated.✌
Coffee fuels my dedication. If helpful, a small Coffee Tip would be greatly appreciated.
Need EXPERIENCED Shopify developer without breaking the bank?
Hire us at Made4Uo.com for quick replies.
Stay in control and maintain your security by avoiding unnecessary store access!
Kayla18
Tourist
10 1 4

@made4Uo 

 

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;} 

 

ClauSerg
Visitor
2 0 0

Did ypu ever get a solution for this?