Twig template variables: Site-wide variables
The site-wide variables show data of your ezyVet site (for example, the business name and the currency symbol). You can use the site-wide variables in all templates.
Variables that check a condition
Some of these variables show if a condition is true. For example, financialsettings.IncGst is true if your ezyVet site is configured for prices that include tax.
To use a variable of this type:
- Put the variable in a Twig
ifstatement. - Between the
iftag and theelsetag, put the text to show when the condition is true. - Between the
elsetag and theendiftag, put the text to show when the condition is not true.
if statement, the variable shows 1 when the condition is true. When the condition is not true, the variable shows no value.Example:
{% if financialsettings.IncGst %}
All prices include tax.
{% else %}
All prices do not include tax.
{% endif %}In this example:
financialsettings.IncGstis true if your ezyVet site is configured for prices that include tax.- When the condition is true, the document tells the client that the prices include tax.
- When the condition is not true, the document tells the client that the prices do not include tax.
| Record | The document shows |
|---|---|
| Callisto Vets, configured for prices that include tax. The condition is true. | All prices include tax. |
| Callisto Vets, configured for prices that do not include tax. The condition is not true. | All prices do not include tax. |
Variables
| Name | Classic template system equivalent? | Function |
|---|---|---|
{{ settings.BusinessName }} | No | Shows the business name of your ezyVet site. |
{{ settings.Business }} | No | Shows the business contact record of your ezyVet site. Tip: To show more information about the record, add one more variable after this variable, for example {{ settings.Business.PhoneNumber }}. |
{{ settings.CompanyNumber }} | No | Shows the company number of your ezyVet site. |
{{ settings.DivisionContact }} | No | Shows the contact record of the department that the document is for. Tip: To show more information about the record, add one more variable after this variable, for example {{ settings.DivisionContact.Name }}. |
{{ settings.UserDepartmentName }} | No | Shows the business name of the department that the document is for. Note: If the department does not have a business name, this variable shows the business name of your ezyVet site. |
{{ settings.UserDepartmentCompanyNumber }} | No | Shows the company number of the department that the document is for. |
{{ settings.ReferToAnimals }} | No | Shows the word that your ezyVet site uses for animals, for example patients or pets. |
{{ settings.OnlineBookingUrl }} | No | Shows the URL of the online booking portal of your ezyVet site. |
{{ settings.OnlineBookingCalendarUrl }} | No | Shows the URL of the calendar page of the online booking portal of your ezyVet site. |
{{ financial.TaxName }} | No | Shows the name of the sales tax of your ezyVet site, for example GST or VAT. |
{{ financial.TaxNumber }} | No | Shows the tax number of your ezyVet site. Note: You can also enter {{ financial.GstNum }}. |
{{ financial.CurrencySymbol }} | No | Shows the currency symbol of your ezyVet site. |
{{ financial.HtmlSafeCurrencySymbol }} | No | Shows the currency symbol of your ezyVet site in a format that is safe to use in HTML. |
{{ datetime.TodaysDate }} | No | Shows the date when you print or send the document. Note: The date obeys your date format configuration. |
{{ datetime.TodaysFullDate }} | No | Shows the date when you print or send the document, in a long format, for example 17 September, 2026.Note: For ezyVet sites in the United States, this variable uses the format September 17, 2026. |
{{ datetime.CurrentTime }} | No | Shows the time when you print or send the document. |
{{ datetime.CurrentMonth }} | No | Shows the full name of the month when you print or send the document. |
{{ financialsettings.SalesTaxName }} | No | Shows the name of the sales tax of your ezyVet site. Note: This variable shows the same value as {{ financial.TaxName }}. |
{{ financialsettings.IncGst }} | No | True if your ezyVet site is configured for prices that include tax. |
{{ financialsettings.SalespersonOnInvoices }} | No | True if your ezyVet site is configured to show the sales person on invoices. |
{{ financialsettings.IncludeTotalBeforeDiscount }} | No | True if your ezyVet site is configured to show the total before discount on invoices. |
{{ financialsettings.ShowTaxOnInvoiceLines }} | No | True if your ezyVet site is configured to show the tax of each invoice line item. |
{{ financialsettings.ShowInvoiceItemOnPaymentReceipt }} | No | True if your ezyVet site is configured to show the invoice line items on payment receipts. |
{{ financialsettings.HideInvoicePrices }} | No | True if your ezyVet site is configured to hide prices on invoices. |
{{ financialsettings.HideCodeOnInvoices }} | No | True if your ezyVet site is configured to hide product codes on invoices. |
{{ templatesettings.LogoLocation }} | No | Shows the location of the logo image of your ezyVet site. Tip: Use this variable in an image tag to show the logo. |