Has anyone added ticket barcodes to your order confirmation emails? Our sales department wants to be able to send confirmation emails with the barcodes embedded in the email and before I try to reinvent the wheel thought I'd throw it out here.
If you have, would you be willing to share your confirmation with me?
Thanks,
Melissa
I'm resurrecting this dead thread because I have a simple & quick solution using the new Email Templates in v15.
So check it out, this is so easy you'll kick yourself. There are a ton of free Barcode API services out there, one of my favorites is Barcodes4Me.Familiarize yourself with the API, but basically, as long as you have a number, a string, whatever kind of data you want, you can generate a barcode into an image.
For example,
Order Number 123456
Becomes the URL string:barcodes4.me/barcode/c128b/123456.png
Which, when rendered as an image:
Easy.
Now, using the variables available to us in the HTML Templates section of the Ticketing Setup in Tessitura, we can generate an image right there in the template using the same method. Just replace the number in the URL with the variable for the order number (or whatever piece of data you want).
In the top of the Template, create a Variable (this is using the Order ID):var barcodeImageUrl = "barcodes4.me/barcode/c128b/123456.png" + Model.OrderProductView.Id + ".png";
(Please note, you'll need to designate http:// before your url)Find where in the template you want to add the barcode, and create an HTML Img tag using the variable you just created as a src attribute:
<img src=@barcodeImageString />
Bam.Barcode in the Order Confirmation.
Be sure to follow any attribution rules/pricing for whatever Barcode Service you end up using.
Additionally, if you're more web savy, you could even create your own Barcode API and run it off of your own server using something like JsBarcode.
Happy Coding!
Thank you Cody. You are aptly named!
I'll give it a burl ;)