I want to show Telephone and Company field on my Registration form, that is already achieved. For that I just put the fields out from this condition:

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

in register.phtml


After this the fields are visible but the issue is, when I submit my form it shows error for other address fields like city, street, zip etc, which is not on my registration form.

  • You have to create customer attribute to achieve this. – Soumik Rana Jun 14 '17 at 7:43
  • @SoumikRana, This field is already present in magento and it is easy to display it but the issue is saving and the other fields validations that are showing when I set this <?php $this->getShowAddressFields(true) ?> – Yogita Jun 14 '17 at 12:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.