Order comments email template

We use this template for the email comments sent via a completed order's details in your dashboard. You can use the order details COMMENTS section to communicate via email with a customer regarding their completed order. The written message you input in the order details comments will be automatically inserted into this email template.

Customizing the default template

When you enter the email editor for the first time, you'll have a default template to get started. The actual email related to this template is sent through the dashboard, under a completed order's details. From there, the message you enter will replace the message variable in your template.

The template editor example below includes the message variable you can modify under an order's details.

---
Subject: Information regarding your order {{ order.invoiceNumber }} on {{ settings.businessAddress.company }}.
---

<!DOCTYPE html>
<html>
<head></head>
<body style="font-family: Arial; font-size: 12px;">
    <p>
        {{! You have access to the whole order information using the `order` object. Might be helpful to show some contextual information }}
        Hey {{ order.billingAddress.fullName }},
    </p>

    <div>
        {{ #if order.invoiceNumber }}
            A comment has been added to your order
            <a href="{{ settings.orderUrl }}">
                <strong>{{ order.invoiceNumber }}</strong>
            </a>
            on <strong>{{ settings.businessAddress.company }}</strong>
        {{ /if }}
    </div>

    <blockquote style="margin: 1em 0; padding: 1em; border: solid 1px #aaa">
        {{! Use thie variable `message` to display the message that you enter in the dashboard when consulting an abandoned cart details screen.}}
        {{{ message }}}
    </blockquote>

    <div>
        If you have any questions regarding this message, reply to this email directly.
    </div>
</body>
</html>

Order comments template data

{
  "message": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin pulvinar faucibus ex id pharetra. Mauris tempor urna ac volutpat placerat.",
  "settings": {
    "signature": "<p>SNIPCART <br /><br />\nsnipcart.com <br /><br />\n<br /><br />\nBureau de Québec (administration) <br /><br />\n4885 1ere Avenue <br /><br />\nQuébec (Québec) G1H 2T5 <br /><br />\ngeeks@snipcart.com <br /><br />\n1 418 800 8440 <br /><br />\n<br /><br />\nTPS #XXXXXXXXXX <br /><br />\nTVQ #XXXXXXXXXX <br /></p>\n",
    "businessAddress": {
      "company": "snipcart.com",
      "address1": "226 rue St-Joseph Est",
      "address2": null,
      "city": "Québec",
      "country": "CA",
      "postalCode": "G1K3A9",
      "province": "QC",
      "phone": null
    },
    "includeProductImagesInInvoice": false,
    "logoUrl": "https://snipcart.com/images/snipcart_logo.svg",
    "orderUrl": "https://snipcart.com#!/orders/c83bcffd-a99e-4f94-a28f-e1986acd2e06"
  },
  "order": {
    "token": "c83bcffd-a99e-4f94-a28f-e1986acd2e06",
    "email": "john.doe@example.com",
    "mode": "Live",
    "status": "Processed",
    "shipToBillingAddress": false,
    "billingAddress": {
      "fullName": "John Doe",
      "firstName": null,
      "name": "John Doe",
      "company": "Snipcart",
      "address1": "226 rue St-Joseph Est",
      "address2": null,
      "city": "Quebec",
      "country": "CA",
      "postalCode": "G1K 3A9",
      "province": "QC",
      "phone": null
    },
    "modificationDate": "2016-10-06T19:07:37.0836458Z",
    "shippingAddress": {
      "fullName": "John Doe",
      "firstName": null,
      "name": "John Doe",
      "company": "Snipcart",
      "address1": "226 rue St-Joseph Est",
      "address2": null,
      "city": "Quebec",
      "country": "CA",
      "postalCode": "G1K 3A9",
      "province": "QC",
      "phone": null
    },
    "completionDate": "2016-10-05T19:07:37.0836458Z",
    "invoiceNumber": "SNIP-1001",
    "shippingInformation": {
      "provider": null,
      "fees": 20,
      "method": "Standard shipping"
    },
    "paymentMethod": "CreditCard",
    "card": {
      "last4Digits": "4242",
      "ownerName": null,
      "type": "Visa"
    },
    "summary": {
      "subtotal": 100,
      "taxableTotal": 150,
      "total": 120,
      "payableNow": 120,
      "paymentMethod": "CreditCard",
      "taxes": [],
      "upcomingPayments": [
        {
          "name": "Monthly plan",
          "subtotal": 20,
          "taxableTotal": 0,
          "date": "2016-10-05T00:00:00Z",
          "total": 20,
          "paymentMethod": 0,
          "taxes": [],
          "adjustedTotal": null
        }
      ],
      "adjustedTotal": 100
    },
    "items": [
      {
        "uniqueId": "a748c8bf-aecc-4f49-a0db-361aaab97011",
        "token": null,
        "id": "tshirt",
        "name": "Geek T-Shirt",
        "price": 50,
        "description": null,
        "url": "/",
        "image": "https://placeholdit.imgix.net/~text?txtsize=14&txt=150%C3%97150&w=150&h=150",
        "quantity": 2,
        "minQuantity": null,
        "maxQuantity": null,
        "stackable": false,
        "shippable": false,
        "taxable": true,
        "taxes": [],
        "customFields": [
          {
            "name": "Size",
            "operation": null,
            "type": null,
            "options": null,
            "required": false,
            "value": "Medium",
            "optionsArray": null
          },
          {
            "name": "Color",
            "operation": null,
            "type": null,
            "options": null,
            "required": false,
            "value": "Red",
            "optionsArray": null
          }
        ],
        "duplicatable": false,
        "alternatePrices": null,
        "unitPrice": 50,
        "totalPrice": 100,
        "addedOn": "2016-10-05T18:07:37.0836458Z"
      },
      {
        "uniqueId": "1071a942-bbd9-4d6a-82f2-c80e8f9df4a9",
        "token": null,
        "id": "poster",
        "name": "Awesome poster",
        "price": 10,
        "description": null,
        "url": "/",
        "image": "https://placeholdit.imgix.net/~text?txtsize=14&txt=150%C3%97150&w=150&h=150",
        "quantity": 3,
        "minQuantity": null,
        "maxQuantity": null,
        "stackable": false,
        "shippable": false,
        "taxable": true,
        "taxes": [],
        "customFields": [],
        "duplicatable": false,
        "alternatePrices": null,
        "unitPrice": 10,
        "totalPrice": 30,
        "addedOn": "2016-10-05T18:07:37.0836458Z"
      }
    ],
    "discounts": [
      {
        "id": "54c309d6-f597-4dbc-bb87-7efc422662f2",
        "amountSaved": 50,
        "name": "50$ off",
        "value": -50,
        "type": "FixedAmount",
        "trigger": "Code",
        "code": "50_OFF",
        "affectedItems": []
      }
    ],
    "customFields": [
      {
        "name": "Comment",
        "operation": null,
        "type": null,
        "options": null,
        "required": false,
        "value": "This is a comment on this order",
        "optionsArray": null
      },
      {
        "name": "Accept terms",
        "operation": null,
        "type": null,
        "options": null,
        "required": false,
        "value": "true",
        "optionsArray": null
      }
    ],
    "plans": [
      {
        "orderToken": null,
        "uniqueId": "4c487a75-7521-4c5c-a24e-7d1f1eb6211d",
        "id": "MTLY_PLAN",
        "url": "/",
        "name": "Monthly plan",
        "subscriptionId": null,
        "interval": "Month",
        "intervalCount": 0,
        "trialPeriodInDays": null,
        "amount": 20,
        "totalAmount": 20,
        "amountWithTaxes": 20,
        "totalAmountWithTaxes": 20,
        "quantity": 1,
        "metadata": null
      }
    ],
    "refunds": [
      {
        "amount": 20,
        "comment": "Refunded after speaking with customer.",
        "notifyCustomer": false,
        "refundedByPaymentGateway": false,
        "creationDate": "2016-10-06T19:07:37.0836458Z"
      }
    ],
    "currency": null,
    "totalWeight": 0,
    "total": 120
  }
}

Was this article helpful?