Can Shopify app Flow dynamically tag customers based on purchases?

it is possible through the shopify app flow to tag customers “dynamically” according to the purchases. Example if the customer buys product X, variant Z, will the customer be tagged productx-variantZ?

Hi,

You can do that with Shopify flow app

Yes… but i try to add this code

{% for item in order.line_items %} {% if item.title contains 'Xyz' %} {% assign A= item.variant.options[0] %} {% assign B= item.variant.options[1] %} {% assign C= item.variant.options[2] %} Xyz_{{ A}}_{{ B}}_{{ C}} {% endif %} {% endfor %}

 

it put this error message

“line_items” is invalid. Replace this variable.