1. Documentation
  2. Plugins
  3. WooCommerce
  4. Extensions
  5. Smart Coupons

How to change, replace and override email template

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.

Note: You can follow this same method for other templates of the Smart Coupons plugin.

All the overridable template files can be found within the /woocommerce-smart-coupons/templates/ directory.

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

Open 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 (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 /templates/ subdirectory.

Example: To override the email template of the coupon’s email,
copy: wp-content/plugins/woocommerce-smart-coupons/templates/email.php
to wp-content/themes/yourtheme/woocommerce/woocommerce-smart-coupons/email.php.

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.

Note: The above is considered a customization. We are happy to provide guidance, but we are unable to provide support or help to suit your store. Only use it if you are comfortable with PHP and custom coding, and troubleshooting on your own.


The most customizable eCommerce platform for building your online business.

  • 30 day money back guarantee
  • Support teams across the world
  • Safe & Secure online payment