top of page
Forum Posts
Nicolas M
Sep 15, 2022
In Velo Pro Discussion
Hi I just starting experiencing this today. All my links in my repeater are using the data from the last element in the array set on the repeater. Has anyone experience that glitch? It used to work fine a few days ago.
const refProd = await wixData.queryReferenced("Youtube_Videos", itemObj._id, "newField")
if (refProd.totalCount > 0) {
$w("#columnStrip1").expand()
$w("#columnStrip1").show()
$w('#listRepeater23').data = refProd.items;
$w("#listRepeater23").onItemReady(($item, itemData) => {
console.log(itemData)
$item("#thumbnai31").src = itemData.mainMedia;
// $w("#thumbnai31").link = itemData.productPageUrl;
$item("#text128").text = itemData.name;
$w("#MoreButton3").link = itemData.productPageUrl;
});
} I was also experiencing the same type of issue when trying to render elements based on a condition from the itemdata field. Update: i was using $w instead of $item... live and learn thanks to the kind people over on Discord!
0
1
46
Nicolas M
Feb 24, 2022
In Coding with Velo
Hi i'm using some velo code to conditionnaly render different style components. On initial load the page flickers with the wrong components when my conditions hit. Is there anyway to move the code i have in the on.Ready to be processed on the server vs the client? I'm using the .show() .hide() expande() collapse() Here is the function i'm running in the onReady hook. function isInStock() {
//console.log(wixWindow.rendering.env)
$w('#pageApp1').getProduct()
.then((product) => {
if (product.price === 0) {
getImages(product);
$w("#box1").expand()
$w("#box1").show()
$w("#pageApp1").collapse()
$w("#pageApp1").hide()
if (product.additionalInfoSections.length > 0) {
$w("#box5").expand()
$w("#box5").show()
}
} else {
$w("#box1").hide()
$w("#box1").collapse();
$w("#pageApp1").expand()
$w("#pageApp1").show();
}
})
}
0
5
59
Nicolas M
Oct 11, 2021
In Coding with Velo
Hello, considering building a headless wix website. It doesnt look like we can create a cart with the wix dev API. Any idea if this is going to be implemented soon'ish'? Thanks!
0
1
41
Nicolas M
Aug 21, 2021
In Site & Page Design
I've updated my SEO pattern on the wix dashboard to remove, pricing and availibility. Client side it looks like its correct, however when i check source html the old pattern is still present. Is it just cached and it will update at some point? Or do i need to update the pattern for all existing products. Thanks! NM
0
0
15
Nicolas M
Aug 05, 2021
In Coding with Velo
Does anyone have any tips on improving this loading speed metric with a wix website? Mainly for SEO and improving Ad rank with google ads. Thanks! NM
0
2
85
Nicolas M
May 20, 2021
In Coding with Velo
Hello, i have some code that i'm running in my masterpage.js to check time and conditionnaly render some elements, plus another DB call to populate a navigation element in my footer. It's running in my onReady function. I'm affraid that this code is running on every page change. How would i make the code run on first load only? Thanks!
0
5
709
Nicolas M
More actions
bottom of page