Alert Staff for Orders with Multiple Variants of the Same Product
Automatically receive an internal email notification when a single customer orders multiple variants of the same product, enabling proactive review and follow-up.
The Problem
Manually sifting through orders to identify customers purchasing multiple variants of the *same* product is time-consuming and prone to error. Missing these specific orders can lead to higher return rates from customers 'trying on' different sizes or colors, or prevent you from spotting potential resellers buying up stock, costing you time and lost revenue.
What This Automation Solves
This Flow automates detection by triggering on 'Order created,' then using a 'Run code' action to specifically identify if an order contains multiple variants of the *same* product. A subsequent 'Condition' checks the code's output, and if true, a 'Send internal email' action dispatches an immediate alert to your team, ensuring no such order goes unnoticed.
When to Use This Automation
- You sell apparel or footwear where customers might order multiple sizes/colors to try on.
- You want to identify potential resellers buying different configurations of a single item.
- You need to proactively address orders that might have a higher likelihood of partial returns.
Workflow
Trigger
Step 1Starts when a new order is created.
Action
Step 2Runs code to detect multiple variants of the same product.
Condition
Step 3Checks the code result.
Action
Step 4Emails subject "A customer has ordered multiple variants of a product".
Step-by-Step Setup
- 1
Create a Flow starting with the 'Order created' trigger.
- 2
Add a 'Run code' action to analyze the order's line items for multiple variants of the same product.
- 3
Set a 'Condition' to proceed only if the 'Run code' result indicates multiple variants were found.
- 4
Configure a 'Send internal email' action to notify your team, including relevant order details.
Related Questions
- How does the 'Run code' step detect multiple variants of the same product?
- The custom code iterates through the order's line items, grouping them by product ID. It then checks if any single product ID has more than one unique variant ID associated with it, indicating multiple variants of that specific product were ordered.
- Can I customize the content of the internal email notification?
- Yes, absolutely. The 'Send internal email' action allows you to fully customize the subject line and body using dynamic variables like `{{ order.name }}` or `{{ customer.email }}` to include specific order or customer information.
- What if I only want to be notified for specific product types or collections?
- You can add an additional 'Condition' step right after the 'Run code' action. This condition can check `order.lineItems` for specific product tags, collections, or vendors before the notification is sent.
- Can this automation prevent customers from ordering multiple variants of the same product?
- No, Shopify Flow is designed for reactive automation, meaning it acts *after* an event occurs. To prevent such orders, you would need a storefront app or custom development that restricts quantity or variant selections during the checkout process.
Recommended Tools & Apps
Launch this automation
Open Shopify Flow and use this page as your setup blueprint.
Merchant Insight
Consider segmenting these customers. Those ordering multiple sizes might benefit from a targeted post-purchase email offering styling tips or easier returns. For potential resellers, it's an opportunity for a personalized B2B outreach.
Related Automations
Alert Your Team Instantly to High-Value Orders
Automatically notify key staff members via internal email the moment a high-value order is placed, ensuring prompt attention and personalized service.
How to Immediately Alert Support to Negative Post-Purchase Feedback
Automatically notify your support team of negative customer feedback received after an order, enabling swift resolution and improved customer satisfaction.
Get Instant Alerts When a Specific Discount Code Is Used
Automatically receive an email notification whenever a specific, pre-defined discount code is successfully applied to a customer's order, ensuring real-time usage tracking.