Alert your team on variant price changes

Shopify Flow does not include a native trigger for variant price edits. Workflow Trigger Extensions fills that gap with the Product Variant Price Changed trigger, which starts a workflow as soon as a variant's price or compare-at price changes.


We will assume the following scenario to understand how we can use the Product Variant Price Changed from the Workflow Trigger Extensions.

Scenario: Alert your merchandising team

Enable this trigger from the app settings -> Product Variants -> Variant Price Changes

Product Variant Price Changed

Send internal email

How we will make this flow

You can also see these steps in the demo video below (video has no voice):

You can see the steps followed visually here:

  • In Workflow Trigger Extensions, open Triggers, search for Price and switch on Product Variant Price Changed. It needs Product, Variant & Collection Data Access; the app asks for it if it is missing.
  • Then create a new blank workflow from the Shopify flow app and select the Product Variant Price Changed from the Workflow Trigger Extensions app
  • Then press Select test event and select Record events
  • In the new Tab, update the variant price and save.
  • You will see the recorded event, select that event and the payload of this event will apear in the left panel. The payload has old price, new price, variant id, sku, title and the product information. You can take further actions based on this data.
  • Now we will send an email to the internal team about the price change. I have used the remove filter to remove gid://Shopify/ProductVariant/ from the product GID. By removing this part, now we can see the clean variant id in the emails.
  • The email content looks like this:
The Triggers page searched for Price, with Product Variant Price Changed switched on
In the app: Triggers, search for Price, and switch on Product Variant Price Changed.
Shopify Flow's Select trigger panel showing Workflow Trigger Extensions and its triggers
In Shopify Flow, choose Select a trigger and open Workflow Trigger Extensions to find Product Variant Price Changed.
Flow's Add a variable panel showing oldPrice, newPrice, delta, percentChange and direction under priceChange
The trigger hands Flow the price before and after the change, plus the difference, the percentage and the direction.
A Flow condition: priceChange.percentChange is less than -10
Only real markdowns: a condition on percentChange less than -10. No code needed.
Flow's Run code step reading oldPrice, newPrice and percentChange from the trigger and returning a summary line
Optional: a Run code step that turns the old and the new price into one line for your team.
The finished workflow: Product Variant Price Changed, a condition, then Run code
The finished workflow. Add your own action - an email, a Slack message, a tag - after it.