Support

Home Forums Event Espresso Premium Different results for QR Code & Barcode in ticket

Different results for QR Code & Barcode in ticket

Posted: March 11, 2015 at 9:14 am

Viewing 5 reply threads


moho setiya putra

March 11, 2015 at 9:14 am

Hi all,

I scanned the QR Code and Barcode at the same ticket, and they gave different results.
The barcode result were the registrant number : 29-3-1-0AF3AE
but the result from QR Code is : 1-0af751e244526837152e5271b502d3ae
I used barcode & QR code scanner on my smartphone.
So how can I relate those results?

Thanks,

Joanne


Josh

  • Support Staff

March 11, 2015 at 5:08 pm

Hi Joanne,

It turns out they are different codes for the same registration record. The default barcode returns the “short_code” which is equivalent to the reg_code value for the registration.

The QR code returns the “long_code”, which is the equivalent to the reg_url_lnk value for the registration.

You can change the bar code to return the “long_code” just link the QR code if you want by editing the ticket template so the barcode shortcode is like this:
[BARCODE_* generate_for=long_code]

The barcode scanning add-on will accept either code type.


moho setiya putra

March 11, 2015 at 8:57 pm

Hi Josh,
thanks for your reply. Is it possible to generate the short code for QR Code? Because we prefer the short code for the registration process later in the conference. I’ve tried to apply generate_for=short_code for QR Code, but it’s still generate the long one.

thanks,

Joanne


Josh

  • Support Staff

March 11, 2015 at 9:42 pm

Hi Joanne,

Yes it’s possible. Instead of using the QR_Code shortcode, you can use the Google Chart API to generate a custom QR code like this:

<img src=http://chart.apis.google.com/chart?cht=qr&chs=200x200&chl=[RECIPIENT_REGISTRATION_CODE]&chld=H|0 alt="QR Code" />

More documentation on this can be found here:

https://eventespresso.com/wiki/custom-qr-codes-for-tickets/


moho setiya putra

March 12, 2015 at 8:48 pm

OK Josh…thanks for your information, I’ve applied the code and it works. Thanks so much..:)


Josh

  • Support Staff

March 13, 2015 at 8:38 am

You’re welcome.

Viewing 5 reply threads

The support post ‘Different results for QR Code & Barcode in ticket’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso