Shopify themes, liquid, logos, and UX
Hello,
I currently using Debut Theme. I would like to make the collections could filterable by product types. However, it's allowing only filtering by tags.
{% for tag in collection.all_tags %} {%- assign new_url = tag | link_to_tag: tag | split: 'href="' | last | split: '"' | first -%} <option value="{{ new_url }}"{% if current_tags contains tag %} selected="selected"{% endif %}>{{ tag }}</option> {% endfor %} </select> {% include 'icon-chevron-down' %} </div> </div> {% endunless %} {% endif %}
I know that I should change some parts of this code in the collection-template.liquid as product_type. But I couldn't find any way to do it.
Can anyone help me about this?
Best,
Ali
Did you find the answer to your problem?
having the same question
Same problem here. Any solutions?
@AliCey @Alcercos @izzettavasi
https://shopify.dev/docs/themes/liquid/reference/objects/collection#collection-current_type
https://shopify.dev/docs/themes/liquid/reference/objects/collection#collection-all_types
I have the same problem - need to change filter option to sort by product type - not collection tags, could use some help
User | RANK |
---|---|
134 | |
98 | |
88 | |
60 | |
49 |
Connect your PayPal account to allow your customers to checkout using the PayPal gateway a...
ByYour online store speed can enhance your store’s discoverability, boost conversion rates a...
ByShopping is at our fingertips with mobile devices. Is your theme optimized to be user-frie...
By