automatic tag by products purchase

pit1
Excursionist
45 0 9

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?

Replies 2 (2)
jazz-jay
Shopify Expert
96 14 17

Hi,

 

You can do that with Shopify flow app

banned
pit1
Excursionist
45 0 9

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.


@jazz-jay wrote:

Hi,

 

You can do that with Shopify flow app