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?

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.

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