Ronn0
Ronn0

Reputation: 2269

Magento add info to order product

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

Answers (2)

Michael Leiss
Michael Leiss

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

Related Questions