• Resolved ecreationsllc

    (@ecreationsllc)


    When a customer places an order with multiple products, orders are not split until I refresh or open orders page in admin panel. This is not working for our setup because we have ShipStation automatically retrieve orders and it is pulling in the non split orders (this is why the split the order in the first place). How can we make it automatically split the order when it is placed by the customer?

    Please Help!
    Thanks!
    -Scott

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Scott,

    In fact, earlier it was automated but as it was immediately splitting after order so most of the hosting servers were not responding quickly on order page. It was a kind of slow process, that’s why i temporarily turned that feature OFF. In your case, i would suggest a kind of cron job thing so automation but with a specified interval is good instead of immediate split. Either 5 minutes interval but immediately split is not recommended.

    Thanks,
    Fahad

    Thread Starter ecreationsllc

    (@ecreationsllc)

    I thank you for your help but I just decided to write my own to do exactly what I want. I just used the 'woocommerce_checkout_order_processed' action to check the order items and create a new order if necessary based on some criteria. Then I just changed the order id to the new one in the order items affected and did a $new_order->calculate_totals(); to get the new total and so on. Of course it was a little more complicated than this but it works perfectly.

    • This reply was modified 7 years, 1 month ago by ecreationsllc. Reason: formatting
    Thread Starter ecreationsllc

    (@ecreationsllc)

    Just an update to my last comment … do not use ~~'woocommerce_checkout_order_processed'~~ action, insted use 'woocommerce_thankyou' action so that the order is completed before moving order items.

    • This reply was modified 7 years, 1 month ago by ecreationsllc. Reason: formatting
    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Please share it with me so i can add your contribution in this plugin. By changing only hook, won’t resolve the issue if i go for it. And about automatic trigger, in next release i am providing an option to turn ON/OFF.

    Thread Starter ecreationsllc

    (@ecreationsllc)

    Sorry, I should have been more clear. I did not re-write your plugin or use your plugin at all. I just wrote my own plugin and complete functionality from scratch to do what I needed it to do. Your plugin works great, it is just not suited for what I need it for.

    -Scott

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Oh, ok. I misunderstood. I hope that my plugin could help you in some functions or scripts.

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

The topic ‘Automatically Split Orders Not Wait Until I Visit The Orders Admin’ is closed to new replies.