New Shopify Certification now available: Liquid Storefronts for Theme Developers

Shopify Flow Compare-at Price

Solved
ap96
New Member
6 0 0

I'm currently setting up a Flow that will check if a product variant has a compare-at price that exists and then have it update one of the product's metafields to filter it by sale one our website. The problem I keep running into is finding the proper trigger. Ideally the trigger would be "when the price updates" but that isn't an option. Wondering if anyone knows any work around for this? 

Accepted Solution (1)
paul_n
Shopify Staff
Shopify Staff
606 97 155

This is an accepted solution.

  1. Schedule trigger
  2. Get product data
  3. For each loop. For each item - product :
    1. Condition
      1. Action
Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.

View solution in original post

Replies 4 (4)
paul_n
Shopify Staff
Shopify Staff
606 97 155

There isn't a shopify event for "price changed" yet. You could use a scheduled trigger (every hour) and then "Get product data" to get products that changed in the last hour. Then check conditions for each of the returned products and do something.

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
ap96
New Member
6 0 0

Ooooooh! Okay.  I've been trying to play around with the "Get product data" but I'm not sure how to check the conditions for each option, if that makes sense haha.

paul_n
Shopify Staff
Shopify Staff
606 97 155

This is an accepted solution.

  1. Schedule trigger
  2. Get product data
  3. For each loop. For each item - product :
    1. Condition
      1. Action
Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
ap96
New Member
6 0 0

Thank you Paul! I got it set up and it's working smoothly 🙂