How to Tag a Product when its title is updated to contain a specific word?

How to Tag a Product when its title is updated to contain a specific word?

specklefarms
Excursionist
34 1 10

How to Tag a Product when its title is updated to contain a specific word?

 

I would like the tag "Pre-Order" to be applied to my Product whenever we add "Pre-Order" to the end of the title of the product. I see the Title is being deprecated, so I would like to avoid using this feature.

Reply 1 (1)

paul_n
Shopify Staff
1336 151 304

There isn't a trigger that will tell you when a product title was updated. The best you can know if that *something* on the product was updated. 

 

You can get products that were updated using:

 

  • Every hour
  • Get product data (look at the query suggested for one that uses the update date, add a clause to exclude products that already have the tag)
  • For each (product)
    • If title contains Pre-Order
      • Add product tag
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.