Hello World!
I am new to working with Wix and trying to figure out a way to render an upload button after the customer successfully made an order and to render it forEach product he/she purchased.
Something along the lines of:
$w.onReady(function () {
let orderNumber = $w('#ordernumber').text; //Pull order number somehow
wixData.query("Stores/Orders")
.eq('order_number', orderNumber)
.find().then( (results) => {
if (results.items.length > 0) {
let totalCount = results.totalCount;
//Rendering new upload button forEach totalCount
}
},)
});
Thank you