Hi, VELO Team.
I really need support now, the products on my website do not show in a repeater. It's been 2 weeks but the WIX support cannot resolve my problem. They're pointing the issues on the code, but it's weird to not work so suddenly when we're not touching the code. But, I took the time to check the logs and I got this error message.
"Error at i (https://static.parastorage.com/services/wix-code-platform/1.964.0/elementory-browser-support.min.js:1:2997) at XMLHttpRequest.n.onreadystatechange (https://static.parastorage.com/services/wix-code-platform/1.964.0/elementory-browser-support.min.js:1:3617) "
BTW, I'm using VELO to generate the repeater from a collection, the collection is consist of Product Categories based on the Location the user selects in the home page: Fisher Fresh Shop | Fisher Supermarket Online Shop
Here's some of the code in repeater show:
$w('#repeater1').onItemReady((w, data, i) => { w('#button32').label = data.name; console.log(decodedActiveMainCat + ' == ' + data.title); if (decodedActiveMainCat === data.title) { selectedMainCategory = data; w('#button32').disable(); } else { w('#button32').link = ctrl.shopUrl() + '/' + data.title; w('#button32').target = '_self'; } }); const subCategories = selectedMainCategory.categories.map(({ name, _id }) => { const label = name; const value = _id; return { label, value }; }); const all = []; for (let i = 0; i < subCategories.length; i++) { all.push(i); } $w('#checkboxGroup1').options = subCategories; $w('#checkboxGroup1').selectedIndices = all; $w('#text101').text = $w('#text101').text.replace('MainCategory', selectedMainCategory.name); ctrl.show($w('#repeater1'));
Thank you for your response.
I found a log that describes the error.
"TypeError: Cannot read properties of undefined (reading 'categories') at https://bundler.wix-code.com/09057cad-1980-443b-b10f-51fce26be306/2918c6f1-1d10-4af8-a546-b7139ca8967e/302fe31b-12e8-4c68-86fb-82550510d065/pages/ta2jz.js?wix-data-as-namespace=true&replace-console=false&dependencies-token=3938:1:8812"
It's been months since the problem, the weird thing is, we didn't even touch the code ever since but now we're encountering error's that stops the "repeater" from showing the Stores/Collections.
One thing that I noticed right off is that you should be using the Repeated Item Scope in the onItemReady() function.
Also, context is missing. Where are you setting the onItemReady() function? Hopefully in the page's onReady() function. A number of variables are referenced that I don't know what they are and how you're using them.