Magento – Address / Show address fields in the customer registration

Picture

We needed for a project already in the registration form to display the address data such as street, Postal code and city.

There are several ways to make these fields show. The simplest was the register.phtml to open (put in your own template folder: app / design / frontend / User Template / Custom template / template / persistent / customer / form )

and there then the line (as. 71)

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

and line (as. 145)

<?php endif; ?>

remove.

Then those mentioned in the register.phtml address fields are displayed. One can here then adjust the order of the same, that e.g.. the ZIP code is, and before the place is not behind.

If you have in the back off the display of the state, one will notice, that this form thereof is not impressed and at least the title indicates. but you just can simply throw out the state-Partenkirchen from PHTML and later receives no problems. This is of course only, if you NEVER need the State.

Used in Magento versions 1.4 – 1.9 Comments? Additions? Notes? Gladly!

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

Leave a Reply

Your email address will not be published. Required fields are marked *