I want to add a custom column in the product table that is displayed while placing order from magento admin panel .

I want something similar as shown in image

A help will be appreciated

  • You need to override the admin grid controller for product Apr 20 '15 at 10:10
  • This table has js code that works with it - column count and their order matter there. If you add a column you will have to override a lot of core functionality Apr 20 '15 at 13:32
  • Are you attempting to DISPLAY a field / attribute that already exists for Products in Magento or are you trying to ADD a field that DOESN'T exist and then DISPLAY it here on the on the Sales > Order > Create New Order Admin View Apr 24 '15 at 2:30

Make a field in database table "sales_flat_order_item" like "statetax" enter image description here

In your module config file. add this code


And make observer file.

class Test_Taxgenerate_Model_Observer extends Varien_Object{
public function setorderstatetax(Varien_Event_Observer $observer)
    $quote = $observer->getEvent()->getQuote();
    foreach ($quote->getAllVisibleItems() as $quoteitem) {
       $quotetax[$i]['statetax'] = $quoteitem->getStatetax();
    $order = $observer->getEvent()->getOrder();
    foreach($order->getAllVisibleItems() as $item){


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.