Shopify Debut add dropdown filter of collections

Hi,

I am using the debut theme and I wanted to add a filter dropdown that shows all the collections and filters according to it.

Is this possible?

Also, a little bit more complex, but using the new metafields, is it possible to filter products with that?

Thanks!

You can refer https://shopify.dev/api/liquid/objects/filter
Hope it helps!

Hmm unfortunately not. A little bit above my knowledge level.

I’m just looking to add additional filter options on my page.

Regarding listing the collections, I figured I would need to pull all the collections, list them with their relevant URL. Won’t exactly be a filter, rather more of a menu, but it could work.

Then the metafields part is a little more complex. No idea on that aspect.

This is what I was thinking. I’m able to populate the dropdown fine, but I don’t know how to initiate the URLs.

{% if section.settings.menu != blank %}
                  
                    
                    

                      
                      {% include 'icon-chevron-down' %}
                    

                  

              {% endif %}

UPDATE:

I got it to work like this but I guess I need to modify also theme.js. Will update again.

{% if section.settings.menu != blank %}
                  
                    
                    

                      
                      {% include 'icon-chevron-down' %}
                    

                  

              {% endif %}