Dear all,
I am trying to display a page with a store product gallery whose products should only belong to 2 specific product collections. Here is what I have tried so far :
-
With a non dynamic page, the setup for a product gallery only permits to chose one collection and there is no dataset associated to it so no way to use any filtering function
-
With a dynamic page, I set up a static URL and put the page code below but it does not filter anything either…
Could you please shed the light on this please ? Is there any way to achieve this ?
That would be greatly appreciated, I felt like I have lost my evening…
Cheers,Antoine
// For full API documentation, including code examples, visit http://wix.to/94BuAAs
import wixData from 'wix-data';
$w.onReady(function () {
$w('#dynamicDataset').setFilter(wixData.filter()
.hasSome('collections.id',['f07158bd-97d6-4772-aa0f-5166e0dfeecc'])
)
});