There are lots of variables available to you to help customize the quotes sent through Quote Ninja. This post breaks it down into subsections based on how the information through the template variables. You might be familiar with {{}} as it has become one of the most popular template substitution symbols also known as Handlebars or Mustache templates. Quote Ninja templates use a variation of this type of template syntax. To output a variable to the template, you have to wrap it with curly braces and with an equal to sign at the start of the variable, i.e {{=qn.store.address}}. Every variable will be part of the qn delineation; the second delineation will be the category that variable belongs to.

Store Information

The store category contains all the variables connected to the store, these will not change from quote to quote and is editable under your Template page. After you make any changes, to view that change in a quote, please refresh the quote.

Store Address

{{=qn.store.address}}
1111 West Main St, League City, TX 77573

{{=qn.store.street}}
1111 West Main St 

{{=qn.store.city}}
League City

{{=qn.store.state}}
Texas

{{=qn.store.zipcode}}
77573

{{=qn.store.country}}
United States

Localization

{{=qn.store.currency}}
USD

{{=qn.store.currency_symbol}}
$

{{=qn.store.wieght_units}}
LBS

General Information

{{=qn.store.logo.url}} ( Note if you're trying to display the store logo, you need to use proper html to do so ie: <img src="{{=qn.store.logo.url}}" style="max-width: 100%;"> ) This varialble also requires you have a logo uploaded in the design section of BigCommerce.
https://logo.png

{{=qn.store.name}}
Store Name

{{=qn.store.secure_url}}
https://secure-domain.com/cart.php

Secure Cart URL, if you have a HTTPS domain, that will be automatically used 

Quote Information

The quote category contains all the variables related to a specific quote. This category's variables will be unique to each quote that you send.

Representative Information

{{=qn.user.name}}
Micah Thomas

{{=qn.user.email}}
[email protected]

{{=qn.user.profile_img}}  
https://user_img.png
 

{{=qn.user.phone}}
512-85-Ninja

Customer Information

{{=qn.customer.address}}

{{=qn.customer.city}}

{{=qn.customer.company}}

{{=qn.customer.email}}

{{=qn.customer.name}} --- Renders first and last name

{{=qn.customer.firstname}}

{{=qn.customer.lastname}}

{{=qn.customer.phone}}

{{=qn.customer.state}}

{{=qn.customer.zipcode}} 

Miscellaneous

This section contains variables that don't fit into one of the above categories.

{{=qn.date}}
October 7th 2016

{{=qn.store.conditions}}
Conditions set under the Templates Settings page.


More on conditional variables here.


Did this answer your question?