Hi, I tried to update of my page using the AddToCart function but it's not working anymore. Is there an issue going on with it?
Regards
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
Hi, do you have any news please? Just to know if I should try something else or if it's a bug I should wait for?
Cheers
Hi Doron,
Can I send you my editor url? Would it be enough for you to access?
If not, here's the code:
"$w("#button5").onClick( () => { if ($w("#dropdownlength").valid && $w("#dropdownwidth").valid && $w("#dropdownthick").valid) { $w("#shoppingCartIcon1").addToCart("3e1721b6-c906-7f2c-f0b6-8d86bda9a2c3",1,{ "choices": { "Deck Color": deckcouleur, "Bottom color": bottomcouleur, "Fin option": fincouleur}, "customTextFields": [ { "title": "Length", "value": $w('#dropdownlength').value }, { "title": "Width", "value": $w('#dropdownwidth').value }, { "title": "Thickness", "value": $w('#dropdownthick').value }, { "title": "Logo:", "value": $w('#logocolor').value }, { "title": "Pinline", "value": $w('#pinline').value }] } ) .then( () => { console.log("Product added"); $w('#text28').hide(); } ) .catch( (error) => { console.log(error); } ); }else { $w('#text28').show(); } } );"
I also had created a video for support ticket initially: https://www.screencast.com/t/75UiRX4283bp
Hi!
Please share a link to your site or the code you've been using so one of us, the WixCode team, can inspect it and provide you with a solution.
Doron.
Hi, can you please confirm if there is a bug going on?
Many thanks
Whenever I'm using the function, first time I press the button it doesn't work, second time it adds 6 to 14 items.
Then for personalised products it doesn't work at all. :( please help!