This is where automation becomes your best friend. Instead of manually checking orders, you can use WooCommerce email marketing automation to trigger actions automatically whenever specific events happen in your store. This article will guide you through creating an automatic email notification that triggers only after an order with your chosen coupon is completed, sending a personalized message to any email address you specify. Best of all? No coding required!
Coupon used email automation in WooCommerce is a system that automatically triggers an email notification whenever a specific coupon code is successfully applied to a completed order. Think of it as your e-commerce store’s personal assistant, constantly monitoring coupon usage. When the conditions are met – a customer uses your special code and finishes their purchase – it instantly dispatches a pre-configured email.
Practical Application and Business Benefit: This automation is incredibly powerful for businesses working with affiliates, partners, or even for internal tracking. For instance, if you have a partner who earns a commission every time their unique code is used, this automation ensures they (or your accounting team) get an immediate, accurate notification. It removes manual effort, reduces errors, and strengthens partner relationships by providing transparent, real-time updates. It’s about turning a simple coupon usage into an actionable business event, without you lifting a finger.
WooCommerce is fantastic for managing your online store, and it comes with a set of default notifications. However, if you want more control over how and when emails are sent, you may need a solution for creating custom WooCommerce emails and automation workflows. You might think, “Can’t I just use one of those?” Unfortunately, when it comes to tracking specific coupon usage for external parties, these default emails just don’t cut it. Here’s why:
This is precisely the kind of challenge that advanced marketing automation tools are built to solve. You need a system that’s flexible enough to listen for specific events, apply conditions, and then trigger custom actions.
To overcome the limitations of default WooCommerce emails and implement robust, event-based automation, you need a powerful tool like ShopMagic PRO. ShopMagic is a marketing automation plugin designed specifically for WooCommerce, allowing you to create highly targeted and personalized customer experiences. It’s like having a skilled marketing assistant working 24/7, without the need for any coding.
ShopMagic operates on an event-based system. This means it listens for specific actions or “events” happening in your store, such as a new order, a product review, or in our case, a coupon being used. Once an event occurs, ShopMagic can then trigger a series of actions, like sending an email, adding a customer to a mailing list, or creating a follow-up task.
For our specific scenario of tracking coupon usage, the key component is the Customer Coupons add-on, which is included with ShopMagic PRO. This add-on extends ShopMagic’s capabilities with powerful coupon-related events, including the crucial “Coupon Used” event. This event is precisely what we need to trigger an email when a specific coupon is applied to a completed order.
Ready to streamline your partner notifications and unlock powerful coupon tracking? The ShopMagic PRO with the Customer Coupons add-on is your all-in-one solution. It’s designed to make complex automations simple, saving you time and ensuring accuracy.
Let’s dive into the step-by-step process of configuring your automation. We’ll ensure it runs only when a specific coupon is used and sends an email to your chosen external recipient. Follow along, and you’ll have this powerful automation running in no time!
If you’re new to discount campaigns, it may help to understand how coupon strategies work in WooCommerce.
Before we build the automation, you need to have the specific coupon code created in your WooCommerce store. This is the code your partner or affiliate will be sharing.
This standard WooCommerce coupon will be the trigger for our ShopMagic automation. Remember, the key here is to have a distinct coupon code that identifies your partner’s customers.
If you haven’t already, you’ll need to install ShopMagic PRO and activate the Customer Coupons add-on. This is straightforward:
With these activated, you now have access to the powerful “Coupon Used” event and other coupon-related features that ShopMagic offers.
Now for the core of our solution: building the automation that sends the email. This is where ShopMagic truly shines, allowing you to connect events with actions effortlessly.
Go to ShopMagic → Automations in your WordPress admin.
Click Add New Automation.
Give your automation a clear, descriptive title, such as “Notify Partner X on PARTNER20 Coupon Use.” This helps you keep track of your automations as your store grows.
Choose the Event: “Order Coupon Used”
This is the most crucial step for our specific scenario. From the “Event” dropdown, select Order Coupon Used. This event is part of the Customer Coupons add-on and is specifically designed to trigger when a coupon is successfully applied to an order that reaches a ‘completed’ status. This ensures that you’re only notified for actual, paid sales, which is vital for commission tracking.
Add a Filter: Target Your Specific Coupon
Since we only want the email to send when a *specific* coupon (e.g., PARTNER20) is used, we need to add a filter. This step is key to making your automation precise.
This filter ensures your automation will *only* fire if the order uses the specified coupon, preventing unnecessary notifications for other coupon usages.
Define the Action: “Send Email”
Now, let’s tell ShopMagic what to do when the event and filter conditions are met: send an email.
Pro-Tip: Crafting Your Email Content
Make sure your email is clear, concise, and provides all the information your partner needs for commission tracking. A good structure might be:
This direct approach ensures your partner gets exactly what they need at a glance.
Publish Your Automation
Once you’ve configured the event, filters, and action, click the Publish button on the right sidebar. Your automation is now live and ready to send emails automatically!
It’s always a good practice to test any new automation to ensure it works as expected. Here’s how:
If you don’t receive the email, double-check your ShopMagic automation settings, especially the coupon code in the filter and the recipient email address. You can also review ShopMagic’s logs (ShopMagic → Queue → History) to see if the automation fired.
While notifying partners is a fantastic use case, the “Coupon Used” event with ShopMagic PRO opens up a world of other possibilities for your WooCommerce store. Once you understand the core mechanics, you can adapt this powerful automation to various business needs:
The beauty of ShopMagic is its flexibility. By combining events like “Coupon Used” with various filters and actions, you can build a truly responsive and efficient e-commerce operation. It’s all about making your store smarter, not just busier.
You’ve seen how ShopMagic tackles a specific business problem with ease, but its value extends far beyond a single use case. When you choose ShopMagic PRO, you’re investing in a comprehensive automation platform designed to grow with your WooCommerce store.
By leveraging ShopMagic PRO, you’re not just automating tasks; you’re empowering your e-commerce business to operate more efficiently and intelligently. It’s the smart choice for any WooCommerce store looking to maximize its potential without getting bogged down in technical complexities.
Ready to unlock the full potential of coupon-based automations and transform how you manage your WooCommerce store? With ShopMagic PRO and the Customer Coupons add-on, you can set up intelligent, event-driven emails that save you time, improve accuracy, and strengthen your business relationships. Stop manual tracking and start automating today!
Unlock Coupon-Based Automations in ShopMagic PRO
To send an email when a coupon is used in WooCommerce, you’ll need ShopMagic PRO with the Customer Coupons add-on. Create an automation, select the “Coupon Used” event, add a filter for your specific coupon code, and then configure the “Send Email” action to your desired recipient. This bypasses WooCommerce’s default limitations.
Yes, absolutely! With ShopMagic PRO and the Customer Coupons add-on, you can create an automation using the “Coupon Used” event. Add a filter for your affiliate’s unique coupon code and set the “Send Email” action to notify your affiliate directly, providing real-time commission tracking.
The “Coupon Used” event in ShopMagic is specifically designed to trigger only when an order has been successfully placed and reaches a ‘completed’ status with the specified coupon applied. It does not trigger merely when a coupon code is entered in the cart or at checkout without the order being finalized.
No, coding is not required if you use a solution like ShopMagic PRO. ShopMagic provides an intuitive, no-code interface where you can configure events, filters, and actions with simple clicks, making advanced automations accessible to all WooCommerce store owners.
What if you could automate this entire process? This guide will show you exactly how to set up an automation so that every time a new product is published in WooCommerce, an email is automatically sent to your subscribers. No manual work, no external integrations, and absolutely no coding required. We’ll use ShopMagic, your go-to marketing automation plugin for WooCommerce, to make your life easier and your sales higher.
Sending an email when a new product is added automatically in WooCommerce refers to setting up a system where, the moment you publish a new product in your online store, an automated email notification is dispatched to your chosen audience. This could be your entire subscriber list, or a specific segment of customers interested in that product category. The practical application is immense: for instance, a digital course seller can ensure every new course automatically lands in their subscribers’ inboxes, driving immediate interest and sales. This automation saves precious time, ensures consistent communication, and keeps your audience engaged with your latest offerings, directly impacting your business’s bottom line.
For a solo store owner like Ewa, every minute counts. Manually announcing new products can feel like another item on an endless to-do list. It’s not just about drafting an email; it’s about remembering to do it, segmenting your audience, and ensuring it goes out on time. This is where automation truly shines.
By automating this process with ShopMagic, you transform a tedious task into a powerful, always-on marketing engine. You ensure your customers are always in the loop, without lifting a finger after the initial setup. This means more eyes on your new products, faster sales, and a stronger connection with your audience. It’s about working smarter, not harder.
Ready to reclaim your time and boost your product visibility? Let’s dive into how ShopMagic makes this effortless. You’ll be amazed at how quickly you can create your first product-triggered automation.
ShopMagic is designed specifically for WooCommerce, making it the perfect tool to handle all your event-based email automation needs. It integrates seamlessly with your store, understanding every action your customers take and every change you make to your products. This means you can create highly targeted and timely communications that genuinely resonate with your audience.
At its core, ShopMagic works on a simple principle: an Event triggers an Action, optionally refined by Filters. For our goal of notifying customers about new products, we’ll leverage a powerful new feature: the ‘Product Added’ event combined with the ‘Product – Status’ filter. This combination allows you to precisely control *when* and *for which products* your automation runs.
Think of it as having a dedicated marketing assistant who constantly monitors your store. The moment you click ‘Publish’ on a new product, this assistant springs into action, sending out a beautifully crafted email to your subscribers, inviting them to check out your latest offering.
This isn’t just about sending emails; it’s about building a robust event-based email automation in WooCommerce that works tirelessly for your business, ensuring every new product gets the attention it deserves.
Now, let’s get down to business. We’ll walk you through configuring ShopMagic to automatically send an email whenever a new product is added to your WooCommerce store. Follow these steps, and you’ll have your automation running in no time.
First things first, you need ShopMagic installed on your WordPress site. If you haven’t already, you can get the plugin from the WordPress plugin directory. Install it just like any other plugin, then activate it. Once activated, you’ll see the ShopMagic menu item in your WordPress dashboard.
This is where your automation journey begins. Navigate to ShopMagic → Automations in your WordPress dashboard. Here, you’ll see a list of your existing automations (or an empty canvas if this is your first time). Click the “Add new” button to start building your new workflow.
You’ll then be presented with the automation editor, where you’ll define the event, filters, and action. Give your automation a clear, descriptive name at the top, something like “New Product Announcement.”
The Event is the trigger – what happens in your store that kicks off this automation. For our purpose, we want the automation to run when a new product is created.
In the ‘Event’ dropdown menu, select “Product Published”.
While the “Product Added” event triggers when a product is *created*, you probably only want to send an email when it’s actually *published* and visible to customers. This is where Filters come in. Filters allow you to add conditions to your automation, ensuring it only runs when specific criteria are met.
This filter ensures that your automation will *only* run if the product’s status is ‘published’. So, if you create a product as a draft and then publish it later, the email will only be sent when it moves to ‘published’ status, not when it’s first saved as a draft. This is how you achieve precise event-based email automation in WooCommerce.
Pro-Tip: Filters are incredibly powerful! You could add other filters here, for example, to only send emails for products in a specific category (e.g., ‘Courses’ for a digital store) or with a certain tag. This allows for highly targeted new product announcements.
Now that you’ve told ShopMagic *when* to run the automation, you need to tell it *what* to do. In our case, the action is to send an email.
{{ customer.email }} if your newsletter signups are tied to WooCommerce accounts, or if you’re using an integration with a list (e.g., Mailchimp). For a general announcement to all customers who have purchased before, you might select a specific customer list. ShopMagic also allows you to send to predefined marketing lists.
New Product Alert: {{ product.title }} is Here!” The {{ product.title }} is a placeholder that will automatically be replaced with your new product’s name.
For a detailed walkthrough of all email form fields, refer to our guide on setting up automation for beginners.
The content of your email is key to driving clicks and sales. Here are some tips for crafting an effective new product announcement:
{{ customer.first_name }} to make the email feel personal.Once you’ve configured your event, filters, and action, it’s time to bring your automation to life! Look for the “Publish” button in the top-right corner of the WordPress dashboard, just like publishing a post or page.
After clicking “Publish,” your automation is active. From now on, every time you add and publish a new product in WooCommerce, ShopMagic will automatically send out your perfectly crafted announcement email to your chosen audience. No more manual work, just seamless marketing!
You need solutions that are powerful, easy to use, and reliable, without requiring a steep learning curve or custom code. ShopMagic delivers on all these fronts, making it the ideal marketing automation plugin for WooCommerce:
In essence, ShopMagic isn’t just a plugin; it’s your strategic partner in growing your WooCommerce business. It ensures that your response to the question, “How to send an email when a new product is added in WooCommerce automatically?” is always: “The best way to do it is with ShopMagic.”
Create Your First Product-Triggered Automation
You can automatically email subscribers in WordPress/WooCommerce using ShopMagic. Set up an automation with the ‘Product Added’ event and a ‘Product – Status’ filter set to ‘publish’. Then, configure a ‘Send Email’ action to your desired audience, using product placeholders for dynamic content.
Yes, absolutely! ShopMagic’s powerful filters allow you to specify conditions. You can add filters like ‘Product – Category’ or ‘Product – Tag’ to ensure emails are only sent for products matching certain criteria, offering highly targeted communication.
Yes, ShopMagic allows for audience segmentation. In the ‘Send Email’ action, you can specify recipients based on various criteria, such as customer roles, previous purchases, or membership lists, ensuring only relevant groups receive the new product announcement.
A compelling new product email should include a catchy subject line, a personalized greeting, an engaging image of the product, a brief description highlighting its benefits, and a clear call-to-action link directly to the product page. Use ShopMagic’s placeholders for dynamic content.
ShopMagic offers various integrations, including add-ons for popular services like Mailchimp. This allows you to sync customer data and send emails through your preferred email marketing platform, extending your automation capabilities.
WooCommerce subscription emails are the automated notifications triggered by events in a subscription lifecycle, such as new subscriptions, renewals, or cancellations. At their core, these emails serve a crucial administrative purpose, ensuring customers are informed about their recurring purchases. However, their default transactional nature often falls short of engaging customers effectively, fostering loyalty, or driving strategic business growth. To truly thrive, your subscription business needs to move beyond these basic notifications and embrace a more intelligent, personalized, and proactive communication strategy that transforms simple updates into powerful retention and sales tools.
Running a successful subscription business on WooCommerce means nurturing customer relationships. Yet, many store owners inadvertently leave money on the table by underestimating the power of their email communications. The standard emails provided by WooCommerce Subscriptions, while functional, offer a bare minimum that often translates into missed opportunities and higher churn rates.
Out of the box, WooCommerce Subscriptions provides a set of essential emails designed to keep both you and your customers informed about critical subscription events. These include notifications for new renewal orders, processing and completed renewals, on-hold renewals, customer renewal invoices, and administrator alerts for cancelled, expired, or suspended subscriptions. These are the workhorses of your subscription communication, ensuring basic operational transparency.
However, the simplicity of these notifications is also their biggest limitation. They are primarily transactional, focusing on ‘what happened’ rather than ‘what’s next’ or ‘how can we help.’ They lack the personalization, strategic timing, and dynamic content needed to truly engage subscribers, anticipate their needs, and prevent churn before it happens. This narrow focus means you’re missing out on vital touchpoints that could transform a one-time subscriber into a loyal, long-term customer.

