/collections/vendors

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.

 

Thanks

 

John

0 Likes
Highlighted
Shopify Partner
1736 48 156

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 %}

or 

{% 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 the solution so you can help others.
Confused? Busy? ? Get me to solve it paull.newton+shopifyforum@gmail.com.
Buy me a coffee? ☕ paypal.me/paulnewton or donate to eff.org
0 Likes