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 *

WordPress database error: [Column 'referer' cannot be null]
INSERT INTO `wp_power_stats_visits` (`date`, `time`, `ip`, `country`, `device`, `referer`, `browser`, `browser_version`, `is_search_engine`, `user_agent`, `is_bot`, `os`) VALUES ('2019-08-26', '2019-08-26 09:54:58', '', 'US', 'desktop', NULL, NULL, '', '', 'CCBot/2.0 (', '', '')