keystonewebworks:
no one has done this or had the need to do this before?
i take order from multiple drop shippers and it would be nice to split an order based on drop shipper.
any one want to try to come up with the custom code?? :)I can't answer what folks might need.. No one has ever expressed any desire to expand the current functionality..
To expand split orders CORRECTLY requires functionality to be able to properly reconcile the original order with all of the child orders. To do this is not a SIMPLE modification if it is to be done absolutely correctly.. Which is largely why it is not included in the current codebase.. There has never been a volunteer contributor who was willing to build a proper fully functional split order function for Super Orders.
There are a number of issues that must be addressed:
- Only ONE order is tied to PayPal or credit card payments. So any well written split orders functionality would have to address issues like handling authorize and capture transactions as well refunds and credits with the payment processor for child orders..
- There also has to be functionality to properly handle distributing taxes and shipping as well as any other order total modules (like coupons for example) amongst all the orders including the parent order. This functionality needs to not only calculate this for the child order, but RE-CALCULATE it for the parent too.
- Child orders that are split from the parent and then split again. These too must reconcile with the original order.
The current split orders function does no such calculation to distrubute the shipping and taxes and simply leaves the shipping and taxes with the "parent order" while providing a simple "audit trail" to inform the shopowner of the source of the "child order". The current function also does not provide a means to process PayPal or credit card refunds for child orders, and it does not provide any means to handle child orders which the parent order is a "capture and authorize" type of order either.. The payment notification (grey box) is simply suppressed for the child order.
All of these things will need to be taken into consideration in order for split orders to be expanded into something which is truly useful for shopowners. Otherwise you will have to imploy some very manual means to keep track of the original and child orders.