buy-button-js icon indicating copy to clipboard operation
buy-button-js copied to clipboard

How do I filter my collection items?

Open dannytrann opened this issue 4 years ago • 2 comments

I'm trying to use the buybutton.js to get the products in the collection which works totally fine! But the thing I want to do is filter and sort the items in the collection so the user can find something quicker.

dannytrann avatar May 14 '20 16:05 dannytrann

You're going to want to use separate collections. There's no built in way to do it.

I've done this with a query string that loads the collection based on the collection id in the url and it works well.

eatinsnacks avatar Sep 18 '20 21:09 eatinsnacks

You're going to want to use separate collections. There's no built in way to do it.

I've done this with a query string that loads the collection based on the collection id in the url and it works well.

Thanks for the confirmation on this. Wish there was a way for the embed to filter based on a tag or category by passing it as an option. Maybe in a future version.

scott-thrillist avatar Jul 19 '22 14:07 scott-thrillist