We are trying to have certain product tags automatically go to a metafield that adds a label to products.
On our theme we have an extra product label to show last one, clearance etc. We currently have these in product tags which is easier to manage for bulk editing.
While you can manually run flows against products by selecting them in the product admin you will probably want to either modify the trigger or setup similar flows with different triggers either scheduled-time or product-status-updated (just quickly unpublish/republish sets of products to trigger it).
If you need this flow created for you then contact me directly by email for services.
Please always provide context, examples: store url, theme name, post url(s) , or any further detail.
Contact Info in signature.
Thanks I have set it up as schedule > get product data for tag:LAST ONE
But I am having problems adding the metafield value
I am using:
Update product metafield
Metafield namespace: theme.label
Key: theme.label
But under value I have added the variable to add the value (which I want to be LAST ONE) but don’t know how to edit it properly:
{% for getProductData_item in getProductData %}
{% for metafields_item in getProductData_item.metafields %}
{{metafields_item.value}}
{% endfor %}
{% endfor %}
I am getting a bunch of errors saying: Expected “product_id” to be String but got Nil.