MODULES
...
eCommerce
Cart, Checkout, Shipping and O...

Order Confirmation Emails

10min
use workflow and autoresponder emails to send confirmation messages to customers, including a detailed breakdown of their order prerequisites you have installed ecommerce module v0 12 0 or later checkout modules overview to find out how you can install the latest version you have set up a checkout or quote only form learn more about checkout here how to set up a shopping cart and guest checkout or learn more about the quote only feature here ecommerce quote only introduction you can now add details of a customer's ecommerce order to workflow and autoresponder transactional emails give your client and the customer peace of mind, as well as valuable records for their safekeeping ecommerce orders are created by checkout and quote only forms within the email, you can also access any fields that were submitted along with the original form learn more here dynamic content in workflow and autoresponder emails syntax add the following liquid tag to include the details of the customer's most recent order {% include 'ecommerce/order details', layout 'email' %} in an email notification, this will always be based on the form that triggered the email only an order generated by that form submission will be visible in this context this means that autoresponder emails will always show form submission data from the correct user layouts file structure you can use an existing layout, or create a new one in this file structure layouts/modules/module 14/order/my layout/ within your layout folder, you'll need an item liquid and a wrapper liquid file developing the layout inside your email notification file, you'll have access to the form object {{form properties}} this contains the fields submitted with the form learn more here dynamic content in workflow and autoresponder emails you'll still have access to these fields throughout the order details layouts inside your order details layout you'll find an item liquid and wrapper liquid file wrapper you can use the wrapper liquid file to build the main html structure of your layout when you're ready to include the order details, use the following liquid to include the item liquid file {% include 'modules/siteglide ecommerce/ecommerce/get/get order details' item layout 'item' %} item the item liquid file will have access to the this object, which will contain details about the order {{this}} orders involve several different types of models and can be complex when developing you will need to use loops to take into account each different ecommerce element which may be a part of the order when developing a custom layout, it may be helpful to refer to the default layout looping over products this loop will find any products in the order and loop over them {% for product in this order products %} {% endfor %} looping over products and accessing fields within a product loop, you can access the fields associated with that product {{ product product name }} {{ product quantity }} {{ product product code }} {{ product currency symbol }} {{ product price }} looping over products, then looping over attributes {% for product in this order products %} {% for attribute in product order product attributes %} {% endfor %} {% endfor %} outputting shipping method the following fields are available relating to the shipping method this\['shipping method name'] this\['currency symbol'] this\['shipping method price'] {% include 'modules/siteglide ecommerce/ecommerce/price formatter', price data this\['shipping method price'] %} a formatted shipping price example of only including shipping information if it was set {% if this\['shipping method name'] != blank %} {{this\['shipping method name']}} {{ this\['currency symbol'] }} {% include 'modules/siteglide ecommerce/ecommerce/price formatter' price data this\['shipping method price'] %} {% endif %} outputting totals {{ this\['currency symbol'] }} this\['total price'] {% include 'modules/siteglide ecommerce/ecommerce/price formatter', price data this\['total price'] %} a formatted total price