I would like to use the Grid Product Gallery on certain dynamic pages and have the products in the gallery filtered by the dynamic page URL.
I see that I can filter the products manually by selecting the collection to filter by or I can create my own repeater and load the products that way via Velo but for ease of use, I would like to simply use the built-in product gallery.
Is it possible to intercept the database query that is run when loading the product gallery and have it load only those products that belong to the collection that corresponds to the dynamic page URL that is being loaded?
For example, if the dynamic page URL is '.../collections/widget', I would like to filter the product gallery to only show products that are in the 'widget' collection.
Thank you for any help.
I am encountering this same need--the ability to filter the Grid Product Gallery by something in my dataset.
Thank you. But then how would I use that information to filter the Grid Product Gallery?
Hi Javin, you can use the wix-location api to obtain the url or query params of the url. https://www.wix.com/velo/reference/wix-location