Hi,
Keep the rest of the code as it was shown in the tutorial and just make a change to the filter function
function filter(name, price) {
if (lastFilterName !== name || lastFilterPrice !== price) {
let newFilter = wixData.filter();
if(name)
newFilter = newFilter.contains('name', name).or(newFilter.contains('sku', name)); //added an 'or' condition
if(price)
newFilter = newFilter.le('price', price);
$w("#dataset1").setFilter(newFilter);
lastFilterName = name;
lastFilterPrice = price;
}
}
I have added an or condition after the name filter as shown above