I am currently creating a module that requires me to take an order object and force it to reorder itself .. thus creating a new order in the backend with exactly the same elements and credentials.
This is the code that I still have ... it does not seem to order the element or create or add another backend code.
$personsOrder = Mage::getModel('sales/order'); $personsOrder->loadByIncrementId($order['model_order_id']); $order_model = Mage::getSingleton('adminhtml/sales_order_create'); $personsOrder->setReordered(true); $order_model->initFromOrder($personsOrder);
Any help is much appreciated!
php magento
Dave c
source share