Barcode in confirmation email

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

Parents
  • Don't have any sample code for you but I had thought about this for a while and for us what I couldn't reconcile came down to one thing: overcoming the batch requirements of WP_PRINT_TICKETS.

    Two methods I can think of:

    • Use a session key associated with the batch currently locking the order
      • Does this pose issues for the client keeping track of state?
    • Use a method to call the order's sli's asynchronously upon image load, showing an error until the order is unlocked
      • Is this insecure?
      • Does it pose other risks like excessive locks on orders, is it too aggressive?
      • Is it any better than providing a link in the email

    What we finally did do at FTC was switch to a login-based ticket PAHT process. Our box office goes in the night of the show and batch prints any unprinted tickets so they are available in will call, ready to go.

Reply
  • Don't have any sample code for you but I had thought about this for a while and for us what I couldn't reconcile came down to one thing: overcoming the batch requirements of WP_PRINT_TICKETS.

    Two methods I can think of:

    • Use a session key associated with the batch currently locking the order
      • Does this pose issues for the client keeping track of state?
    • Use a method to call the order's sli's asynchronously upon image load, showing an error until the order is unlocked
      • Is this insecure?
      • Does it pose other risks like excessive locks on orders, is it too aggressive?
      • Is it any better than providing a link in the email

    What we finally did do at FTC was switch to a login-based ticket PAHT process. Our box office goes in the night of the show and batch prints any unprinted tickets so they are available in will call, ready to go.

Children
  • Update: I believe that the issues I originally mentioned still exist but there may be some easily obtainable solutions.

    The order number, which is readily available to the email templates, will scan using NScan V6's Group Entry. While this may not be as intuitive as giving all ticket numbers it offers options to print a scan-able code in an email. Using group entry for order confirmation emails may actually be ideal, in any case, as multiple barcodes on a single page tends to get a bit confusing for scanning staff/volunteers.

    Beyond this the order number, being reasonably short, should be able to fit within a standard V1 QR code with pretty high ECC. This is ideal as HTML tables may be capable of generating a QR code using a 21x21 grid thus removing any of potential of images not printing/being downloaded. Seeing as HTML would be already required to embed images this would seem the ideal method for embedding a barcode.

  • Example/Fiddle of HTML Table based QR Code (utilizing a modified, non canvas version of https://github.com/davidshimjs/qrcodejs)

    jsfiddle.net/.../