Reputation: 2269
For a new function in magento i'm lookin for a solution. Per order row i need to add a delivery date (for example):
Product 1 -> 22 June 2013 Product 2 -> 23 June 2013
It doesn't need a connection with the delivery controller, but is it possible to add data to an order row? And when yes, can anyone give a hint?
Upvotes: 0
Views: 1030
Reputation: 5680
Just create a new column for the table sales_order_flat
. Use observer method to listen for event sales_order_save_before
and add the value inside the observer method via $order->setData('your_new_column', $value)
Upvotes: 1
Reputation: 2174
http://www.magentocommerce.com/magento-connect/catalog/product/view/id/16428/
check this extension.
also check Saving extra data with an order in Magento and How to add custom field to order in Magento?
Upvotes: 0