add attribute to order magento. Thêm mới attribute cho order magento

1.) Create a file at app/etc/modules/ and name it whatever you want. I will name it Long_Custom.xml
Paste this code in that file:

in this file /app/code/local/Long/Custom/etc/config.xml

and create this file /app/code/local/Long/Custom/sql/custom_setup/install-0.1.0.php and add this code below on it

 

Try it and comment here if you have any question

 

 

You may also like...

1 Response

  1. long says:

    If you can’t save data to new attribute in database. Don’t forget force clear cache though you disable cache in admin. Need clear by delete cache folder and it will work

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">