Skip to main content
Available Template Variables

Using Template Variables to customize the quote emails for your Store

Micah Thomas avatar
Written by Micah Thomas
Updated over 2 years ago

There are lots of variables available to you to help customize the quotes sent through B2B 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. {{=store.address}}. The first delineation of every variable is 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

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

{{=store.city}}
League City

{{=store.state}}
Texas

{{=store.zipcode}}
77573

{{=store.country}}
United States

Localization

{{=store.currency}}
USD

{{=store.currency_symbol}}
$

{{=store.wieght_units}}
LBS

General Information

{{=store.logo.url}}  
https://logo.png

  • ( 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%;"> ) 

{{=store.name}}
Store Name  

  • Store name provided to us by BigCommerce

{{=store.company}}
Company/Business Name 

  • Stored under template variable section of QN 

  • Editable in 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

{{=user.name}}
Micah Thomas

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

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

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

Customer Information

{{=customer.address}} 

{{=customer['address-2']}}
Suite A

  • We suggest using a conditional logic so that you don't end up with a blank space for all the addresses without a second line. You'd use something like this: {{?customer['address-2']}}{{=qn.customer['address-2']}}<br>{{?}} 

{{=customer.city}} 

{{=customer.company}} 

{{=customer.email}} 

{{=customer.name}} 

  • Renders first and last name

{{=customer.firstname}} 

{{=customer.lastname}} 

{{=customer.phone}} 

{{=customer.state}} 

{{=customer.zipcode}}  

Miscellaneous

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

This populates the current date.
{{=qn.date}}
October 7th 2016


This populates the original creation date of the quote.

{{=quote.created_date}}

 October 7th 2016


​ 

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


Did this answer your question?