ShopMagic https://shopmagic.app/ Wed, 18 Mar 2026 14:15:24 +0000 en-US hourly 1 https://shopmagic.app/wp-content/uploads/2022/11/cropped-shopmagic-2-1-32x32.png ShopMagic https://shopmagic.app/ 32 32 How to Automatically Send an Email When a Specific Coupon Is Used in WooCommerce https://shopmagic.app/blog/send-email-when-coupon-is-used-woocommerce/ Wed, 18 Mar 2026 14:15:24 +0000 https://shopmagic.app/?p=24178 Imagine you’ve set up a special partnership, perhaps with an influencer or an affiliate. You’ve given them a unique coupon code, like PARTNER20, to share with their audience. Every time a customer uses that code and completes an order, you need to know about it. Why? So you can accurately track commissions, acknowledge their efforts, or simply keep a close eye on your marketing campaigns. However, WooCommerce, by default, doesn’t offer a straightforward way to send an email when a specific coupon is used in WooCommerce, especially not to an external recipient like your partner or affiliate manager.

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!

What is Coupon Used Email Automation in WooCommerce?

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.

Why WooCommerce’s Default Emails Fall Short for Specific Coupon Tracking

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:

  • Lack of Specificity: Default WooCommerce emails are generic. They tell you about an order, but they don’t have a built-in mechanism to check if a *particular* coupon was used. You’d have to manually inspect each order.
  • Limited Recipients: These emails are primarily designed for customers and store administrators. Sending a notification to an external partner or affiliate directly, based on a specific coupon, isn’t an out-of-the-box feature.
  • Timing Issues: While you can get a “new order” notification, it doesn’t confirm the order is actually *completed* and paid for. For commission tracking, you typically need to confirm the sale before notifying a partner.
  • No Customization: The default emails offer limited customization options. You can’t easily add specific details about the coupon or the partner’s name in a way that’s meaningful for commission tracking.

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.

Introducing ShopMagic PRO: Your Solution for Advanced WooCommerce Automation

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.

The Power of Event-Based Automations

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.

Setting Up Your Automated Coupon Notification in WooCommerce with ShopMagic

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!

Step 1: Create Your Specific Coupon in WooCommerce

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.

  1. In your WordPress admin, navigate to Marketing → Coupons.
  2. Click Add coupon.
  3. Enter a descriptive Coupon code (e.g., PARTNER20, AFFILIATEJANE). This is the exact code ShopMagic will be looking for.
  4. Add a brief Description (e.g., “20% discount for Partner X’s customers”).
  5. Configure the coupon’s data:
    • Discount type: Choose ‘Percentage discount’, ‘Fixed cart discount’, or ‘Fixed product discount’ based on your offer.
    • Coupon amount: Set the value (e.g., ’20’ for 20% or ’10’ for $10).
    • Coupon expiry date: If applicable, set an expiration date.
    • WordPress dashboard showing the Add New Coupon screen in WooCommerce with the code PARTNER20, a percentage discount type, and the coupon amount set to 20.

    • Usage restriction: Define any limits, like minimum spend, individual use only, or specific products/categories.
    • The Usage restriction tab in WooCommerce coupon data, showing settings for minimum spend, individual use only, and product exclusions.

    • Usage limits: Set how many times the coupon can be used overall, or per customer.
    • The 'Usage limits' tab in WooCommerce coupon data, showing fields for usage limit per coupon and usage limit per user.

  6. Once configured, click Publish to make your coupon active.

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.

Step 2: Install and Activate ShopMagic PRO & Customer Coupons Add-on

If you haven’t already, you’ll need to install ShopMagic PRO and activate the Customer Coupons add-on. This is straightforward:

  1. Purchase and download ShopMagic PRO from ShopMagic.app.
  2. In your WordPress admin, go to Plugins → Add New.
  3. Click Upload Plugin, choose the ShopMagic PRO zip file, and click Install Now.
  4. Once installed, click Activate Plugin.
  5. Navigate to ShopMagic → Add-ons.
  6. Locate the Customer Coupons add-on and click Activate.

With these activated, you now have access to the powerful “Coupon Used” event and other coupon-related features that ShopMagic offers.

