Okay
  Public Ticket #2470189
Signup Page
Closed

Comments

  •  3
    mohammad started the conversation

    Hi,

    We are working on updating the design of the sign up page.

    Is it possible to change the gender to be radio buttons instead of droplist?

    Please advise the method, but dont apply it.

  • [deleted] replied

    Dear mohammad,

    Magento uses widgets on registration form. In fact in template register.phtml you can see lines:

    4224231489.png

    This particular widget can be found in template/customer/widget directory. So in order to change select into radio buttons, copy it (template) to your theme and modify, e.g.: 

    <div class="input-box">    
    <label><?php echo $this->__('Gender'); ?></label>    
    <?php $options = Mage::getResourceSingleton('customer/customer')->getAttribute('gender')->getSource()->getAllOptions();?>    
    <?php $value = $this->getGender();?>    
    <?php foreach ($options as $option):?>   
    <input type="radio" name="<?php echo $this->getFieldName('gender')?>" value="<?php echo $option['value'] ?>"<?php if ($option['value'] == $value) echo ' selected="selected"' ?> /><?php echo $option['label'] ?>    <br />    
    <?php endforeach;?>
    </div>


    Hope it help you.

    Thanks!.