So there are a couple of ways to go about doing something like this and involves coding - i'll drop a brief overview of 1 option below and if it doesn't work for you we can adjust it accordingly.
{% assign vendorsInCollection = collection.products | map: 'vendor' %} {% for vendor in vendorsInCollection %} {% assign vendorHandle = vendor | handleize %} {% assign vendorCollection = collections[vendorHandle] %} {% comment %} Now {{ vendorCollection }} returns all the same properties as {{ collection }} but for its respective collection. So you can call its URL, Its Image, Its Title, or description. {% endcomment %} <div> <h1>{{ vendorCollection.title }}</h1> <img src="{{vendorCollection.image | img_url: 'master' }}"/> </div> {% endfor %}
Now you can do the same thing for a 'subbrand' template, but instead of mapping 'vendor' you can do {{ collection.product | map: 'type' }} to return the various product types.
Hello sir,
I have been trying to accomplish this task but does not works.
is there any other way to do?
Some more information i have to provide,
Theme i am using is Debut
Let me re-frame my task
I want to create a menu button 'Mobile case'. when a user hits mobile case a new page shall appear with all Brands like APPLE, SAMSUNG, MOTOROLA etc.,
now if user clicks on Apple, it should redirect to a page with All models available in apple like Iphone 5, Iphone 6 etc...
after clicking Iphone 5 all mobile cases product compactible to mobile cases shall appear.Mobile Brands
Models
actual product collection
User | Count |
---|---|
819 | |
131 | |
86 | |
73 | |
70 |