{% if product_type %}
{% for link in menus.catalog.links %}
{% if collection == link %}
<ul class="menu vertical menu-tags" id="shop-catalog">
<li class="subtitle">Filtrar por:</li>
{% for tipo in link.product_types %}
{% if product_type.slug == tipo.slug %}
{% if tipo.has_products %}
{% for t in tipo.tags %}
{% if product_type.slug == tipo.slug %}
<li class="{% if tag == t %} current {% endif %}">
<a href="{{link.url}}{{tipo.path}}{{t.path}}">{{ t.name }}</a>
</li>
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
</ul>
{% endif %}
{% endfor %}
{% else %}
{% for link in menus.catalog.links %}
{% if collection == link %}
{% if link.has_products %}
<ul class="menu vertical menu-tags" id="shop-catalog">
<li class="subtitle">Filtrar por:</li>
{% for t in link.tags %}
<li class="{% if tag == t %} current {% endif %}">
<a href="{{link.url}}{{tipo.path}}{{t.path}}">{{ t.name }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
in sidebar.html
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.