Monday 16 February 2015

Show Address Fields in Customer Registration - Magento

show address field in signup form magento

In order to show address fields in Magento customer registration forms you only need to enable the attribute 
setShowAddressField.

To do so either add the following in your template local.xml(/app/design/frontend/base/default/layout/local.xml):
1
2
3
4
5
6
<customer_account_create>
  <reference name="customer_form_register">  
    <action method="setShowAddressFields">
      <param>true</param></action>   
  </reference>
</customer_account_create>
As always, make sure to reload your cache afterwards.
This setting will enable to execution of
1
<?php if($this->getShowAddressFields()): ?>
in register.phtml (/app/design/frontend/base/default/template/customer/form/register.phtml).

1 comment

  1. You will then see a page for installing the theme. On this page, you need to select the theme from the list. After selecting the theme, you can continue with the installation process. If you are curious to know more about magento commerce, here you can get more information about it.

    ReplyDelete

Fix The Magento. All rights reserved. ©