How to get all unique vendors in a Shopify store
by Kiet Huynh · March 22, 2020
Sell Online With Shopify
Trusted by millions of businesses worldwide
Sign up for a free trial and enjoy 3 months of Shopify for $1/month on select plans.
The Shopify REST API doesn’t have an endpoint that will specifically list only the unique vendors on products in a shop. But Shopify liquid supports that.
| {% for product_vendor in shop.vendors %} {{ product_vendor | link_to_vendor }} {% endfor %} |
If you want to get this list with JSON format. You can follow the below steps:
- Create a new page template. Eg: page.vendors
- Add the below code for this template
| {% layout none %}{{shop.vendors|json}} |
- Assign this template for a page and you have a page include all unique vendors with JSON format.
LIVE DEMO
Related
Related Posts via Categories
Looking for Shopify Experts?
Hura Apps can help you take your store to the next level
Our team of experienced designers and developers can help you create a beautiful, high-converting Shopify store that will drive sales and increase customer satisfaction. From custom design to app development and optimization, we have the skills and expertise to help you achieve your eCommerce goals.
Get in touchTags: liquidliquid codeLiquid Template LanguageShopify APIShopify liquidShopify Vendor API
You may also like...