Barcodes Update for Email Template Source Code

In the past, some resorts experienced issues with barcodes in their confirmation and voucher emails. These issues occurred on busy days because of a limit imposed by our barcode provider, Tec-it.

CLOUD CUSTOMERS: This method is required for customers creating email templates in Commerce version 3.2 or later.

To resolve this, we upgraded our subscription with Tec-it to a level without rate limits. This change, however, requires resorts that use barcode formats to replace the message template source code in their email template HTML as follows:

  • Go to Content management > Message templates in Admin.

  • Scroll to locate the Vouchers.EmailVoucher template (or other template to which you would like to add a barcode) and click Edit

  • Click Tools > Source Code

  • If editing, search the Body for https://barcode.tec-it.com/barcode.ashx?data=%Voucher.Id% and replace it with this new URL https://services.tec-it.com/ASPX/TBarCode/barcode.ashx?data=%Voucher.BarCodeData%

  • If creating a new template, paste the URL https://services.tec-it.com/ASPX/TBarCode/barcode.ashx?data=%Voucher.BarCodeData% into the template

  • Click OK.

  • Click Save at the top of the Edit message template details page.

  • Once back on the Message templates page, scroll to locate the OrderPlaced.CustomerNotification template and click Edit

  • Edit Tools > Source Code as previously done and search for https://barcodeapi.org/api/128/[PREFIX]%Order.OrderNumber% where [PREFIX] is your resort’s order prefix ID

  • Replace with the following new url https://services.tec-it.com/ASPX/TBarCode/barcode.ashx?data=%Order.BarCodeData% DO NOT ADD THE PREFIX ID. THIS WILL BE AUTO GENERATED.

  • Search for %Order.OrderNumber% note that when you search you will see your resort’s prefix such as this: KL%Order.OrderNumber%

  • Remove both the token and the prefix and replace with %Order.OrderNumberWithPrefix% DO NOT ADD THE PREFIX ID. THIS WILL BE AUTO GENERATED.