Magento new custom order line "qty" field -


magento has following standard "qty" fields; each order lines (for example):

[qty_canceled] => 0.0000 [qty_invoiced] => 1.0000 [qty_ordered] => 1.0000 [qty_refunded] => 0.0000 [qty_shipped] => 1.0000 

on order view, can see this:

enter image description here i'd add new custom field called qty_allocated

this new field going used 3rd party integration automated order processing , don't want use official qty fields.

does know if possible? if so, how can go achieving this? need able display/update field on magento.

thanks in advance tips/guides.

an example creating attrtibute order item:

$installer = new mage_sales_model_resource_setup('core_setup');  $installer ->addattribute('order_item', 'qty_allocated', array(     'label'     => 'qty allocated',     'type'      => 'varchar',     'input'     => 'text',     'visible'   => true,     'required'  => false,     'position'  => 10, )); //$installer->endsetup(); 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -