Shopify Flow App - adding & translating Metafields

faraoneshop
New Member
9 0 0

Hello,

 

I am trying to add two flos in the shopify flow app both for metafields.

1) Update metafields if there's a tag product.
Starts when "Product status updated"
check if product tag starts with "C1_"(example)
Do this : tried both
a) {% for tags_item in product.tags %}{% if tags_item contains "C1_" %}{{- tags_item -}}{% break %}{% endif %}{% endfor %}
b) {%- for tags_item in product.tags -%}
{%- if tags_item contains "C1_" -%}
{{- tags_item | remove: "C1_" -}}{%- break -%}
{%- endif -%}
{%- endfor -%}

2) Translate metafield value. I use shopify translate app
I have the shop in 4 languages, so I should translate into 3 of them.
here basically I don't how to start

Reply 1 (1)

sle
Shopify Staff
13 0 0

Hi @faraoneshop , we do not have a way to listen to product updated right now, the product status update trigger is only executed when a product's status change. For example, when it goes from draft to published or active to inactive. As for metafield translation, Flow doesn't have that capability right now. Can you check with the Shopify Translate and Adapt community?

To learn more visit the Shopify Help Center or the Community Blog.