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.

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.

  1. Apply change in file:
    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.
  2. Use another template file:
    Use your own email template in place of the default one provided by Smart Coupons.
  3. Create a template file and keep the file name as: email.php. Other file names will not work.
  4. Open your themes folder and create a new folder. Keep the folder’s name as: woocommerce-smart-coupons.
  5. Place file email.php inside woocommerce-smart-coupons.
  6. The file path of your email template should be: /wp-content/themes/your-child-theme-folder/woocommerce-smart-coupons/email.php.

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.

WooCommerce - the most customizable eCommerce platform for building your online business.

Back to the top