Just another WordPress.com weblog

Posts tagged ‘Order attribute’

Magento :: Create 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 …
Vishal Surani —