I’m looking for a way to send all WordPress emails using a custom WooCommerce template so all emails will look the same.
The path to the template would be:
woocommerce/emails/my-custom-woocommerce-template.php
I’m looking for a way to send all WordPress emails using a custom WooCommerce template so all emails will look the same.
The path to the template would be:
woocommerce/emails/my-custom-woocommerce-template.php
4
Answers
Does it have to all be templatized in a single file? If not, a combination of these entry points can probably get you the standardization you’re looking for:
email-header.php
lets you customize the start of the email including the header image (if you need to do more than change its URL). It opens the layout tags for the rest of the email contentemail-footer.php
lets you customize the footer, and closes the layout tags started in the header.email-styles.php
or thewoocommerce_email_styles
filter let you customize the CSS (see some gotchas in my article here).You can use the below function. It is working
To view and update email settings, log into your website dashboard. In the left-hand menu, click on WooCommerce → Settings.
There, you’ll find several options tabs at the top. Click Emails to view the following templates
you can custom all as you want