Smart Coupons provide a powerful, “all-in-one” solution for gift cards, store credits, discount coupons, and vouchers extending the core functionality of WooCommerce coupons.
This doc article explains how you can change, replace, and override the coupons’ email template using both no-code-based and code methods.
Before You Begin
↑ Back to top- Make sure the Smart Coupons plugin is installed and active
- It is recommended to use a child theme if you plan to override templates
- Avoid editing plugin files directly, as your changes will be lost during updates
To change the email layout, there are two methods to do so.
Method 1: Using Email Customizer Pro (No Code)
↑ Back to topIf you prefer a simpler approach without editing code, you can use Email Customizer Pro for WooCommerce.
This plugin lets you visually customize WooCommerce and Smart Coupons emails using a live preview editor.
Method 2: Override Templates via Theme
↑ Back to topWooCommerce allows you to override plugin templates by copying them into your theme.
Step 1: Locate the Template File
↑ Back to topThe Smart Coupons email templates can be found inside the plugin folder.
wp-content/plugins/woocommerce-smart-coupons/templates/
For example:
email.php- Other related email templates depending on the email type
Step 2: Copy the Template to your Theme
↑ Back to topCopy the required template file into your theme using the same folder structure:
wp-content/themes/your-theme/woocommerce-smart-coupons/
For example:
wp-content/themes/your-theme/woocommerce-smart-coupons/email.php
The copied file will now override the WooCommerce Smart Coupons default template file.
Step 3: Customize the Template
↑ Back to topYou can now safely edit the copied file. Changes made here will override the default plugin template.
You can modify:
- Email content
- Layout and structure
- Text and messaging
- HTML styling
You can follow this same method for these email templates of the Smart Coupons plugin:
combined-email.php– This email template is used when two or more coupons are sent via a single email. The setting is available under WooCommerce > Settings > Smart Coupons > Send coupon form > Combine emails.acknowledgement-email.php– This email template is used when an email is sent from the store to the purchaser of the coupons, acknowledging that the purchaser has sent some coupons to someone else.gift-card-email.php– This email template is used when the Gift Card / Gift Certificate has an image attached to it.expiry-reminder-email.php– This email template is used when you have enabled reminder emails for coupons that are about to be expired in X number of days.unused-coupon-reminder.php– This email template is used when coupons are unused for x number of days.
Important Notes
1. We recommend using a child theme if you are overriding templates. This ensures your changes are safe during theme updates. Read more here: Set up and use a child theme.
2. Do not edit files inside the plugin directory directly.
3. Always test email changes on a staging site before applying to production.
4. Template overrides may require updates if the plugin changes its structure in future versions.
5. Template overrides and code changes are considered customizations. While guidance can be provided, support cannot cover custom implementations specific to your store. Proceed only if you are comfortable with PHP, debugging, and maintaining custom code.