Magento - Add attribute to customer entity

后端 未结 1 675
借酒劲吻你
借酒劲吻你 2021-02-05 20:01

For two days I have been trying to add new customer attribute to the magento database. But it isn\'t working. I added a simple nickname input field

相关标签:
1条回答
  • 2021-02-05 20:38

    I edited your script and it worked fine for me, I can see new attribute in backed now.

    Replace this:

    $installer = $this;
    $installer->startSetup();
    
    $setup = new Mage_Eav_Model_Entity_Setup('core_setup');
    

    With this:

    $setup = new Mage_Eav_Model_Entity_Setup('core_setup');
    $setup->startSetup();
    
    0 讨论(0)
提交回复
热议问题