Smart Coupons provide a powerful, “all-in-one” solution for gift certificates, store credits, discount coupons, and vouchers extending the core functionality of WooCommerce coupons.
This doc article explains how to change, replace and override email template of the coupon’s email.
All emails sent from Smart Coupons, including the coupon code, are sent via an existing template that is located in the
'templates' directory of Smart Coupons. If you want to change or modify the content of an email or if you want to the change layout, there are two ways to do it.
- Apply change in file:
'/woocommerce-smart-coupons/templates/email.php'. Modify its content and style, as needed. Note: This method is not recommended, as you’ll lose changes after updating Smart Coupons to a newer version.
- Use another template file:
Use your own email template in place of the default one provided by Smart Coupons.
- Create a template file and keep the file name as:
email.php. Other file names will not work.
- Open your themes folder and create a new folder. Keep the folder’s name as:
- Place file
- The file path of your email template should be:
Smart Coupons will use your template file (if found) for all emails sent from Smart Coupons.