Exclude items from collection using tag 'does not contain'

Exclude items from collection using tag 'does not contain'

Sabu
Visitor
2 0 0

Hi there,

I'm facing an issue with our discount code setup, which is resulting in double discounts.

We offer a 15% discount code for products that aren't on sale, but it's still applying to discounted products. We use a third-party app called "Simple Product Price Scheduler" to schedule price changes (e.g., 25% off), and bulk tag products for specific sales like "October Sale".

However, when the sale is live, the discount code continues to work on those products. I suspect the app and Shopify aren’t fully integrated, so Shopify doesn’t recognize the price change as a sale, allowing the discount code to still apply. We need an app like this for bulk tagging and scheduling, so switching apps isn't ideal unless it offers similar features.

Here’s what I'm trying to achieve:

1. Automatically tag all sale items as 'On Sale' using the third-party app.
2. Create a dynamic collection that excludes items tagged as 'On Sale.'
3. Ensure the discount code only applies to products in this collection.

The problem is that Shopify doesn't offer a 'does not contain' option for product tags, which is essential for this setup.

Is there any solution that avoids manually updating each product (we have too many), or can anyone recommend a third-party app that supports this functionality?

Thanks!

Replies 3 (3)

Shadab_dev
Shopify Partner
1539 81 170

If you are just looking to exclude products with a tag on them. You can do that with liquid if tag to check if a product contains that tag then not render it or hide it accordingly 

 

Buy me Coffee, if you feel i was helpful. Email Me here or WhatsApp me with this link for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.
Sabu
Visitor
2 0 0

Hi Shadab, 

Thank you for taking the time to reply! 🤗

While a liquid solution can exclude the display of certain products in certain places (like collections), i don't think it will prevent the discount code from being applied to "On Sale" tagged products 🥺

Shadab_dev
Shopify Partner
1539 81 170

When you exclude the products from being rendered in collection you don't have to worry about it since users won't see it. 

 

Or you can disable the link which lets adds users to their cart. 

 

And for automatically I don't know about an app. So just manually adding self tags and exclude those products which contains that tag

Buy me Coffee, if you feel i was helpful. Email Me here or WhatsApp me with this link for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.