Magento 1.6 - Adding Custom Fields for Registration Page

后端 未结 2 526
后悔当初
后悔当初 2021-01-24 23:51

I want to modify the registration page to add custom fields which would potentially include

  • Address Details

    • Address Line 1
    • Address Line 2
2条回答
  •  伪装坚强ぢ
    2021-01-25 00:05

    There are a ton of extensions to let this happen. My philosophy is to start looking at extensions before trying to code anything in magento. Is especially helpful when an upgrade breaks something; they'll usually fix upgrade problems that clearly affect their own extensions for free.

    To elaborate, I hand rolled some code in the contact form to add google re-capcha as well as to have customers select from existing product attributes (vehicle year, make, model). I was eventually able to figure out how to have these reflect in the emails we get from the contact form, however, there is no database persistence, which is the proper solution. Further, mucking about in the code quickly and easily breaks Magento in unexpected and surprising ways, hence why my normal Magento reply on here is to strongly urge people to buy extensions. If you're asking the kind of questions like I would ask, you don't know enough to make a professional extension... buy a few proper extensions, analyze them, spend lots of time trying to figure it out.

    Any more there are plenty of extensions competing to do the same tasks, so there should be something already working to do what you want.

提交回复
热议问题