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).