Hi! I am trying my first step with dynamic content, it's working in the editor, but on the published page, all I can see is a spinning indicator, and the images are not loading.
This is the page I'm working on:
https://www.sinai-s.com/product-page/%D7%92%D7%99%D7%9E%D7%95%D7%A8-%D7%A9%D7%9E%D7%9F-%D7%97%D7%95%D7%93%D7%A8%D7%A0%D7%99-%D7%9C%D7%A2%D7%A5-flood
the code:
// For full API documentation, including code examples, visit http://wix.to/94BuAAs import wixData from 'wix-data'; import wixLocation from 'wix-location'; var filterID = ""; $w.onReady(function () { //TODO: write your page related code here... ID_check(); }); async function ID_check() { let product = await $w('#pageApp1').getProduct(); let productId = product.name; console.log(productId); switch (productId) { case "גימור שמן חודרני לעץ Flood": console.log("good"); filterID = "cwf-uv5-oil" SetFilter() break; default: console.log("empty"); break; } } function SetFilter () { $w("#dataset1").setFilter( wixData.filter("filter") .contains("filter", filterID) ); $w("#ColorGallery").expand(); }
what am I doing wrong??
Please help!
Thanks!
Thanks Tal, It was indeed a sync issue.
Hi Amit,
Have you checked if it's related to Permissions or Syncing your collection to live?
Tal.
Just an update, it's apparently not a code related, the gallery isn't showing even when I disable the code..