As a guest user or logged-in user, you receive a confirmation email after you place an order upon checkout.
To set up email notification
Go to Setup > Administration Setup and click Classic Email Templates.
When you install the managed package, a folder named ECommerceEmailTempalates is available.
In Folder, select ECommerceEmailTempalates.
Click Edit for Guest User Order Notification. This is packaged with the managed package too. This email template is being used to notify users when an order gets created from the application.
Under the Email Template related list, you can view the default email template.
This template is the default template. You may choose to edit the template as per your requirement.
Click Edit Template.
This template has a default component that comprises the body of the email template. The component is highlighted in the image above.
To change the body of the template, you can define your own component and within this component, you can use OrderNotificationBodyController.getOrderURL(); to fetch the relative Order URL of your Digital Commerce application.
Click Setup > App Setup > Develop and click Apex Classes.
Browse and click to open OrderNotificationBodyController.
The class that is called is OrderNotificationBodyController.getOrderURL();
See the example email below: