• Skip to primary navigation
  • Skip to main content
ShopMagic

ShopMagic

  • Pricing
  • Add-ons
  • Docs
  • Support
  • Blog
  • Ideas
  • My account
How to edit and change the WooCommerce email template (Raw HTML Emails)

Updated: May 17, 2023 / Blog, New Release Wednesday

How to edit and change the WooCommerce email template (Raw HTML Emails)

Maciej Swoboda

Do you want to create a custom email template in WooCommerce (or WordPress)? Then, check out ShopMagic 🎉 – a free plugin to customize and send emails. What’s more, you may use HTML code or variables in the new WooCommerce email templates.

The default WooCommerce emails give you little space for customization. Not to mention no email template in WordPress!

Today, I will show you how to use a free plugin to create, personalize, and send custom emails in WordPress and WooCommerce – including editing and changing the email template using variables and HTML. Let’s begin!

Table of contents

  • Default email templates in WooCommerce
  • Custom emails with ShopMagic
  • WooCommerce email template HTML code
  • WooCommerce email template: Plain Text Emails & variables
  • Summary & more about ShopMagic
💡 Before we start, you need to know that this article is about ShopMagic – an email marketing plugin for WordPress & WooCommerce. If you don’t use it already, feel free to download it free of charge below ⤵️

ShopMagic

We've got WooCommerceemail template html code, WordPress email templates, WooCommerce email templates, and much more. With ShopMagic you can also edit email templates in WooCommerce!

Download for free or Go to WordPress.org
WP Desk
10,000+ Active Installations
Last Updated: May 22, 2023
Works with WooCommerce 5.2.0 - 7.1.x

Default email templates in WooCommerce

First, you need to know that there is no place to edit an email template in WordPress. Of course, you can edit the CMS PHP files (if you know how to do it), but I do not recommend this approach.

WooCommerce gives you a little space for email template customization, but it’s limited to order statuses. And you need to know PHP as you will have to change the email template and place it in your theme to overwrite the default email templates.

WooCommerce automated email PHP template
Edit the WooCommerce email template

Custom emails with ShopMagic

It’s much better to use a dedicated plugin to create and customize emails. ShopMagic gives you a lot of options to build custom email templates for WooCommerce but also in a standalone WordPress!

Shopmagic Automations

You may create multiple automation with emails. Of course, you can add and edit new email templates easily!

Woocommerce Pretty Emails Layout Shopmagic
Customized emails in WordPress and WooCommerce

Let me show you know a few more things in detail.

WooCommerce email template HTML code

Some of our advanced users have the HTML templates that they want to send instead of using the default WooCommerce template. While you could choose not to use a template in the Send Email action, some of the HTML tags still got removed when the contents were sanitized by the WordPress editor.

➡️ That’s why we now included a new action: Send Email – Raw HTML which gives you the ability to enter a fully customized HTML to your email and send it without any alterations.

WooCommerce email template html code
ShopMagic: Raw HTML E-mail

Let’s take a look at one final example of the email template using raw HTML code.

Woocommerce Raw Html Email
Send personalized and beautiful emails in WordPress & WooCommerce

WooCommerce email template: Plain Text Emails

While I think this will be one of the most niche features of ShopMagic, we’ve also added a second new action. Send Email – Plain Text. It allows you to send true plain text emails to your customers or co-workers.

Woocommerce email template variables
ShopMagic: WooCommerce Custom Plain Text Emails

There are also variables (placeholders), for example:

WooCommerce Shop Coupon Placeholder@2x

New placeholder: order.admin_url

We’ve also added a new placeholder that links to the order edit page in the admin panel: {{ order.admin_url }}.

💡 You can find info about placeholders in the plugin documentation →

Shortcodes in email content

While we do not support WP shortcodes out-of-the-box in ShopMagic, you can add this filter to your functions.php in your theme to enable shortcodes in email content:

add_filter( 'shopmagic/core/action/sendmail/raw_message', 'do_shortcode' );

💡 Read how to add custom placeholders in ShopMagic →

Summary & more about ShopMagic

In this article, you’ve learned how to use a free plugin to create, personalize, and send custom emails in WordPress and WooCommerce. I have guided you through the process of editing and changing the custom email template in WordPress and WooCommerce, also using variables and raw HTML code.

ShopMagic

We've got WooCommerceemail template html code, WordPress email templates, WooCommerce email templates, and much more. With ShopMagic you can also edit email templates in WooCommerce!

Download for free or Go to WordPress.org
WP Desk
10,000+ Active Installations
Last Updated: May 22, 2023
Works with WooCommerce 5.2.0 - 7.1.x

If you have any questions, let us know.

Related to the WooCommerce email template

  • WooCommerce welcome email

    woocommerce welcome email
    Send welcome emails. Find out how to make a great first impression. Use ShopMagic!

  • WooCommerce manual email

    manual emails
    Send manual emails. How to send emails manually in WordPress and WooCommerce with the help of ShopMagic.

About Maciej Swoboda

Founder of WP Desk, in love with WordPress since 2006. He believes in the power of WP community, speaks at WordCamps around the world and helps people build better businesses with WooCommerce.

  • Terms & Conditions
  • Privacy Policy
  • Support Policy
  • Refund Policy

© 2023 A WP Desk WP Desk Automation