home

Browse documentation

ezyVet Knowledge Center

Get access to documentation, training, and other high-quality resources.

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 if statement.
  • Between the if tag and the else tag, put the text to show when the condition is true.
  • Between the else tag and the endif tag, put the text to show when the condition is not true.
Note: When you use the variable without an 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.IncGst is 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.
RecordThe 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

NameClassic template system equivalent?Function
{{ settings.BusinessName }}NoShows the business name of your ezyVet site.
{{ settings.Business }}NoShows 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 }}NoShows the company number of your ezyVet site.
{{ settings.DivisionContact }}NoShows 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 }}NoShows 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 }}NoShows the company number of the department that the document is for.
{{ settings.ReferToAnimals }}NoShows the word that your ezyVet site uses for animals, for example patients or pets.
{{ settings.OnlineBookingUrl }}NoShows the URL of the online booking portal of your ezyVet site.
{{ settings.OnlineBookingCalendarUrl }}NoShows the URL of the calendar page of the online booking portal of your ezyVet site.
{{ financial.TaxName }}NoShows the name of the sales tax of your ezyVet site, for example GST or VAT.
{{ financial.TaxNumber }}NoShows the tax number of your ezyVet site.
Note: You can also enter {{ financial.GstNum }}.
{{ financial.CurrencySymbol }}NoShows the currency symbol of your ezyVet site.
{{ financial.HtmlSafeCurrencySymbol }}NoShows the currency symbol of your ezyVet site in a format that is safe to use in HTML.
{{ datetime.TodaysDate }}NoShows the date when you print or send the document.
Note: The date obeys your date format configuration.
{{ datetime.TodaysFullDate }}NoShows 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 }}NoShows the time when you print or send the document.
{{ datetime.CurrentMonth }}NoShows the full name of the month when you print or send the document.
{{ financialsettings.SalesTaxName }}NoShows the name of the sales tax of your ezyVet site.
Note: This variable shows the same value as {{ financial.TaxName }}.
{{ financialsettings.IncGst }}NoTrue if your ezyVet site is configured for prices that include tax.
Note: Use this variable in a Twig if statement. Refer to Variables that check a condition.
{{ financialsettings.SalespersonOnInvoices }}NoTrue if your ezyVet site is configured to show the sales person on invoices.
Note: Use this variable in a Twig if statement. Refer to Variables that check a condition.
{{ financialsettings.IncludeTotalBeforeDiscount }}NoTrue if your ezyVet site is configured to show the total before discount on invoices.
Note: Use this variable in a Twig if statement. Refer to Variables that check a condition.
{{ financialsettings.ShowTaxOnInvoiceLines }}NoTrue if your ezyVet site is configured to show the tax of each invoice line item.
Note: Use this variable in a Twig if statement. Refer to Variables that check a condition.
{{ financialsettings.ShowInvoiceItemOnPaymentReceipt }}NoTrue if your ezyVet site is configured to show the invoice line items on payment receipts.
Note: Use this variable in a Twig if statement. Refer to Variables that check a condition.
{{ financialsettings.HideInvoicePrices }}NoTrue if your ezyVet site is configured to hide prices on invoices.
Note: Use this variable in a Twig if statement. Refer to Variables that check a condition.
{{ financialsettings.HideCodeOnInvoices }}NoTrue if your ezyVet site is configured to hide product codes on invoices.
Note: Use this variable in a Twig if statement. Refer to Variables that check a condition.
{{ templatesettings.LogoLocation }}NoShows the location of the logo image of your ezyVet site.
Tip: Use this variable in an image tag to show the logo.