Hi Jake,
Yes you can do what you suggested there. I think this would be a useful template in Flow, so we’ll create one to show how to do it. Two considerations:
- There is no “product/updated” or “product tag updated” trigger yet in Flow, which means the above will only run at creation time. There is also a “Product status changed” trigger that would fire as it moves from draft to active (and other changes to status). Also, with product added to store, you could manually run that workflow on existing products to backfill the metafields. Go to the admin and choose the products and look under “More actions” for “Run Flow automation”
In the action, you’ll need to use liquid to strip the “brand_” part and get the value to add to the metafield value field. Something like:
{% for tag in product.tags %}{% if tag contains "brand_" %}{{ tag | remove: "brand_" }}{% endif %}{% endfor %}