New Member
10 0 0

@neckersonthanks again for the reply.


Yea, I tried redirecting, but it didn't seem to work. I'll give it another try.





Shopify Partner
2163 103 307

You could try creating a collection "vendor" or "vendors" so it actually exists to avoid oddities.


In your collection template find the relevant areas|loops and replace or surround it with:


{% if collection.handle == "vendor" %}
Do specific stuff if this IS the vendor collection
{% endif %}


{% unless collection.handle == "vendor" %}
Do stuff when it's NOT the vendor collection
{% endunless %}

You can use shop.vendors to go over all the unique vendors for a shop in liquid


{% for vendor in shop.vendors %}
  {{ vendor | link_to_vendor }}
{% endfor %}

Of course to have manageable descriptions or images per vendor you'll want to setup a collection(manual or smart) per vendor, which is different than search filtering a collection by vendors.

Doing that you'd need to grab collections by handles that match vendor names.



{% for vendor in shop.vendors %}
  {{ collections[vendor].description }}
  {{ collections[vendor].image }}
{{ collections[vendor].url}} {% endfor %}

Note: you'll need to "handleize" vendor names for this to work smoothly using assign,capture and the handelize filter.



Note: /collections ,aka the collections listing page, aka collected collections , is commonly using the template list-collections.liquid example in the slate starter theme.



Problem Solved? ✔️Accept and ? Like the solution so you can help others.
Buy me a coffee ☕ paypal.me/paulnewton or donate to eff.org
Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com
1 Like