The default email settings for Flexible Subscriptions in WooCommerce, showing basic transactional notifications.
The journey of a subscriber is dynamic, filled with potential questions, evolving needs, and critical decision points. Default WooCommerce subscription emails, by their very nature, cannot adapt to this complexity:
This gap isn’t just about sending more emails; it’s about sending the *right* emails at the *right* time, with the *right* message. Without this strategic approach, your subscription business is vulnerable to higher churn rates and stagnant growth, transforming what should be a recurring revenue stream into a leaky bucket.
Envision a world where your WooCommerce store automatically anticipates customer needs, proactively solves potential problems, and effortlessly drives more sales. This isn’t science fiction; it’s the reality of smart automation. By moving beyond basic transactional emails, you can transform your subscription journey into a seamless, highly personalized experience that keeps customers engaged and loyal.
Smart automation elevates your communication strategy from reactive to proactive, turning every touchpoint into a powerful tool for retention and growth. It allows you to:
While various marketing automation platforms exist, the true power for a WooCommerce subscription business lies in deep, native integration. Generic automation tools might offer broad capabilities, but they often struggle with the nuanced intricacies of subscription management – the specific events, statuses, and data points unique to recurring billing. This is where a specialized solution like ShopMagic truly shines.
ShopMagic is designed from the ground up to integrate seamlessly with WooCommerce, especially when paired with powerful subscription plugins like Flexible Subscriptions. This tight integration means you get access to a rich array of subscription-specific events, filters, actions, and placeholders that generic tools simply can’t match. It allows you to create automations that react precisely to every twist and turn of a subscription’s lifecycle, ensuring no opportunity for engagement or retention is missed. To see the full scope of these capabilities, explore how to use ShopMagic with Flexible Subscriptions.
Imagine having a dedicated marketing assistant for every single subscriber, proactively managing their journey, anticipating their needs, and ensuring their loyalty. That’s the strategic advantage ShopMagic for Flexible Subscriptions offers. It’s not just about sending emails; it’s about orchestrating intelligent workflows that transform your subscription business.
ShopMagic extends your WooCommerce capabilities by providing a comprehensive suite of subscription-specific events, allowing you to trigger automations at the most crucial moments. These go far beyond basic notifications, enabling truly dynamic and personalized communication:
Moreover, ShopMagic’s robust filtering capabilities allow you to segment your audience with precision. You can create automations that only trigger for specific ‘Subscription – Billing Period’ (e.g., monthly subscribers), based on the ‘Subscription – Payment Gateway’ used, or even ‘Subscription – Item Categories’ they’ve purchased. This ensures every message is highly relevant and effective.
ShopMagic empowers you not just to communicate, but to act. Beyond sending emails, you can automate critical administrative tasks related to subscriptions, saving you time and reducing manual errors:
These actions, combined with intelligent events and filters, create dynamic workflows that respond to customer behavior and business rules without requiring constant oversight. This is true automation, freeing you to focus on strategic growth.
Let’s explore how ShopMagic with Flexible Subscriptions can elevate common challenges into powerful growth opportunities:
One of the biggest pain points for subscription businesses is churn, often caused by unexpected renewals or forgotten credit card updates. With ShopMagic, you can implement a sophisticated sequence of WooCommerce renewal reminder emails:
This proactive approach significantly reduces failed payments and gives customers ample time to react, boosting retention rates.
Converting trial users into paying subscribers is a critical growth lever. ShopMagic allows you to craft engaging trial-specific workflows:
This structured nurturing process maximizes conversion from trial to paid subscriber.
Failed payments are an inevitable part of recurring billing, but how you handle them can make all the difference. ShopMagic enables a compassionate and effective recovery strategy:
This automated dunning management reduces manual effort and increases the likelihood of payment recovery, keeping your revenue stream healthy. For more detailed insights into managing payment retries, you might find the Flexible Subscriptions – Payment Retry documentation helpful.
Enables automations for subscription events like status changes, renewals, cancellations.
Add to cart or View DetailsChoosing ShopMagic for Flexible Subscriptions means investing in a solution that’s built for growth and backed by expertise. At WP Desk, we don’t just create plugins; we craft integrated ecosystems designed to scale your WooCommerce business with ease. Our commitment to full compatibility ensures that ShopMagic works flawlessly with Flexible Subscriptions, providing a stable and powerful foundation for your recurring revenue model.
We understand that real business impact comes from more than just features – it’s about the tangible benefits: increased conversions, reduced churn, and more time saved through automation. Our solutions are built with performance and security in mind, giving you peace of mind as your business scales from hundreds to tens of thousands of orders. With comprehensive documentation and dedicated support, you’re never alone on your journey to automation mastery.
Ready to elevate your WooCommerce subscriptions? Discover ShopMagic for Flexible Subscriptions today and transform your customer retention strategy. Get ShopMagic PRO now!
Automate WooCommerce subscription emails by using a dedicated marketing automation plugin like ShopMagic. It integrates with your WooCommerce Subscriptions to trigger personalized emails based on events like renewals, trial ends, or status changes, using custom content and conditions.
To send effective WooCommerce renewal reminder emails, configure an automation in ShopMagic. Set an event like ‘Subscription Before Renewal’ (e.g., 7 days before) and create an email action. Personalize the message with placeholders and include a clear call to action for payment method updates.
Set up trial expiration emails by creating a ShopMagic automation with the ‘Subscription Trial End’ event. Specify how many days before expiration the email should send. Craft your email to highlight benefits, offer support, and provide a direct link for customers to convert to a paid subscription.
Without a dedicated plugin, personalizing WooCommerce subscription emails is highly limited. Default emails offer minimal customization. Advanced personalization, dynamic content, and event-triggered sequences require a robust automation solution like ShopMagic to truly tailor messages to individual customer journeys.
ShopMagic offers key benefits like deep integration with WooCommerce Subscriptions, a wide range of subscription-specific events, actions (e.g., change status/date), and filters for precise targeting. This enables highly personalized communication, proactive churn reduction, and strategic upsell/cross-sell opportunities.
ShopMagic helps handle failed subscription payments by allowing you to create automated email sequences triggered by status changes (e.g., ‘on-hold’ due to failed payment). You can send immediate, personalized reminders with links to update payment methods, improving recovery rates and reducing manual intervention.
Yes, ShopMagic is fully compatible and designed to work seamlessly with Flexible Subscriptions. It extends Flexible Subscriptions with advanced automation capabilities, offering a comprehensive solution for managing and marketing your subscription products effectively within WooCommerce.
In this case study, we’ll show you how we solved a client’s problem of displaying a readable delivery date in ShopMagic emails. You’ll learn why standard methods didn’t work and how to implement an effective workaround step-by-step, so your store works exactly as you expect.
One of our clients reported the following problem:
“I have an order meta field that stores the date as a timestamp. I want the date in emails sent via ShopMagic automation to be in a readable format (e.g., 08.12.2025 14:00). Unfortunately, using {{ order.meta | key: ‘delivery_timestamp’ }} in the email content only returns the raw timestamp.”
The client wanted the timestamp in the automation to be automatically converted into a nice, readable date.
We initially approached the topic in a standard way — using a PHP filter to intercept the value and convert the timestamp to a date format.
shopmagic/core/placeholder/meta_value filteradd_filter( 'shopmagic/core/placeholder/meta_value', function ( $value, $meta_key ) {
if ( $meta_key === 'delivery_timestamp' && is_numeric( $value ) ) {
return date( 'd.m.Y H:i', intval( $value ) );
}
return $value;
}, 10, 2 );
Result: no change. ShopMagic still displayed the raw timestamp.
shopmagic/magic_tags/order.meta filteradd_filter( 'shopmagic/magic_tags/order.meta', function ( $value, $args ) {
if ( isset( $args['key'] ) && $args['key'] === 'delivery_timestamp' ) {
if ( is_numeric( $value ) ) {
return date( 'd.m.Y H:i', intval( $value ) );
}
}
return $value;
}, 10, 2 );
Result: again, no effect. The value was still reaching the email in its original form.
After a series of trials and tests, it turned out that the plugin treats {{ order.meta | key: '...' }} as a direct, non-extendable read from the database.
The value is loaded earlier than any PHP hook can modify it. Attempts to modify it in the before_run or magic_tags_resolved hooks also did not work.
In practice, this meant that modifying an existing meta field on the fly is not possible in ShopMagic.
Since we couldn’t change the value of an existing field before sending, we opted for a simple but effective workaround:
delivery_timestamp_raw).delivery_date_pretty) with the already formatted date.add_action( 'woocommerce_checkout_update_order_meta', function( $order_id ) {
$order = wc_get_order( $order_id );
// Raw timestamp (example: 2 days later at 2:00 PM)
$timestamp = strtotime( '+2 days 14:00' );
$order->update_meta_data( 'delivery_timestamp_raw', $timestamp );
// Nice, formatted date
$formatted = date( 'd.m.Y H:i', $timestamp );
$order->update_meta_data( 'delivery_date_pretty', $formatted );
$order->save();
});
In the ShopMagic email content:
Delivery date: {{ order.meta | key: 'delivery_date_pretty' }}
Effect in the client’s inbox:
Delivery date: 08.12.2025 14:00
_raw), the other for display (_pretty).wp_date()) to avoid timezone issues.This case showed that even if a WooCommerce plugin — in this case, ShopMagic — doesn’t provide a native way to modify data before sending, you can find a simple workaround.
The key was to understand at what stage the data is loaded and to prepare it in the right form before the sending moment.
Benefits of this solution:
If you want your WooCommerce to work exactly as you need, and automations to be fully tailored to your business — try ShopMagic and take advantage of our technical support, which can help you implement even custom scenarios.
]]>In this article, we’ll show you how to create such automation using the ShopMagic PRO plugin: ShopMagic sends the first message one hour after the customer abandons the cart, and the next one, for example, after 2 days — but only if the customer has not yet completed the order. We’ll present everything based on a real case from our support experience with a WooCommerce store owner.
A WooCommerce store owner set up automation that sends an email one hour after a cart is abandoned. However, they needed the next step: a second email sent 2 days later, but only if the customer has not placed an order after receiving the first email.
During configuration, several questions arose:
As it turned out, solving the issue was simpler than expected — using one automation with two actions solved the problem efficiently.
To implement this successfully, follow the steps below.
One of the key features of ShopMagic PRO is the Abandoned Cart event — a trigger that fires when a customer adds products to the cart but does not complete the order within a set time.
You should also set the Pause period for customer field to 0 so that the automation is not blocked by this parameter and can run even for multiple abandoned carts from the same user.
To begin with, within the same automation, add the first email action with a 1-hour delay. Additionally, this message should be simple and not include a discount.
Key settings:
This is a typical reminder, and it works best within 60 minutes after cart abandonment.
Then, add a second “Send Email” action within the same automation, this time with a 2-day delay.
Important: ShopMagic automatically checks whether the “abandoned cart” condition still applies. If the customer returned and placed an order after receiving the first email — the automation will not send the second email.
Settings for the second message:
Thanks to ShopMagic’s logic, the second message will only be sent if the cart remains abandoned.
In fact, there’s no need to manually add filters when using ShopMagic PRO — the plugin handles everything under the hood. All you need is to:
Properly configure the Abandoned Cart event
Use multiple actions with different delays
Make sure the pause period is set to 0
Definitely not. The best solution is to use one automation with multiple email actions. This allows you to control their order, delay times, and keep them linked to the same trigger (abandoned cart).
No. When the customer recovers the cart and completes the purchase after the first email, ShopMagic will not send any further emails — even if they were scheduled.
ShopMagic PRO is a powerful marketing automation tool for WooCommerce. In this case, it solved a problem that many store owners might consider advanced:
Automation with multiple messages
Different message delays
Verification if the customer placed an order
No spam — only relevant, timely emails
All done without coding or manually setting up filters
ShopMagic PRO helps you boost conversions, build stronger customer relationships, and ensure consistent, high-quality communication — all on autopilot.
Still have questions or need support? Need help configuring the plugin? Contact us — we’ll be happy to assist!
In this article, we’ll show you how one ShopMagic user encountered an error when trying to save an automation, what caused the issue, and how it was successfully resolved. It’s not only a practical example but also a valuable lesson for anyone looking to unlock the full potential of ShopMagic.
A user of our ShopMagic PRO plugin contacted us because they were encountering the following errors when trying to save an automation with a custom HTML email template:
Fatal error while saving automation, Failed to set data for key _actionHTTP Error, Failed to set data for key _actionInterestingly, the error only occurred when using the “Send Email” or “Raw HTML” options. When switching to “Plain Text,” the automation saved without any issues. The user had already enabled debugging and increased PHP limits, but the debug.log file showed no trace of the error.
After running some tests, the user identified the root cause – the email message they were trying to save contained emojis. Their database was set up with UTF8MB3 encoding, which does not support four-byte characters like emojis. As a result, the plugin could not store the data in the database, and the operation failed.
The fix was simple yet effective – the user changed the column encoding in the database to UTF8MB4, and the automation saved without any errors.
This allowed the user to continue using ShopMagic PRO with fully customized messages, emojis, and advanced HTML formatting.
If you ever run into a similar error when saving automations in ShopMagic PRO, here’s what you should check:
wp_postmeta table where ShopMagic stores data.utf8mb4_unicode_ci (or at least utf8mb4_general_ci) collation.If your database still uses utf8 or utf8mb3, consider upgrading to utf8mb4 to ensure full compatibility with four-byte characters.
You can find more about debugging in ShopMagic’s documentation.
ShopMagic is much more than just an email automation plugin. It offers a wide range of features that help WooCommerce store owners grow their sales and build lasting customer relationships:
All of this makes ShopMagic a flexible tool for process automation in WooCommerce – suitable for both beginners and advanced users.
Technical issues like “Failed to set data for key _action” can often have non-obvious causes – such as incompatible database encoding. In this real case, a ShopMagic user solved the problem by switching the column encoding to utf8mb4, which enabled saving messages with emojis.
Here’s what we can learn from this:
Want to create high-converting email campaigns in WooCommerce? Try ShopMagic PRO today. And if you need help – our support team is here for you!