2
votes

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/

1
Where do you want to show that customer attribute and what is your attribute_code ? - Slimshadddyyy
Want to show on customer registration form and attribute code is weedpreference - rohitnetgains
Do you see the attribute id of attribute_code weedpreference for the field form_code customer_account_create in your customer_form_attribute table ? - Slimshadddyyy
yes it is present there - rohitnetgains
Check the is_visible field value for your attribute in customer_eav_attribute table - Slimshadddyyy

1 Answers

1
votes

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"/>
  </div>

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