Hello
I want to make five buttons on the collection page to sort/search by vendor. I’ve made a loop to display five vendors. But Shopify only allows me to take collection.all_vendors
This will just display it alphabetically and i need to show the five most relevant venders, by the size of the vendor or something like that.
I made this so far, but i don’t know if it is possible to filter/sort it by size or anything?
{% assign allevendor = collection.all_vendors %}
{% for vendors in allevendor limit:5 %}
{% if forloop.length > 0 %}
- ###### {{ vendors | upcase }} {{ collection.title | upcase }}
{% unless forloop.last %}{% endunless -%}
{%- endif -%}
{% endfor %}