Re: Shopify Flow Compare-at Price

Solved

How to trigger updates for product variants with compare-at price in Flow?

ap96
Tourist
6 0 1

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
1153 143 274

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 5 (5)

paul_n
Shopify Staff
1153 143 274

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
Tourist
6 0 1

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
1153 143 274

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
Tourist
6 0 1

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

Newbie10
Tourist
12 0 3

Hi, Do you mind attaching a screenshot of this flow? I'm struggling to make it work on my end. Thanks!