Can I sort products by collection in Shopify using liquid, JavaScript, or Ajax?

Shreyank
Excursionist
17 2 6

Hello All,

     Just was wondering if this was possible. I have a page with all of the products on the same page and I want to sort it as a category wise. meaning by collection and i couldnt find any documentation or guides that can help me with the filtering by collection. I am comfortable with using liquid, javascript or ajax but was wondering if this is possible from the theme's perspective ? 

Let me know what you think. It would be really helpful and I appreciate it.

 

Thanks,

Shreyank

Replies 0 (0)