shop.vendors not pulling all vendors from inventory

Hello Shopify community ! This will be my first post :slightly_smiling_face: Hope someone can help me out here.

Im trying to setup a page where I can render a list of vendors. Pretty simple.

I used this code below:


    {% for vendor in shop.vendors %}
      - {{ vendor }}
    {% endfor %}

This only renders one of my vendors which is actually a placeholder as we update more. Ive added multiple vendors to different products and it still only pulls the one vendor. I think this may be an issue with the way im setting vendors up and not the code itself?

Thanks for any help :slightly_smiling_face:

At the a first sight the code seems correct.

Are you sure that the code is ok and that there are not liquid errors?

Try this

Vendors: {{ shop.vendors.size }}

thanks for your response!

Tried that and it definitely is only showing 1 vendor in my vendor’s object. I’m really stumped as to where all my other ones are.

That’s so strange. Did you assign vendors to products?

If yes, try to create a collection called All with all products inside and test this code

{% assign all = collections['all'] %}

## Total Vendors: {{ all.all_vendors.size }}

{% for v in all.all_vendors %}

	{{ v }}
	(View

{% endfor %}

Yeah I am almost certain they are assigned correctly. Still no luck, been at for a while now. I might export inventory and reupload

Figured it out after reuploading, the majority of my inventory was labeled unavailable, once I switched them all on my vendors started showing up. Thanks for the help! appreciate it :slightly_smiling_face:

Sorry, but I have no idea what could be the problem there.

Ah ok great! :face_with_tongue: