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
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
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
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.
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
Oh, ok. I misunderstood. I hope that my plugin could help you in some functions or scripts.