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:
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
Post a Comment