Add additional checkbox to cart page only if product has a certain tag

New Member
1 0 0

Hello, I have added a 'terms and conditions' checkbox to my cart page, but I need to add a second one that has to appear only when the customer adds a product from one certain category (or a product that has a specific tag) in the cart. 

Is there anyone that could help with this? 

Theme: brooklyn 

thanks in advance!! 

Shopify Expert
154 17 21

You would need to add code to your cart that saved any tags from each of the products in the cart to a variable then wrap the special checkbox in a statement checking if the tags variable has that specific tag.


If you need help doing this, you could reach out to a Shopify Expert to add this for you:

W3trends is one of the leading app developers in the Shopify ecosystem. We can handle anything E-commerce or App related for your business. Feel free to message me if you need any work done!