Order Status Emails

In addition to using order statuses to manage your orders, you can choose emails that will be sent when an order moves into that status.

For example you might create an Email called "Order Confirmation for Customer" which confirms the order has been completed and is sent to the customer. This email should likely be linked to the default order status, since we want it to trigger when the cart is completed and becomes an order.

Another email could be set up called "Order Notification for Admin" which could also be attached to the default order status, but get’s set to the store owners email address.

Settings #

Before setting up emails for Craft Commerce. Ensure that your Craft CMS installation has email configured correctly.

You can set up your email gateway in the Craft CMS control panel by going to Settings ⟶ Email.

If you want to have a different "From Email" and "From Name" for your commerce store emails, which overrides the Craft CMS email defaults, go to Commerce ⟶ Settings ⟶ General Settings and enter in your store from name and email address.

New Email Settings

Creating an Email #

To create an email go to Commerce ⟶ Settings ⟶ Emails and click ‘New Email’.

Emails have the following configuration settings:

Name #

Enter the name of this email as it will be shown when managing it in the control panel.

Email Subject #

The subject of the email.
Plain text can be entered or twig can also be used to set dynamic values. Two special variables available to you:

order is the current cart or order that this email is a notification for. For example, for the subject we might use a template like:

Order #{{ order.id }} received.`

Recipient #

The ‘to’ address or addresses for this email.

If "Send to the customer" is selected, the email will only be sent to the customer of the order, and will be sent in the language (locale) that customer made the order in. This affects the use of the |t filter in other email fields that support twig.

If "Send to custom recipients" is selected, an email address (or addresses separated by a comma) can be entered. Please note the language of this email will be in the language of the current user triggering the status change.

Plain text can be entered or twig can also be used to set dynamic values. Two special variables available to you:

order is the current cart or order that this email is a notification for. For example, for the subject we might use a template like:

{{ order.email }}`

This would send the email to the customer to made this order.

BCC’d Recipient #

The ‘BCC’ addresses for this email. You can seperate the addresses by a comma: ,
Plain text can be entered or twig can also be used to set dynamic values. Two special variables available to you:

Most likely, you would BCC the store owner on order confirmation.

HTML Email Template Path #

The template path to a template in your site templates folder. Plain text template path can be entered or Twig code can also be used to set dynamic values.

You can use the following variables in both the template path & template file body:

This allows you to have full design flexibility.

Craft global set variables are not loaded automatically into your email templates. See below for a work-around

To get access to global set variables you need to manually load them into your templates like so:

{% set globalSetName = craft.globals.getSetByHandle('globalSetName') %}

{{ globalSetName.customFieldName }}

Further documentation on the craft.globals twig function are available here.

Buy Craft Commerce

Craft Commerce site license

Includes

  • Standard tech support
  • Unlimited app updates
  • Craft Pro site license
Buy now for $999
Can I try before buying?

Absolutely. Just download it from the “Download” button in the site header and follow our installation instructions. You’ll have the full feature set to experiment with, with just one limitation: you won’t be able to charge credit cards. Until Craft Commerce has been purchased and activated, it’s limited to a single dummy gateway.

Will there be recurring/upgrade fees?

Nope, it’s just a one-time license fee per site.

Can I use this on an existing Craft site?

Yes! And if you already have a Craft Pro license (or you don’t need one), just flip that “Include a Craft Pro license” switch in the purchase form, and we’ll drop the price to $700.

Is Craft Pro required?

Craft Commerce does not require Craft Pro; it works perfectly fine on Craft Client and Personal editions as well!

Can I try before buying?

Absolutely. Just download it from the “Download” button in the site header and follow our installation instructions. You’ll have the full feature set to experiment with, with just one limitation: you won’t be able to charge credit cards. Until Craft Commerce has been purchased and activated, it’s limited to a single dummy gateway.

Will there be recurring/upgrade fees?

Nope, it’s just a one-time license fee per site.

Can I use this on an existing Craft site?

Yes! And if you already have a Craft Pro license (or you don’t need one), just flip that “Include a Craft Pro license” switch in the purchase form, and we’ll drop the price to $700.

Is Craft Pro required?

Craft Commerce does not require Craft Pro; it works perfectly fine on Craft Client and Personal editions as well!