How can we create a custom "twitter handle" field in a registration form?
Answer Posted / Hariom Mishra
To add a custom Twitter Handle field to the Magento registration form, you'll need to override the `customer_account_create` template. Here are the steps:n1. Copy the original `customer_account_create` file from `app/design/frontend/base/default/template/persistent/account/create.phtml` to your theme folder.n2. In the copied file, add a new input field for the Twitter Handle:n```n<div class="fields-group">n <div class="fields-wrap">n <div class="fieldset" id="customer_form_register">n <!-- Existing code -->n <div class="fields-group">n <div class="fields-wrap">n <div class="fieldset">n <h2 class="legend">n <span>Twitter Handle</span>n </h2>n <div class="field field-name-twitter_handle validate-validate-zero-length required-entry">n <input type="text" name="twitter_handle" id="twitter_handle" title="Twitter Handle" value="" class="input-text" />n </div>n </div>n </div>n </div>n </div>n </div>n</div>n```n3. Customize the validation rules if needed.n4. Don't forget to clear Magento cache after making changes.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers