Hey there,
I’m trying to create a section within the Simple Shopify theme that filters collections based on customer tags. For example, the customer has the following tags “Foo”, “Bar”. In turn display a collection list with only “Foo”, “Bar”.
I duplicated the collection-list.liquid for my base and made the following edits.
{% if customer.tags.size >0 %}
{% for tag in customer.tags %} // check customer tags
{% for link in linklists.main-collections.links %} // loop through collection menu
{% if link.title == tag %} // if a link matches customer tag then do
{%- assign collection = collection.tags -%} // Here's where I'm stuck, im not sure what to fill out here in order to display the correct collection based on the found tag.
{% include 'collection-grid-item' %}
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
Any help I could get with this would be greatly appreciated.
Thanks