You are here: Order System > Checkout Process > Sending Order Notifications

Sending Order Notifications


EPiServer Commerce includes a TemplateService which allows you to generate email texts for your site. The TemplateService uses a provider model to allow different providers to be used to generate the text of custom emails. The provider included is called XslTemplateProvider. This provider uses XSL to convert an order and an XSL file into a custom-formatted message. More detailed documentation about how this service works and examples of how to use it can be found in the section Email and Notification Capabilities.

Creating Your Own Custom Message Using the XslTemplateProvider

Use/modify one of the existing templates to create your own. Notice that the templates reference a common XSL document, order-shared.xsl, for common elements, like the footer and line item formatting. For more information on how to create XSL and XslTemplateProvider, see

Creating Your Own Custom Message Using the XslTemplateProvider in a Different Language

Create a new folder in your Templates folder with a name that corresponds to the CultureInfo name for the language you're looking to support with a new message template. Create and save the XSL template in this folder, translated to that language. To use the template, call the TemplateService.Process() method, passing in the name of the template (minus the xsl extension).

Creating Your Own TemplateProvider

Providers need to be registered in the web.config file (see above web.config snippet). Use the XslTemplateProvider registration in the web.config file as a guide. Each registration must have a name, type, applicationName, and templateSource path. The provider must inherit from TemplateProvider.


Version: EPiServer Commerce 1 R2 SP2| Last updated: 2012-06-29 | Copyright © EPiServer AB | Send feedback to us