/
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:

  • 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.

Related content

QR Code Update for Email Template Source Code
QR Code Update for Email Template Source Code
More like this
Adding Global Bar Codes and QR Codes to Emails
Adding Global Bar Codes and QR Codes to Emails
More like this
Configuration: Emails
Configuration: Emails
More like this
Adding Product-level Bar/QR Codes to Confirmation Email
Adding Product-level Bar/QR Codes to Confirmation Email
More like this
Overview: Payment Gateways
Overview: Payment Gateways
Read with this
January 11, 2024 - Commerce 3.2.4 Hotfix
January 11, 2024 - Commerce 3.2.4 Hotfix
More like this