Render upload button after checkout forEach product

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 :slight_smile:

Hi,

Currently, with Corvid, it is not possible to write code that creates a new upload button depending on a condition but you can hide the upload buttons upon loading the page and then show the desired amount of buttons. Please click on the following links to find more information on hiding and showing the upload button within the Corvid API Reference:
hide()
show()

Best regards,
Edward | Corvid Team