Posts Tagged ‘Order attribute’

If you want in create Order Attribute in Magento 1.4.* ..
Here is the code ..

Run this code once

$installer = Mage::getModel('eav/entity_setup');
$installer->addAttribute(ORDER TYPE ID, 'YOUR ATTRIBUTE NAME', array('type' => 'int'));

if you want to find Order_type_id for you site
look in eav_entity_type table .. you can find order_type_id..

add a filed in sales_flat_order table …

now save the value ….
Keep Rocking …
Bijal Bhavsar :)—