• Resolved Ryon Whyte

    (@ryonwhyte)


    The plugin is set to split the order once it is set to a specific status. In this case, “waiting”. As you can see in this screenshot the status condition is satisfied but the order remains combined https://prnt.sc/q0hvie

    As you can see here I only received one email https://prnt.sc/q0hz1p (11 minutes ago)

    If I go to the ADMIN order page or reload the order page then the order is split as you can see here https://prnt.sc/q0hzup which also shows that I just got the emails for the split orders https://prnt.sc/q0i055

    This means that if a customer makes a purchase. The order will not split until I login to reload the ADMIN order page

    Any suggestion?

    • This topic was modified 5 years, 4 months ago by Ryon Whyte.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Fahad Mahmood

    (@fahadmahmood)

    For this case i will invite you to my demo website to test it with me. The reason is, there are two points where script check the status for split and emails.

    1) Thank you page
    2) Order list page in admin panel

    It seems like either your theme is behaving differently and after successful checkout its not triggering the desired hook or you are performing some other actions and then expecting a split point.

    Kindly join me here so i can test your scenario with you.

    Thread Starter Ryon Whyte

    (@ryonwhyte)

    I can only select the 29th of this month for a scheduled call. https://prnt.sc/q0i6f0

    I have this code in use to update order status on checkout. Do you think this is the issue?

    add_action( 'woocommerce_thankyou', 'bbloomer_thankyou_change_order_status' );
    function bbloomer_thankyou_change_order_status( $order_id ){
       if( ! $order_id ) return;
       $order = wc_get_order( $order_id );
       // Status without the "wc-" prefix
       $order->update_status( 'waiting' );
    }

    Maybe you could add a feature to update the order status of split order.

    • This reply was modified 5 years, 4 months ago by Ryon Whyte.
    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    So you are also using this hook, yes it can be an issue because i can show you my script where i am using the same hook. Anyways, please try to book a meeting again, datepicker issue has been resolved. I am waiting for you.

    Thread Starter Ryon Whyte

    (@ryonwhyte)

    I submitted the form

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Order does not split unless reload admin order page’ is closed to new replies.