Hello,there.
I would like to show recommeded products by customer tag.
Having A tag, showing A collection widget on top page
I am looking forward to hearing from you.
Hello,there.
I would like to show recommeded products by customer tag.
Having A tag, showing A collection widget on top page
I am looking forward to hearing from you.
Hi,
One of the options would be to use IF statements or CASE, which are cleaner.
See example below:
{% assign customersTagsDowncased = customer.tags | downcase %}
{% if customersTagsDowncased contains “your_tag” %}
{% section ‘your_collection’ %}
{% elsif customersTagsDowncased contains “other_tag” %}
{% section ‘other_collection’ %}
{% endif %}
Where your_tag and other_tag is replaced by the tags you want and same goes for collection names.
This is, of course, if you have already created sections to show.