Documentation
Configuration - Modules - Gift certificates
This section only applies if the module Gift certificate is active.

The gift certificate module uses two templates: the email template and the PDF template. The email template is used to send a gift certificate to the customer. The PDF template generates the actual gift certificate. The PDF template is automatically attached to the email. The PDF template can also be generated separately.

Templates can be created by going to Templates > Templates in configuration mode.

Note: If multiple languages are active in the i-Reserve environment, a separate template must be created for each language. The name of the templates must be the same for each template.

PDF template

  • Standard name: pdf_giftcertificate
  • Context: gift
  • Type: PDF

The PDF template can generate a document that serves as the gift certificate. When creating a gift certificate type, you can select the PDF template that will be used for generating the certificate. A number of variables are available when creating the template:

  • {GIFT_ID}: The ID of the gift certificate (not to be confused with the gift certificate code!)
  • {GIFT_VOUCHER}: The gift certificate code that can be used when making a reservation
  • {VOUCHER_NAME}: Name of the gift certificate
  • {VOUCHER_LONG_MEMO}: Description of the gift certificate
  • {GIFT_VALIDFROM}: Gift certificate valid from
  • {GIFT_VALIDTILL}: Gift certificate valid until
  • {GIFT_VALIDPRODUCT}: Product for which the gift certificate is valid
  • {GIFT_PRICEFORMAT}: (Remaining) amount of the gift certificate

Email template

  • Standard name: email_giftcertificate
  • Context: system
  • Type: email

The email template can be used to send an email to the customer with the PDF gift certificate attached. For this to work, the name of the email template must be email_giftcertificate. The PDF template that is attached is selected in the settings of the gift certificate type.

Gift certificate variables cannot be used in the email template. However, general variables can be used, such as variables related to the current date.