I have tried to do it in register.phtml, but it did't working for me. I can't find local.xml file too.

How i can enable it? This is really important thing in my shop.

  • have find this code <?php if($this->getShowAddressFields()): ?> at register.phtml
    – Amit Bera
    Commented Jan 26, 2015 at 15:24
  • i find this but what i should do?
    – Yardi
    Commented Jan 26, 2015 at 15:26
  • just remove this if coditions if($this->getShowAddressFields()): code now it show all address field in form
    – Amit Bera
    Commented Jan 26, 2015 at 15:58
  • @AmitBera I discourage this approach, Reindex'EmAll's answer is a more appropriate approach. Commented Jan 27, 2015 at 23:22
  • @Yardi local.xml should exist in app/design/frontend/{PACKAGE_NAME}/{THEME_NAME}/layout/local.xml. Package name is most likely either "default" or "rwd" depending on your Magento version. The theme name will be unique to your site (something other than "default"). If you have not setup your site to extend the default theme then you should probably read up on that topic before making further changes to Magento's core view scripts. Commented Jan 27, 2015 at 23:25

3 Answers 3


Create local.xml file (if it does not exist already) in [your_package]/[your_theme]/layout/ folder and add following code:

    <reference name="customer_form_register">
        <action method="setData"><key>show_address_fields</key><value>1</value></action>
  • Hey, you have an good and awesome xml knowledge.Hats off
    – Amit Bera
    Commented Jan 28, 2015 at 14:52
  • This should be marked as the answer.
    – janw
    Commented Dec 14, 2015 at 13:32
  • I agree and voted on this. This is the faster solution.
    – KiD Cajes
    Commented May 18, 2016 at 9:25
  • Wow, +1 from me, Its worked. Good Thank you Commented Mar 1, 2017 at 12:23
  • +1 from me. I thought, this getShowAddressFields() is checking some settings in backend, but couldn't find it anywhere. Any idea why it had to be from xml, but not from config? Commented Feb 13, 2018 at 0:43


At First From magento admin developer mode on & find the registration from path as like




 <?php if($this->getShowAddressFields()): ?>

Just before add following line

<?php $this->setShowAddressFields(true) ?>


This following change as like as below

<?php $this->setShowAddressFields(true) ?>

<?php if($this->getShowAddressFields()): ?>

Create local.xml file in your theme layout folder and put below code.

<reference name="customer_form_register"> 
  <action method="setShowAddressFields">

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.