Displaying Product Types as buttons that will take customer to filtered page.

Annuksun
Tourist
12 0 1

Hi Dear Shopify Community,

 

Looking for some help on a complicated task I have in hand. Sorry, I'm not a developer but trying to introduce some complex features to the website. 

Essentially, I have a number of collections that are vendor collections that have their own Collection Template.

As the first step for such collections, I need a liquid that will display all product types that exist only in this collection. 

As the second step, each of those collections needs to be a button that will take to a filtered URL that will look something like 

https://www.shop_name/collections/{{VENDOR_NAME}}/?filter.p.product_type={{product_type}}

Any thoughts on how to tackle this job?

Also, I'm assuming that it will require cycling through the products to get all product type so for big collection there maybe an issue with performance. 

Any help is much appreciated!

 

Thanks

Replies 0 (0)