El atributo de cliente personalizado de Magento no está visible en Frontened

I created a module to add a custom attribute for customer registration and other forms.It is visible on backend but not visible on frontend.I want to show it on all forms on frontend.

I used it from this link: http://www.silksoftware.com/magento-module-creator/

preguntado el 28 de mayo de 14 a las 12:05

Where do you want to show that customer attribute and what is your attribute_code ? -

Want to show on customer registration form and attribute code is weedpreference -

Do you see the attribute id of attribute_code weedpreference para el campo form_code customer_account_create en tu customer_form_attribute mesa ? -

yes it is present there -

Asegúrate de leer is_visible field value for your attribute in customer_eav_attribute mesa -

1 Respuestas

Just added the fields into register.phtml template like:

<div class="input-box">
       <input type="text" name="driver_license_number" id="driver_license_number" value="" title="<?php echo $this->__('Driver License Number') ?>" class="input-text"/>

Just take care about name,name must be same as your attribute code.

Respondido el 05 de junio de 14 a las 13:06

How do I do this by not editing the base template. From my module itself. - Harish Ninge Gowda

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.