How to Customize WooCommerce Order Emails Based on Product Attributes

In a recent Business Bloomer Club Slack thread, a WooCommerce user wanted to customize order confirmation emails to display specific text based on whether an order was for pickup or delivery.

These options were set as product attributes, and the customization needed to change the “Thanks for shopping with us” message that appears after the Billing and Shipping details.

Here’s how to achieve this using WooCommerce filters to dynamically tailor the message in completed order emails.

Continue reading How to Customize WooCommerce Order Emails Based on Product Attributes

Adjusting WooCommerce Order Emails to Reflect Updated Order Data

In a recent Business Bloomer Club Slack thread, a developer working with the woocommerce_payment_complete hook encountered an issue where the “Processing order” email was sent with outdated order data.

While the order edits were correctly saved before external processing, WooCommerce sent the email using pre-edited data.

Here’s how to ensure that customers receive emails with accurate order details by customizing email triggers.

Continue reading Adjusting WooCommerce Order Emails to Reflect Updated Order Data

WooCommerce: Notify Admin For Product Reviews But Not For WordPress Comments

WooCommerce product reviews are, actually, WordPress comments.

When you install WordPress, comment notifications for admins are turned on. You can choose to receive emails for all new comments, or only for comments that require moderation (haven’t been approved yet).

The problem is that if your site gets a lot of spam comments, you might be bombarded with emails. Even with legitimate comments, constant notifications can be overwhelming.

So what if we disable WordPress comment notifications all together, while we keep them enabled for WooCommerce product reviews only?

This is what we’ll code today – enjoy!

Continue reading WooCommerce: Notify Admin For Product Reviews But Not For WordPress Comments

WooCommerce: Add Content To “New Account” Welcome Email

First impressions matter, especially in ecommerce. When a customer creates an account on your WooCommerce store, the “Your {site_title} account has been created!” welcome email is your golden opportunity to solidify a positive connection.

However, the standard WooCommerce email might fall short:

Hi Rodolfo,

Thanks for creating an account on {site_title}. Your username is ____. You can access your account area to view orders, change your password, and more at: ___

Click here to set your new password.

This tutorial teaches you how to display additional content in the “welcome” email. You can then personalize greetings, showcase your brand story, and strategically introduce features like exclusive offers or product recommendations. By tailoring these emails, you’ll not only provide valuable information but also nurture customer loyalty and encourage them to explore your offerings further.

Enjoy!

Continue reading WooCommerce: Add Content To “New Account” Welcome Email

WooCommerce: Send Default Order Email For Custom Status Transition

WooCommerce offers flexibility with custom order statuses, but email notifications can be limited. By default, in fact, WooCommerce triggers the “completed”, “processing”, “on-hold” and all the other default emails when the order status changes from X to Y as defined in the plugin code.

But what if you want to trigger the “Order Completed” email if the order status transitions from your custom order status to the “completed” one? Or what if you want to trigger the “Order On-hold” email beyond its default triggers?

This post unlocks a powerful technique: triggering a default order email for a custom order transition. Let’s see how it’s done!

Continue reading WooCommerce: Send Default Order Email For Custom Status Transition

WooCommerce: Send Cancelled Order Email to Customers As Well

As per the WooCommerce settings, “Cancelled order emails are sent to chosen recipient(s) when orders have been marked cancelled (if they were previously processing or on-hold)“.

What’s not 100% clear, however, is that this email notification goes out to admins only (and additional email addresses, if entered in the email settings). Which means, the customer receives no cancelled order notification. So, let’s change this, and let’s add the customer email address to the list of people that receives this WooCommerce email.

Continue reading WooCommerce: Send Cancelled Order Email to Customers As Well

WooCommerce: Send Pending Order Email Automatically

The “Customer invoice / Order details” WooCommerce email notification is often used for manually sending payment requests to customers – it’s not automatically triggered like other WooCommerce emails. You can access it from the individual order screen under the “Order Actions” section.

In certain cases, however, you’d want to make it automatic. And I don’t know why it’s not like that by default. So, let’s fix it: if you create a manual order from the backend, set it as pending, add some products to it and “Save”, the email notification will trigger on its own thanks to the snippet below. Enjoy!

Continue reading WooCommerce: Send Pending Order Email Automatically

WooCommerce: “New Order” Email Recipient Based on Billing Country

The amazing thing about WooCommerce is that you can override any setting with a few lines of code. In today’s example we will try to code a solution where the “New Order” WooCommerce email will be delivered to a custom recipient based on the billing country.

This could be helpful when the WooCommerce store is managed by multiple people, and you want to make sure that order notifications only go to the right manager. Enjoy!

Continue reading WooCommerce: “New Order” Email Recipient Based on Billing Country

WooCommerce: How to Level Up Your Email Marketing

In today’s competitive ecommerce landscape, email marketing plays a crucial role in connecting with customers and driving business growth.

With WooCommerce, you already have a powerful platform at your disposal to send and manage transactional emails effectively. However, when you need to send targeted marketing emails, additional plugins may be necessary. 

In this article, we’ll guide you through the process of optimizing your email marketing strategy using WooCommerce.

Whether you’re a seasoned email marketer or just getting started, we’ll explore actionable tips and practical techniques to help you level up your communication game.

So, let’s jump right in!

Continue reading WooCommerce: How to Level Up Your Email Marketing

WooCommerce: Bulk Re-Send All Customer’s Completed Order Emails

This is quite an uncommon WooCommerce requirement, but especially for downloadable products the Completed Order email is such as important one – and customers may end up asking you to resend them all their past order emails.

This is an interesting snippet, as it features important functionalities: getting orders by billing email, looping through the results and re-triggering the Completed Order email whenever a specific admin URL parameter is posted. Enjoy!

Continue reading WooCommerce: Bulk Re-Send All Customer’s Completed Order Emails

WooCommerce: Display Product Grid @ Order Emails e.g. Related Products

Bad news first – we’ve seen how to add content to any WooCommerce order email, however I did not specify that if you use the [products] shortcode that’s not going to work unfortunately. The reason behind this, in plain English, is that… it just doesn’t work, and it outputs a weird list of “Sale!” list items (see screenshot below)!

So, I want to fix this, and find a WooCommerce email-compatible way to show a grid of products based on a list of product IDs (for example, the list of related products based on the ordered items), and make sure I can actually see product images, titles, prices and a link. Enjoy!

Continue reading WooCommerce: Display Product Grid @ Order Emails e.g. Related Products

WooCommerce: Translate / Rename Content @ Order Emails

WooCommerce order emails customization is possibly the most wanted feature for WooCommerce store owners and developers right now. It is very difficult to edit the default templates and it’s no surprise there are many email customizer plugins out there.

We’ve already seen how to add content to specific WooCommerce emails, how to add custom email CSS, how to display product images, and more, but today I’d like to teach you a quick workaround to edit the default email text strings such as the initial greeting (‘Hi Mary,‘) or other sentences (‘We have finished processing your order.‘, ‘The following note has been added to your order:‘, ‘Just to let you know — we’ve received your order, and it is now being processed:‘, etc.).

With “edit”, of course, I mean either change the text, or completely hide it. So, let’s see how it’s done. Enjoy!

Continue reading WooCommerce: Translate / Rename Content @ Order Emails