I have insert column: warehouse in sales_flat_order_grid.[And also created attributes with values] After added how can i get the attributes values,

 $this->addColumn('warehouse', array(
        'header' => Mage::helper('sales')->__('Warehouse'),
        'index' => 'warehouse',
        'type'  => 'options',
        'width' => '70px',          

        'options' => Mage::getSingleton('eav/config')->getAttribute('catalog_product', 'warehouse'),


How to solve the error?

  • You want to display the values of a product attribute as an option array in the admin orders grid ? I trully suggest you don't do that. Oct 24, 2017 at 13:57
  • @YiorgosMoschovitis : Then how can i choose, this order for this warehouse, how can i assign the order? Did you get my point?
    – zus
    Oct 25, 2017 at 4:25
  • No actually I don't. In your case 'warehouse' is a product attribute. How can you filter an order with multiple products with different warehouses? Oct 25, 2017 at 8:32
  • @YiorgosMoschovitis : Not for individual products, only order. if order placed admin point out this order to this warehouse, this is what i need.
    – zus
    Oct 25, 2017 at 9:46
  • If not possible, how can i achieved it, is any other possibilities exist. actually, i created column name on the table also, but not getting the result.
    – zus
    Oct 25, 2017 at 9:51


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.