View Single Post
  #1  
Old 12-09-2010, 05:27 AM
 
bjt bjt is offline
 

Advanced Member
  
Join Date: Jul 2008
Location: Vietnam
Posts: 32
 

Default Add radio button choice in New Profile page

My customer wants to give away a free product upon a new user registering. I've added a custom field entitled "Free gift" and made it a select box with two choices.
What I'd really like to do is make the choices radio buttons instead and include an image of the two products.
So far I have tried adding the two images and the following in the register_additional_info.tpl

<tr>
{foreach from=$v.varients item=o}
<td align="center"><input type="radio" name="additional_values[{$v.fieldid}]" id="additional_values_{$v.fieldid}" value='{$o|escape}'{if $v.value eq $o} checked="checked"{/if}>{$o|escape}
{/foreach}
</tr>

I've basically copied the structure from the code to use a select box, but so far no luck in getting the radio buttons to display. Using standard select box works fine. Any help would be much appreciated.

Cheers,

Brett
__________________
X-Cart Gold 4.3.2 (Windows)
X-Cart Gold Plus 4.6.1 (Linux)
Magic Toolbox slider and zoom
Reply With Quote