Hello Everyone ![]()
I am creating my shopify multi-brand store and I wanted to add a page where all the vendors are listed.
But with the code I used only vendor names appear.
The idea is for the names AND images to be present on the vendor list page. I already created collections for all my vendors where the products appear automatically. I would like for each Vendor collection image to appear on my vendor list page.
Example : https://www.ohmycream.com/pages/marques ( but simpler :') )
I used this code :
{{ page.title }}
{% assign counter_divided_by_3 = counter | divided_by: 3 | floor %}
{%comment%}
{%endcomment%}
{% for product_vendor in shop.vendors %}
{% assign its_a_match = false %}
{% capture my_collection_handle %} {{ product_vendor | handleize | strip | escape }} {% endcapture %}
{% assign my_collection_handle_stripped = my_collection_handle | strip | escape %}
{% for collection in collections %}
{% if my_collection_handle_stripped == collection.handle %}
{% assign its_a_match = true %}
{% endif %}
{% endfor %}
{% if its_a_match %}
I am new to coding so thank you in advance for your help !!!