0

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?

Ronn0
  • 2,249
  • 2
  • 21
  • 36

2 Answers2

1

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)

Michael Leiss
  • 5,395
  • 3
  • 21
  • 27