Vendors list that hides vendors with no products

Highlighted
New Member
1 0 0

Hi

I’ve been using the following code snippet for a couple of years to display a list of all the vendors in the store, and up until recently the list was only showing vendors that had products available on the online store (which is what I wanted).

{% for product_vendor in shop.vendors %}
	<li>
		{{ product_vendor | link_to_vendor }}
	</li>
{% endfor %}

And all of a sudden, a few days ago, the list started also showing vendors that have no available products.

Did Shopify changed the way “shop.vendors” works? Or could it be a temporary bug?

Or maybe there’s an alternate way of listing vendors with available products?
I tried to find a way to count available products, but I haven’t found anything that could do it.

Thanks!

0 Likes
New Member
7 0 0

I have the same issue..

- Thomas
0 Likes
New Member
1 0 0

I've been around in circles with Shopify support for the last week about this and they refuse to give me a proper response. This is a huge problem. 

0 Likes