Hi there. I have a wix site that sends out custom digital PDF certificates to people. They purchase a certificate and fill in a text box which then gets sent off to pdfgeneratorapi.com and it then sends a certificate back (with their custom text) which is then stored in a wix collection.
At the moment I can only seem to be able to email site members to tell them their certificate is ready - using the following:
return triggeredEmails.emailContact(type, item.buyerID, {
variables: {
orderID: item.orderId,
type: item.mainType,
message: item.message,
}
})
.then(() => {
wixData.insert('Testing', {
"State": 'email success'
});
})
.catch((error) => {
console.log(error);
wixData.insert('Testing', {
"State": 'ERROR: ' + error
});
});
Is there a way to collect the user’s email either on the product page, or on the checkout page, so that I can send an email without them being a site member?
I know I can use third party applications to do this, but I’d rather not have to pay yet another subscription!
Thanks for reading