Tag products as on sale when a compare at price is added
When a variant gets a compare-at price it did not have before, add the tag on-sale to its product. The trigger carries the compare-at price before and after the change, so a product that was already on sale is not matched again. Use the tag in an automated sale collection.
When a variant gets a compare-at price it did not have before, add the tag on-sale to its product. The trigger carries the compare-at price before and after the change, so a product that was already on sale is not matched again. Use the tag in an automated sale collection.
One trigger, built-in Shopify actions only, no other app needed. Nothing in it is specific to a store, so it works as soon as it is imported.

What it needs
- The app's permission Product, Variant & Collection Data Access. See Permissions and data access.
- Nothing else: turning the workflow on switches the trigger Product Variant Price Changed on in the app.
Install the Workflow Trigger Extensions app and grant Product, Variant & Collection Data Access on its Permissions page. Turning this workflow on switches the trigger on in the app.
Get the workflow
- Download the
.flowfile attached at the bottom of this page. - In your Shopify admin open Flow, click Import and choose the file.
- Check the steps, then click Turn on workflow.
The file is an export from Shopify Flow itself. Do not edit it by hand; change the workflow in Flow after importing it.
How it works
- Product Variant Price Changed fires once per variant whose price or compare-at price changed and carries
priceChangewith the old and the new compare-at price. - The Condition continues when
priceChange.oldCompareAtPrice.amountis empty andpriceChange.newCompareAtPrice.amountis not empty. - Add product tags puts
on-saleon the variant's product (productVariant.product.id).
Make it yours
- Build an automated collection on the tag
on-saleand your sale page fills itself. - Import the template that removes the tag when the compare-at price is removed, so the tag ends with the sale.
Next steps
- Product variant triggers, step by step - every field this trigger sends, with more examples.
- Workflow templates - all templates.
- Event history and troubleshooting - check that the trigger fired.
