/
Barcodes Update for Email Template Source Code

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:

Vouchers.EmailVoucher

  • 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://services.tec-it.com/ASPX/TBarCode/barcode.ashx?data=%Voucher.BarCodeData%&code=Code128&ampand replace it with this new URL https://services.tec-it.com/ASPX/TBarCode/barcode.ashx?data=%Voucher.BarCodeData%&amp

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

NOTE: This will result in an error showing in admin but will generate the barcode when emailed to customer form a completed order.

image-20241203-200702.png
  • 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.

OrderPlaced.CustomerNotification

OR if original URL is in this format,

OR

NOTE: This will result in an error showing in admin but will generate the barcode when emailed to customer form a completed order.

image-20241203-200724.png

Related content