• Resolved nelsonamaya

    (@nelsonamaya)


    Hi @karzin,

    Is there a way to hook the plugin in order to disable the split functionality for certain orders? I’m using another plugin to duplicate orders, but I don’t want them to be split.

    I’ve been struggling with this and looking for a hook or a function to do that but haven’t been able to.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    Sure, no problem.
    I have two.

    apply_filters( 'alg_mowc_create_suborders', true, $main_order_id );
    This will be applied on the main order. If first parameter is false the plugin will not create suborders from the main order.

    apply_filters( 'alg_mowc_order_item_valid_as_suborder', true, $item_id, $main_order_item, $main_order )
    This will be applied to each item in the order. If false, the suborder will not be created for the correspondent order item

    Thread Starter nelsonamaya

    (@nelsonamaya)

    Thank you @karzin for your prompt response.

    How can I use the first filter? When should I call it and how to pass the main order ID?

    Thanks!

    Thread Starter nelsonamaya

    (@nelsonamaya)

    Nevermind, I got it.

    Thank you so much!! Your support is great!

    ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to control which orders shouldn’t be split’ is closed to new replies.