Tag Shopify Products as “On Sale” Based on Compare-at Price
Drive sales and attract attention to discounted products by tagging them as “On Sale” whenever the Compare-at price is higher than the actual price. This MESA workflow template automatically applies the “On Sale” tag, allowing you to create smart collections that highlight value and encourage purchases. Enhance your customers’ shopping experience and stand out from competitors by showcasing promotions effectively.
Trusted by 1,000+ Shopify merchants — from solo operators to scaling brands.

How it works
5 steps to start automatically tagging products when they go on sale
Product Updated
Product Updated
Get List of Product Variants
Get List of Product Variants
Loop Over Variants
Loop Over Variants
Check price values
Check price values
Product Add Tag
Product Add Tag
Ready to start automatically tagging products when they go on sale
Get setup in 5 minutes.
Frequently asked questions
Will this workflow tag products that don't actually have discounted pricing?
No, the filter step specifically checks that a compare-at price exists AND that the current price is lower than the compare-at price. Products only get tagged when they meet both sale conditions.
What happens if a product has some variants on sale and others at regular price?
The entire product gets tagged as "On Sale" if any variant meets the sale criteria. The workflow evaluates each variant individually but applies the tag at the product level, not the variant level.
Can I customize the "On Sale" tag to something else?
Yes, you can change the tag text in the "Product Add Tag" step. Simply edit the tag field to use any text you prefer, like "Discounted," "Special Offer," or your custom sale designation.
Make this template your own!
Customize this workflow even further:
You're in good company
"MESA has been a game changer for us. And, if you ever get stuck, their support team is always super helpful."
"It's like Zapier but exactly designed for Shopify. I have been able to complete all the workflows that I've needed."
"The MESA team has been amazing at helping us set up our automations. We would highly recommend this app!"
Ready to start automatically tagging products when they go on sale?
7-day free trial • 5 min setup • Cancel anytime
Need help? Our automation experts will help you personalize this workflow for free. Contact support