Title: split by rule
Last modified: May 23, 2025

---

# split by rule

 *  Resolved [tommy83](https://wordpress.org/support/users/tommy83/)
 * (@tommy83)
 * [1 year ago](https://wordpress.org/support/topic/split-by-rule-2/)
 * Hello,
   we like your plugin from screenshots so much. It does have meta copy option
   and many more.We read the guide of this order split plugin. But its still not
   clear if we can handle our case:We wanna split a order if a specific product 
   is in order.Lets say the AND logic rule is:Split order if this products are in
   orderProduct A AND B.So if user make an order with product A and product Z ->
   they shoud not split the order, because the rule is not fullfilled/not true.Now
   customer create an order with product X, product A and product B-> Now we shoud
   split the order.First order shoud contains:product XSecond order:product Aproduct
   B.Question:Is that possible with your plugin? We see that all other plugins for
   order split can handle AND logic. What about yours?Second question:You have also
   have an order meta manager to make sure that all order meta will be copied to
   second order?All the best,Tommy

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [B.Ng](https://wordpress.org/support/users/baonguyen0310/)
 * (@baonguyen0310)
 * [1 year ago](https://wordpress.org/support/topic/split-by-rule-2/#post-18481036)
 * Hi Tommy,
 * Thanks so much for your kind words and interest in our plugin — we’re glad you
   liked the screenshots and the feature set!
 * To clarify your question, we assume you’re referring to automatic order splitting,
   since with manual splitting, you can freely choose which items go into which 
   order.
 * **Regarding your first question:**
 * From what you’ve described, your desired logic is:
 * Split the order only if both Product A and Product B are present
 * If only one of them is present, do nothing.
 * Currently, our plugin does not support this type of AND logic condition for automatic
   splitting out of the box. However, we’re always looking to improve — and this
   is something we can definitely consider building for you!
 * Just to confirm your expected behavior:
    - If a customer orders Product X, Y, A, and B
      → One new order should contain
      A & B→ The original order should be reduced to contain X & Y, correct?
 * If that’s the intended flow, we’d love to discuss it further and explore implementing
   it in a custom or future update.
 * **As for your second question:**
 * Yes — all order meta is copied to the split orders by default, including custom
   meta.
 * If you want to exclude specific meta keys from being copied, we offer a code 
   snippet for that in our documentation here:
 * [Excluding Order Meta — WooCommerce Order Splitter](https://yoohw.com/docs/woocommerce-order-splitter/code-snippets/excluding-order-meta/)
 * Let us know if you’d like to proceed with a custom logic feature for the AND 
   condition — we’d be happy to assist.
 * All the best,
 *  Plugin Support [B.Ng](https://wordpress.org/support/users/baonguyen0310/)
 * (@baonguyen0310)
 * [1 year ago](https://wordpress.org/support/topic/split-by-rule-2/#post-18483227)
 * P.S. Great timing!
 * We just released a new version of the plugin that includes support for splitting
   by group products — exactly the kind of logic you described.
 * With this new feature, you can now create a product group (e.g., Product A and
   Product B), and the order will automatically be split only when all products 
   in that group are present. If any one of them is missing, the rule won’t trigger—
   just as you wanted.
 * This should fully cover your use case:
    - Order with A + B → trigger split
    - Order with A + Z → no split
    - Order with A + B + others → A and B go to one order, the rest stay in the 
      original
 * You can configure this from the plugin settings under the “Split by Group” option.
 * Let us know if you need help setting it up or if you’d like a walkthrough!
 * Warm regards,
 * The YoOhw Team

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘split by rule’ is closed to new replies.

 * ![](https://ps.w.org/wc-order-splitter/assets/icon-256x256.png?rev=3516972)
 * [Order Splitter for WooCommerce - Split / Duplicate / Merge Orders](https://wordpress.org/plugins/wc-order-splitter/)
 * [Support Threads](https://wordpress.org/support/plugin/wc-order-splitter/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-order-splitter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-order-splitter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-order-splitter/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [B.Ng](https://wordpress.org/support/users/baonguyen0310/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/split-by-rule-2/#post-18483227)
 * Status: resolved