Shopify Flow/Notifications & Internal Alerts/Alert Staff for Orders with Multiple Variants of the Same Product
Team VisibilityMedium Difficulty

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

  1. Trigger

    Step 1

    Starts when a new order is created.

  2. Action

    Step 2

    Runs code to detect multiple variants of the same product.

  3. Condition

    Step 3

    Checks the code result.

  4. Action

    Step 4

    Emails subject "A customer has ordered multiple variants of a product".

Step-by-Step Setup

  1. 1

    Create a Flow starting with the 'Order created' trigger.

  2. 2

    Add a 'Run code' action to analyze the order's line items for multiple variants of the same product.

  3. 3

    Set a 'Condition' to proceed only if the 'Run code' result indicates multiple variants were found.

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

Open Shopify Flow

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