Custom Notification Variables

These are the variables available for tag rule notifications.

Usage

  1. Create a Tag Order rule and click the mail icon to open up the notification editor
  2. Put the variable from below where you want it to show
  3. Click the Preview tab in the editor to send yourself an email to see what it looks like

If the order doesn't contain the field you referenced with the variable then a blank space will be rendered where the variable was.

    • Example: If you put {customer_phone} in the body and the order doesn't contain a customer phone number, the email will just show a blank space where the {customer_phone} variable was.

See Using HTML and CSS in Notification Emails to customize style.

Subject

{customer_name} = Customer name

{order_metafield:namespace.key} = Order metafield for the specified namespace + key.

  • Example: {order_metafield:custom.scheduled_date}

{order_number} = Order number

{shipping_name} = Name of the shipping method

{store_name} = Store name, as defined in Shopify settings > General

{tag_name} = The name of the tag the notification is linked to


Body

{additional_details:key} = Gives the value for assigned key name in the Additional details section of the order. Example: {additional_details:Subscription_ID}

{customer_email} = Customer email address

{customer_name} = Customer name

{customer_phone} = Customer's shipping address phone number

{discount_amount} = The amount of discounts on the order

{line_items} = Put this where you want the order line items block to show in the email body

  • See Line Items below for line item variables
  • This shows all line items in the order

{order_metafield:namespace.key} = Order metafield for the specified namespace + key.

  • Example: {order_metafield:custom.scheduled_date}

{order_notes} = Notes section of the order

{order_number} = Order number

{order_number_link} = Order number, linked to the order details page

{shipping_address} = Shipping address, in this order:

  • Company name if present
  • Address
  • City, state, zip
  • Country

{shipping_address_name} = Name on the shipping address, often the customer's name

{shipping_name} = Name of the shipping method

{shipping_price} = Total shipping price

{store_name} = Store name, as defined in Shopify settings > General

{subtotal_price} = Price of the order after discounts but before shipping, duties, taxes, and tips

{tag_name} = The name of the tag the notification is linked to

{tax_amount} = The amount of tax on the order

{total_price} = Sum of all line item prices, discounts, shipping, taxes, and tips in the order

{total_matching_items_price} = Sum of all line item prices in the order that match the rule

    • Does not include discounts, shipping, etc.

{tracking_link} = Include a link in the email that allows the recipient to update tracking / fulfill remotely

    • Remote Tracking on the Auto Fulfill page must be enabled to populate the link

{tracking_info} = Adds tracking company and number

    • Example: FedEx: 123456789

Line Items

If you have the {line_items} variable in the body section, it will populate with the order's line items, showing the image + the contents of the Line Item Title + Line Item Details template fields.

{barcode} = Value in the barcode (UPC, EAN, ISBN, etc.) field of the variant

{inventory_available} = Inventory level available at the location the line item is assigned in the order

{item_name} = Full line item name (product title + variant)

{line_total_price} = Item price x quantity minus any line item discounts applied

{price} = Price of the item. If a line item discount is applied, the original price shows next it, crossed out

{product_metafield:namespace.key} = Product metafield for the specified namespace + key.

  • Example: {product_metafield:custom.bundle_id}

{product_title} = Product title

{properties} = Custom information added to the item when added to cart (shows under the line item in the Shopify order details page)

{quantity} = Quantity ordered

{sku} = Variant SKU

{unit_cost} = Cost per item

{variant_metafield:namespace.key} = Variant metafield for the specified namespace + key.

  • Example: {variant_metafield:custom.color}

{variant_title} = Name of the variant (Large, Blue, etc)

{vendor} = Product vendor name

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us