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 the overridable template files can be found within the
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 (Upgrade-unsafe): ↑ Back to top
'/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 (Upgrade-safe): ↑ Back to top
Use your own email template in place of the default one provided by Smart Coupons. Copy the template into a directory within your theme named
/woocommerce keeping the same file structure but removing the
Example: To override the email template of the coupon’s email,
The copied file will now override the WooCommerce Smart Coupons’ default template file.
Smart Coupons will use your template file (if found) for all emails sent from Smart Coupons.