How to set search for Wix Stores/Products?

Hello :slight_smile: is it possible to set search for Wix Stores/Products and show its results on the main Wix stores repeater? thanks.

export function Searchbutton_click(event) {
wixData.query(‘Stores/Products’)
.contains(‘name’, $w(‘#Searchbox’).value)
.find()
.then(res=> {
$w(‘#productGallery1’).data = res.items;
});
}

i’ve tried this code but it shows error (can not find data in productGallery1)

Hi,
You can create a search as explained in this video tutorial. The search needs to be done on the Stores/Products collection, as you did. Should the issue persists, please share with us also the error message that you’ve received.

Good luck!
Tal.

Hello,
i’m sorry i am bit confused. This video explains how to create a filter on a custom repeater with a dataset :slight_smile: well i don’t have either, my question was how to set filter for wix Stores/Products that shows its results on wix’s main repeater (the one that included in wix stores).
Do i have to create a custom repeater ?

UP