I want to add an attribute to order that will not be visible to customer. I just want to use it in database and storing a specific value for each order. I want to print order according to this value. So how can i add an order attribute in magento. The attribute is just like status of order. Further on if i want to show that attribute in admin/sales/orders how can i do that?
Share
Assuming that you want to add
my_custom_input_fieldto your order and add a field to your admin create order page (to add the field to the frontend you just need to add the input field to the front template and double check the observer)In /app/code/local/MageIgniter/CustomOrderStatus/etc/config.xml
In /app/code/local/MageIgniter/CustomOrderStatus/sql/customorderstatus_setup/mysql4-install-1.1.php
In /app/code/local/MageIgniter/CustomOrderStatus/Model/Observer.php
(You should avoid make changes to core default – you should do some research on way around this)
In /app/design/adminhtml/default/default/template/sales/order/view/info.phtml
In /app/design/adminhtml/default/default/template/sales/order/create/form/account.phtml
(to add to frontend change the
value="<?php echo Mage...>")