Step 3: Create a New Automation in ShopMagic

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.

  1. Go to ShopMagic → Automations in your WordPress admin.

  2. Click Add New Automation.

  3. The ShopMagic Automations dashboard in WordPress with the 'Add New Automation' button clearly visible.

  4. 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.

  5. 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.

    Selecting the Order Coupon Used event from the dropdown menu in the ShopMagic automation settings to track coupon-based sales.

  6. 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.

    • Click Add filter.
    • From the first dropdown, select Order – Coupon used.
    • In the second dropdown, choose matches all.
    • In the text field, enter the exact coupon code you created in Step 1 (e.g., PARTNER20).

    This filter ensures your automation will *only* fire if the order uses the specified coupon, preventing unnecessary notifications for other coupon usages.

    Adding a filter in ShopMagic automation settings to target a specific coupon code, ensuring the email notification triggers only for designated affiliate orders.

  7. Define the Action: “Send Email”

    Now, let’s tell ShopMagic what to do when the event and filter conditions are met: send an email.

    • Click Add action.
    • From the “Action” dropdown, select Send Email.
    • Give your action a title (e.g., “Email Partner X”).
    • Recipient: In the “To” field, enter the email address of your partner or affiliate manager (e.g., [email protected]). You can also add multiple recipients, separated by commas.
    • Subject: Craft a clear subject line, for instance: “New Order with PARTNER20 Coupon – Order #{{ order.id }}”. ShopMagic placeholders (like {{ order.id }}) allow you to dynamically insert order information.
    • Email Content: Write the body of your email. This is where you can provide all the necessary details to your partner. Here are some useful placeholders you can use:
      • {{ order.id }}: The order number.
      • {{ order.total }}: The total value of the order.
      • {{ order.customer.first_name }}: Customer’s first name.
      • {{ order.customer.last_name }}: Customer’s last name.
      • {{ coupon.code }}: The coupon code used (which will be PARTNER20 in this case).
      • {{ coupon.discount_amount }}: The discount amount applied by the coupon.

    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:

    • Greeting (e.g., “Hello [Partner Name],”)
    • Confirmation of coupon usage and order (e.g., “A new order (Order #{{ order.id }}) has been completed using your {{ coupon.code }} coupon.”)
    • Key details (e.g., “Order Total: {{ order.total }}”, “Customer: {{ order.customer.first_name }} {{ order.customer.last_name }}”)
    • A friendly closing.

    This direct approach ensures your partner gets exactly what they need at a glance.

    ShopMagic automation action settings, showing the

  8. 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!

    Clicking the

Step 4: Test Your Automation

It’s always a good practice to test any new automation to ensure it works as expected. Here’s how:

  1. Go to your WooCommerce store’s frontend.
  2. Add a product to your cart.
  3. Proceed to checkout.
  4. Apply the specific coupon code (e.g., PARTNER20) you configured.
  5. Complete the order (make sure it reaches the “Completed” status, even if you use a free payment method for testing).
  6. Check the inbox of the email address you set as the recipient (e.g., [email protected]). You should receive the automated email with all the dynamic order details.

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.

Beyond Partner Tracking: More Business Impact with Coupon Used Automations

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:

  • Internal Sales Team Notifications: Inform your sales or marketing team immediately when a high-value coupon is used, or a coupon from a specific campaign is redeemed. This can trigger follow-up actions or provide real-time campaign performance insights.
  • Fraud Detection & Alerting: If you notice unusual activity with a particular coupon, you could set up an automation to alert you or your security team. While not a full fraud solution, it can be an early warning system.
  • Customer Segmentation & Follow-up: Automatically add customers who use specific coupons to a particular segment in your CRM or email marketing tool. This allows for highly targeted follow-up campaigns based on their purchasing behavior and discount preference. For example, if a customer uses a “first-time buyer” coupon, you can segment them for future loyalty programs.
  • Inventory Management Alerts: If a coupon is tied to specific products, you could set up an alert for your inventory team when that coupon is used, especially for limited stock items.

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.

Why Choose ShopMagic for Your WooCommerce Automations?

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.

  • No Coding Required: This is a huge advantage for solo store owners like Ewa. You don’t need to hire developers or learn complex programming languages. ShopMagic’s intuitive interface lets you build powerful automations with clicks, not code.
  • Seamless WooCommerce Integration: ShopMagic is built specifically for WooCommerce. This means it understands your store’s data, events, and customer behavior perfectly, ensuring full compatibility and reliable performance.
  • Reliable, Event-Based System: Trust that your automations will fire precisely when they should. ShopMagic’s event-based architecture is robust, handling everything from abandoned carts to specific coupon usages with accuracy.
  • Real Business Impact: ShopMagic isn’t just about sending emails; it’s about driving conversions, increasing average order value, reducing manual tasks, and building stronger customer relationships. It directly impacts your bottom line.
  • Scalable for Your Growing Business: As your store expands, ShopMagic can handle more complex automations and a larger customer base. It’s a long-term solution that adapts to your evolving needs.
  • Excellent Support & Documentation: We pride ourselves on providing clear documentation and responsive support, ensuring you get the most out of your ShopMagic investment.

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

Frequently Asked Questions About WooCommerce Coupon Email Automations

How to send email when coupon is used in WooCommerce?

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.

Can I notify affiliates automatically when their coupon is redeemed?

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.

Does ShopMagic’s “Coupon Used” event trigger on cart application or order completion?

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.

Is coding required to set up WooCommerce automation based on coupon usage?

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.

]]>
How to Send an Email When a New Product Is Added in WooCommerce (Automatically) https://shopmagic.app/blog/send-email-new-product-added-woocommerce-automatically/ Fri, 06 Mar 2026 08:31:13 +0000 https://shopmagic.app/?p=24177 Imagine this: you’ve just finished creating a fantastic new product for your WooCommerce store. It’s live, beautiful, and ready for customers. Now, what’s next? Usually, you’d have to manually craft a newsletter, select your audience, hit send, and remember to do this every single time. It’s a chore, isn’t it?

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.

