Question:
How can I filter Product Options from within a repeater and show the options as items in a repeater?
Product:
Wix Editor
What are you trying to achieve:
I want to be able to click on an item in two different repeaters that have product options listed and it filters the last(3rd) repeater based on the items clicked on the first two repeaters.
What have you already tried:
I have looked at the velo and wixdocs sites in an attempt to understand more but I do not believe I fully understand.
Additional information:
This is the code I have so far, but it doesn’t work in the slightest.
$w.onReady(function () {
$w("#1stFilterRep").onItemReady(($item, itemData, index) => {
$item("#1stFilterButton").onClick(() => {
let filter = $w("#1stFilterButton").label
filter = $item("#1stFilterSelection").text;
$w("#1stFilter").setFilter(wixData.filter()
.hasSome('ProductOptions.Tower Size.value', filter))
console.log(filter);
});
});
});
Any assistance would be very helpful!!
Thanks.