Hi all,
I’m looking for a solution to do this task :
Send a QRCode , a link or a PDF document by article when an order is paid.
Eg : someone buy 4 article N°10, and two article N°5, when the order is placed and payed, the buyer receive an email with 2 lines :
Article N° 5 : Link, or QR code, or PDF attached if exist
Article N° 10: link or QR code Or PDF attacheds if exist
I didn’t find any simple way at this time, any suggestion is welcome.
Thanks in advance.
Working in
Wix Studio Editor
Thanks in advance.
You can set this up using Automations, but that would make more sense for orders with one product only. If your order has two or more products with different links that need to be sent, then you’ll need to write custom code to develop such a functionality.
You can achieve this using Wix Automations + Velo. The built-in automation can trigger when an order is paid, but since you need to send different links/QR/PDF per product, you’ll likely need some custom logic.
A common approach is:
-
Add custom fields in a CMS collection or product data for each item (for example: link, QR code image, or PDF URL).
-
Use a backend event like wixStores_onOrderPaid in Velo.
-
When the order is paid, loop through the ordered items, fetch the associated data (link/QR/PDF) for each product, and generate the email content dynamically.
-
Send a custom email using Triggered Emails or an external email service.
That way if someone buys:
-
4 × Article #10
-
2 × Article #5
your code can build an email like:
Article #5 : link / QR / PDF
Article #10 : link / QR / PDF
This approach gives you full flexibility and works well if the files or links are different per product.
Hi Kamran
Sorry for the delay of my response.
Thanks for your reply who give me some ideas on how to do this.
I’ll try to do the job with your indications next 3-4 days, and come back to let you know about advancement.
Thanks again.
Pratham, thanks to you too 
1 Like