What Does “Send Email When New Product Is Added Automatically in WooCommerce” Mean?

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.

Why Automating New Product Announcements is a Game-Changer for Your WooCommerce Store

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.

The Challenges of Manual Announcements:

  • Time-Consuming: Each new product requires a separate, manual email campaign setup.
  • Prone to Error: Forgetting to send an announcement means lost sales opportunities.
  • Inconsistent Communication: If you’re busy, announcements might be delayed or skipped, leading to a less engaged audience.
  • Missed Opportunities: Without immediate notification, eager customers might miss out on your latest offerings.

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.

Introducing ShopMagic: Your WooCommerce Automation Powerhouse

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.

Step-by-Step Guide: How to Set Up New Product Email Automation with ShopMagic

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.

Step 1: Install and Activate ShopMagic for WooCommerce

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.

Step 2: Create a New Automation

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.

Screenshot of the ShopMagic Automations dashboard in WordPress highlighting the 'Add new' button to create a new marketing 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.”

Screenshot of the ShopMagic automation editor focusing on the title input field with

Step 3: Choose the “Product Published” Event

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”.

Screenshot of the ShopMagic 'Event' dropdown menu with the

Step 4: Add a Filter: “Product – Status”

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.

  1. Click on the “Add filter” button in the ‘Filter’ section.
  2. From the filter dropdown, select “Product – Status”.
  3. Choose the condition “matches any”.
  4. In the final field, type or select “published”.

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.

Screenshot of the ShopMagic Filter section showing 'Product – Status' selected with the condition 'matches any' and the value set to 'published'.

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.

