Replacement Variables

Replacement variables are accessible across the Bottle platform. In order to use replacement variables, you take the name of the variable and put it in between {{{ and }}} brackets.

For example, to replace with the customer's display name, you'd insert it as:

Hey, {{{name}}}!

Here are a list of many - but not all - replacement variables.

For the User object:

{{{name}}}
{{{first_name}}}
{{{last_name}}}
{{{phone}}}
{{{email}}}
{{{referral_code}}}
{{{account_credit}}}

You can also invoke anything you've created as an attribute. For instance, if you create a "city" attribute, you can use that attribute's value in a message by inputting: 

{{{city}}}

For the Message object:

{{{message.body}}}

For the Order object:

{{{order.subtotal}}}
{{{order.tax_amount}}}
{{{order.tip_amount}}}
{{{order.delivery_amount}}}
{{{order.refund_amount}}}
{{{order.discount_amount}}}
{{{order.total}}}
{{{order.full_name}}}
{{{order.address1}}}
{{{order.address2}}}
{{{order.city}}}
{{{order.state}}}
{{{order.zip}}}
{{{order.delivery_address}}}
{{{order.line_items_quantity}}}
{{{order.delivery_date}}}
{{{order.day_before_delivery_date}}}
{{{order.link}}}

Still need help? Contact Us Contact Us