top of page

Forum Posts

Poklontazija
Dec 04, 2020
In Coding with Velo
I have an upload button in my dynamic page that is connected to a simple database which let customers upload their custom photos to the product. Here is my very simple code: export function button1_click(event) { const productId = $w('#dynamicDataset').getCurrentItem()._id; const name= $w('#dynamicDataset').getCurrentItem().name; const quantity = $w('#input1').value; $w('#shoppingCartIcon1').addToCart(productId, quantity); $w('#dataset1').setFieldValue("title",name); $w('#dataset1').save(); } What it does is simply when the Add to card(The red button) is clicked the item is added to the card and customer's name and photo which are directly connected to the database, along with the name of the product are submitted to the database The problem is that the code is working just fine when it comes to the web version and the record is submitted. But, when I try the exact same thing on my mobile it doesn't work and I can see that the photo is uploaded but not submitted. Although, the product is added to the card just like it supposed to, but when it comes to the photo and the new of the customer, I do not get anything in my database.
Code running perfectly on desktop but doesn't work on mobile version! content media
0
3
52
Poklontazija
Oct 22, 2020
In Coding with Velo
Hi, in my store I have some products which could be customized (image) and some other products with out customization. The problem is, when I add upload file to the product page, it will be obviously added to all products, so is there a way to make multiple product pages. Or to somehow hide the upload file option from certain products?
0
0
47

Poklontazija

More actions
bottom of page