Fork me on GitHub

Shop emails can be customised to suit your project needs.

Enable / disable sending of emails

There are a few yaml config options that will affect which emails are sent:

OrderProcessor:
    #send order confirmation when order is placed, but unpaid
    send_confirmation: true

#send a bcc copy of emails to administrator
OrderEmailNotifier:
    bcc_confirmation_to_admin: true
    bcc_receipt_to_admin: true

#Specify the 'from' address to use in email correspondence
ShopConfig:
    email_from: store@website.com

Modifying templates

Update email content by overriding the templates inside the templates/email/ folder. Just create a corresponding folder/template in your mysite folder, such as mysite/templates/email/Order_RecieptEmail.

Modifying subject lines

Email subjects are in the translation system, so you can do the following to change an email subject line:

mysite/lang/en.yml:

en:
  OrderNotifier:
    RECEIPTSUBJECT: 'My Website Order #%d Receipt'