d
Topic
Posts:
62
5 months ago

showing brands automatically in a page This post is outdated

Hello,

We would like to have pages for different sizes and the page should automatically show the brands and products that belong to this size.

Note that the products that are added to the page should be automatically added and not manually.

Thanks

we are Shopify Partners, from small tasks to store overhauling and anything in between, we have got your back; Special SMM and SEO packages for shopify store owners; mail or skype on hello@anzimaty.com
i
Replies
Posts:
2026
Last edited 5 months ago

It's relatively easy if your size is a tag assigned on the products and if your filtered product sets will be less than 50 products.

So you filter collection on a tag and then you can use this code to extract a list of vendors on the current page:

{% assign vendors = collection.products | map: 'vendor' %}
{% for vendor in collection.all_vendors %}
  {% if vendors contains vendor %}
	  {{ vendor | link_to_vendor }}
  {% endif %}
{% endfor %}    

 

Want to hire me to tweak a theme? Mail me at tairli@yahoo.com! My post solved your problem? This is my Paypal too :)
Posts:
62
5 months ago

Thank you for reply,

Actually, I want to make a "shop by size" as a navigation menu , and on click, it will lead me to a page with filters (on the left of the page) that have different sizes of products (36,37,38) and when choosing 36 for example, it will show all products that have this size automatically. And the number between brackets will have the size as a value as you can see in the image below.

Capture4 thumb
we are Shopify Partners, from small tasks to store overhauling and anything in between, we have got your back; Special SMM and SEO packages for shopify store owners; mail or skype on hello@anzimaty.com