Step 5: Define the Action: “Send Email”

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.

  1. Click on the “Add action” button in the ‘Action’ section.
  2. From the action dropdown, select “Send Email”.
  3. You will then see a form to configure your email:
    • Description: Give your action a name, e.g., “Notify Subscribers.”
    • To: This is crucial. To send to all your subscribers, you would typically select a placeholder like {{ 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.
    • Subject: Craft a compelling subject line, such as “🔥 New Product Alert: {{ product.title }} is Here!” The {{ product.title }} is a placeholder that will automatically be replaced with your new product’s name.
    • Heading: The main heading of your email.
    • Template: Choose a pre-designed email template (e.g., WooCommerce template) for a consistent look.
    • Message: This is the body of your email. Here, you’ll announce your new product. Use placeholders to dynamically pull in product information.

Screenshot of the ShopMagic 'Action' section showing the 'Send Email' form with fields for Description, To, Subject, and the Message editor using dynamic placeholders.

For a detailed walkthrough of all email form fields, refer to our guide on setting up automation for beginners.

Step 6: Design Your New Product Announcement Email

The content of your email is key to driving clicks and sales. Here are some tips for crafting an effective new product announcement:

  • Catchy Subject Line: Make it clear and exciting. Emojis can help!
  • Personalization: Use customer placeholders like {{ customer.first_name }} to make the email feel personal.
  • Highlight Benefits: Don’t just list features; explain how the new product solves a problem or adds value for your customer.
  • Visuals: Include a captivating image of your new product.
  • Step 7: Publish Your Automation

    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.

    Screenshot of the top-right corner of the ShopMagic editor highlighting the blue 'Publish' button used to activate the workflow.

    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!

    Why ShopMagic is the Best Choice for Your WooCommerce Store

    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:

    • Seamless WooCommerce Integration: ShopMagic is built from the ground up for WooCommerce. This means it understands your store’s data, events, and customer behavior perfectly, allowing for highly relevant and effective automations.
    • Unmatched Ease of Use: The intuitive interface and clear step-by-step process mean you can set up complex automations without any technical expertise. You don’t need to be a developer to leverage advanced marketing tactics.
    • Real Business Impact: By automating tasks like new product announcements, abandoned cart recovery, or review requests, ShopMagic directly helps you save time, increase conversions, and build stronger customer relationships. It turns potential lost sales into revenue.
    • Extensive Documentation and Support: We believe in empowering our users. ShopMagic comes with comprehensive documentation and a dedicated support team ready to assist you. You’re never alone on your automation journey.
    • Flexibility and Extensibility: With a wide array of events, filters, and actions, plus powerful add-ons, ShopMagic grows with your business. Whether you need to integrate with booking systems, send coupons, or manage marketing lists, ShopMagic has you covered.

    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

    FAQ: Automatically Notifying Customers About New WooCommerce Products

    How to automatically email subscribers when a new product is published in WordPress?

    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.

    Can I filter which new products trigger an email?

    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.

    Is it possible to notify only specific customer groups about new products?

    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.

    What kind of content should I include in a new product announcement email?

    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.

    Does ShopMagic integrate with email marketing services?

    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.

    ]]> Why Your WooCommerce Subscriptions Need Smart Automation Beyond Basic Emails https://shopmagic.app/blog/woocommerce-subscription-emails-smart-automation/ Fri, 23 Jan 2026 12:15:29 +0000 https://shopmagic.app/?p=23721 Imagine a WooCommerce store where every subscriber feels truly valued, where churn is dramatically reduced, and where every interaction is an opportunity for growth. This isn’t a distant dream; it’s the tangible reality that smart automation can unlock for your subscription business. While WooCommerce Subscriptions offers foundational features, relying solely on its built-in emails is like trying to win a marathon with walking shoes – you’ll get by, but you’ll never reach your full potential.

    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.

    The Unseen Costs of Basic WooCommerce Subscription Emails

    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.

    What Default WooCommerce Subscriptions Emails Offer (and Don’t)

    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.

    Screenshot of Flexible Subscriptions email settings in WooCommerce
    The default email settings for Flexible Subscriptions in WooCommerce, showing basic transactional notifications.

    Why Basic Notifications Fall Short for Retention and Growth

    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:

    • Lack of Personalization: Generic messages fail to resonate with individual customers. A one-size-fits-all email doesn’t acknowledge unique purchase histories, preferences, or engagement levels.
    • No Proactive Engagement: These emails are reactive. They inform after an event occurs, rather than proactively guiding customers, offering value, or addressing potential issues before they escalate.
    • Generic Messaging: The language is often dry and functional, missing the opportunity to reinforce your brand’s value, build community, or celebrate customer milestones.
    • Missed Opportunities for Upsells and Cross-sells: Without the ability to segment customers and trigger tailored offers, you’re leaving potential revenue untapped. Imagine a customer who consistently buys a specific product; a basic email won’t suggest a complementary item or an upgrade.

    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.

    Imagining a Smarter Subscription Journey: The Power of Automation

    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.

    Beyond the Basics: What Smart Automation Unlocks

    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:

    • Personalized Communication at Every Touchpoint: Deliver messages that truly resonate. Tailor content based on subscription type, customer history, engagement level, or even their location. This makes customers feel seen and valued, not just like another entry in a database.
    • Proactive Problem-Solving: Address issues before they become crises. Send gentle reminders about expiring payment methods, offer assistance for failed payments, or provide helpful resources during a trial period. This pre-emptive approach significantly reduces churn.
    • Strategic Upsells and Cross-sells: Leverage data to suggest relevant products or upgrades precisely when customers are most receptive. A customer enjoying a basic subscription might be ready for a premium tier or a complementary product.

    The Gaps Even Advanced Platforms Like AutomateWoo or Metorik Might Miss (and where ShopMagic shines)

    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.

    Unlocking the Full Potential with ShopMagic for 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.

    Tailored Communication for Every Subscription Lifecycle Event

    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:

    • New Subscription: Welcome new subscribers with a personalized onboarding series, setting expectations and offering immediate value.
    • Subscription Before Renewal: Send strategic WooCommerce renewal reminder emails days or weeks before the renewal date, offering incentives, highlighting benefits, or gently reminding customers of upcoming charges. You can specify the ‘Days before renewal’ to perfectly time your outreach.
    • Subscription Trial End: Automate targeted messages before a trial expires, offering tips, FAQs, or a special offer to convert trialists into paying customers. The ‘Days before trial end’ setting provides granular control.
    • Subscription Status Changed: React instantly to any status change (e.g., from active to suspended, or on-hold to active), sending tailored messages that inform, reassure, or guide the customer to the next step.
    • Subscription Before End: For subscriptions with a fixed term, send a ‘before end’ notification, offering options for re-subscription or exploring other products.

    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.

    Proactive Actions: From Status Changes to Custom Dates

    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:

    • Subscription Change Status: Automatically update a subscription’s status based on specific triggers. For example, if a customer completes a survey, you could automatically change their trial subscription to active.
    • Subscription Change Date: Flexibly adjust important subscription dates. You can extend a trial end date, shift a next payment date, or even modify the overall end date based on customer interactions or special offers.
    • Subscription Change to Manual: In specific scenarios, you might want to switch a subscription from automatic to manual renewal, and ShopMagic can automate this process.

    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.

    Real-World Scenarios: Transforming Your Subscription Business

    Let’s explore how ShopMagic with Flexible Subscriptions can elevate common challenges into powerful growth opportunities:

    Scenario 1: Reducing Churn with Proactive Renewal Reminders

    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:

    1. 30 Days Before Renewal: Send a personalized email reminding customers of the value they receive, showcasing new features or benefits, and gently reminding them of the upcoming charge.
    2. 7 Days Before Renewal: Send a more direct reminder, including the renewal date and amount, and prominently feature a link to update payment methods if needed.
    3. 1 Day Before Renewal: A final, concise reminder with a clear CTA to update payment details if they haven’t already.

    This proactive approach significantly reduces failed payments and gives customers ample time to react, boosting retention rates.

    Scenario 2: Nurturing Trials into Loyal Subscribers

    Converting trial users into paying subscribers is a critical growth lever. ShopMagic allows you to craft engaging trial-specific workflows:

    1. Upon Trial Start: Send a welcome email with onboarding tips, links to key resources, and a guide on how to get the most out of their trial.
    2. Mid-Trial Check-in: A few days before the trial ends, send a personalized email asking about their experience, offering support, and perhaps showcasing a testimonial from a satisfied customer. This can include a specific message for how to set up trial expiration emails in WooCommerce subscriptions.
    3. Trial Expiration Reminder: Just before the trial ends, send a clear email outlining the benefits of continuing, detailing the subscription cost, and providing a direct link to upgrade or manage their subscription.

    This structured nurturing process maximizes conversion from trial to paid subscriber.

    Scenario 3: Recovering Failed Payments Gracefully

    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:

    1. Immediately After First Failure: Send an immediate, polite email notifying the customer of the failed payment, explaining the issue (if possible), and providing a direct link to update their payment method.
    2. 24 Hours Later: A follow-up reminder, perhaps with a slightly different tone or highlighting the consequences of non-payment (e.g., service interruption).
    3. 48-72 Hours Later: A final reminder before the subscription status is changed to ‘on-hold’ or ‘cancelled,’ offering assistance and a direct path to resolution.

    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.

    ShopMagic Flexible Subscription £69

    Enables automations for subscription events like status changes, renewals, cancellations.

    Add to cart or View Details
    Plugins used by 10,000+ shops
    Last Updated: 2026-01-12
    Works with WooCommerce 10.0 - 10.4

    The WP Desk Advantage: Seamless Integration and Unmatched Support

    Choosing 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!

    FAQ: Smart Automation for WooCommerce Subscriptions

    How to automate WooCommerce subscription emails?

    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.

    How to send renewal reminder emails for WooCommerce subscriptions?

    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.

    How to set up trial expiration emails in WooCommerce subscriptions?

    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.

    Can I personalize WooCommerce subscription emails without a plugin?

    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.

    What are the key benefits of using ShopMagic for subscription automation?

    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.

    How does ShopMagic handle failed subscription payments?

    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.

    Is ShopMagic compatible with other WooCommerce subscription plugins like Flexible Subscriptions?

    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.

    ]]>
    How to Format a Timestamp in WooCommerce Emails with ShopMagic – Case Study https://shopmagic.app/blog/woocommerce-shopmagic-email-timestamp/ Thu, 21 Aug 2025 11:01:54 +0000 https://shopmagic.app/?p=21392&cf-nocache=1 Automation in WooCommerce is a huge convenience for online store owners. Thanks to the ShopMagic plugin, you can set up personalized emails sent to customers or the support team depending on events in the store.
    However, sometimes challenges arise that require a creative approach – especially when order data is stored in a format that is not very human-readable, such as a UNIX timestamp.

    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.

    Case description and challenge

    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.”

    Why is this a problem?

    • A timestamp is a time value recorded in seconds since January 1, 1970 — for example, 1754661600.
    • It’s perfect for calculations and storing data but completely unreadable for the end customer.
    • Sending it in this form in an email looks unprofessional and may cause confusion.

    The client wanted the timestamp in the automation to be automatically converted into a nice, readable date.

    Case analysis in ShopMagic and solution attempts

    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.

    First attempt – shopmagic/core/placeholder/meta_value filter

    add_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.

    Second attempt – shopmagic/magic_tags/order.meta filter

    add_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.

    Conclusions after testing

    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.

    Final solution – ShopMagic limitation workaround

    Since we couldn’t change the value of an existing field before sending, we opted for a simple but effective workaround:

    1. Keep the raw timestamp in a separate meta field (e.g., delivery_timestamp_raw).
    2. Add a second meta field (e.g., delivery_date_pretty) with the already formatted date.
    3. In the ShopMagic email content, reference this second field.

    Solution

    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

    Why does it work?

    • ShopMagic reads the meta field value directly from the database.
    • If we give it an already formatted value, it will display it without additional conversions.
    • We also keep the original timestamp, which can still be used for calculations elsewhere in the store.

    Practical tips (ShopMagic)

    • Use two meta fields — one for calculations (_raw), the other for display (_pretty).
    • Always save dates in the format consistent with the WordPress timezone (wp_date()) to avoid timezone issues.
    • Test in a staging environment before deploying to production, especially for automations sending emails to customers.
    • ShopMagic documentation: https://docs.shopmagic.app/

    Summary and conclusions

    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:

    • Clear, professional email messages.
    • No interference with ShopMagic’s internal mechanisms.
    • Flexibility and the ability to perform calculations on the original data.

    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.

    ]]>
    How to send multiple abandoned cart emails in WooCommerce with ShopMagic PRO https://shopmagic.app/blog/abandoned-cart-email-sequence/ Tue, 29 Jul 2025 06:03:32 +0000 https://shopmagic.app/?p=21225&cf-nocache=1 Recovering abandoned carts effectively is one of the most important actions for optimizing sales in a WooCommerce store. However, sending just one reminder is often not enough. It’s worth setting up a series of email messages that encourage the customer to return — but with common sense: do not send further messages if the customer has already placed an order.

    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.

    The problem – the need for more advanced automation (ShopMagic PRO)

    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:

    • How to add such a condition to the second email?
    • Is it possible to set a filter that checks if the cart was recovered?
    • Is it better to create two automations, or one with multiple actions?

    As it turned out, solving the issue was simpler than expected — using one automation with two actions solved the problem efficiently.

    Step-by-step automation setup in ShopMagic PRO

    To implement this successfully, follow the steps below.

    1. Event: Abandoned Cart in ShopMagic PRO

    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.

    2. Action 1 – first email after 1 hour

    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:

    • Delay: 1 hour
    • Active days: Monday to Sunday (entire week)
    • Email subject: e.g. “Did you forget something in your cart?”
    • Content: a simple reminder about the abandoned cart, without any discount

    💡 This is a typical reminder, and it works best within 60 minutes after cart abandonment.

    3. Action 2 – second email after 2 days

    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:

    • Delay: 2 days
    • Active days: full week
    • Email subject: e.g. “Your cart is still waiting – don’t miss out!”
    • Content: optionally include an incentive to complete the purchase, such as a limited-time deal

    🔒 Thanks to ShopMagic’s logic, the second message will only be sent if the cart remains abandoned.

    Why you don’t need to add filters manually

    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

    Frequently Asked Questions

    Do I need to create separate automations for each email?

    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).

    Will the customer receive the second email if they already placed an order?

    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.

    Summary

    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!

    ]]>
    How to Fix the “Failed to set data for key _action” Error in ShopMagic – WooCommerce Case Study https://shopmagic.app/blog/how-to-fix-the-failed-to-set-data-error-in-shopmagic-pro/ Wed, 02 Jul 2025 05:41:49 +0000 https://shopmagic.app/?p=21048&cf-nocache=1 Customer communication automation is one of the key elements of a successful online store. With the ShopMagic PRO plugin, you can easily send automated emails to your customers, remind them about abandoned carts, or thank them for their purchases. However, even the best tools can sometimes face technical obstacles – especially when it comes to server or database configuration.

    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.

    The issue: error when saving automation in ShopMagic PRO

    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 _action
    • HTTP Error, Failed to set data for key _action

    Interestingly, 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.

    Diagnosis: an invisible character encoding problem

    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.

    What solved the issue?

    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.

    How to fix a similar issue on your own

    If you ever run into a similar error when saving automations in ShopMagic PRO, here’s what you should check:

    1. Check the characters you’re using
      Does your message contain emojis or unusual characters? Try saving a version without them – if it works, the issue is likely caused by your database encoding.
    2. Inspect your database encoding
      • Log into your database management tool (e.g., phpMyAdmin).
      • Find the wp_postmeta table where ShopMagic stores data.
      • Make sure the relevant columns use the 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.

    3. Enable debug mode in ShopMagic
      In the WordPress dashboard, go to ShopMagic → Settings and enable debug mode. This will help log any issues during automation execution.

      You can find more about debugging in ShopMagic’s documentation.

    Why use ShopMagic?

    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:

    • Intuitive automation builder – create workflows without writing any code.
    • Multiple message formats – from simple plain text to advanced HTML templates with dynamic variables.
    • Conditions and delays – send messages at the right time to the right people.

    All of this makes ShopMagic a flexible tool for process automation in WooCommerce – suitable for both beginners and advanced users.

    Summary & Takeaways

    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:

    • It’s worth investigating errors step by step – don’t give up too quickly.
    • ShopMagic is a powerful and flexible automation tool worth exploring.
    • ShopMagic’s support and documentation can make troubleshooting much easier.

    👉 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!

    ]]>