View Single Post
  #2  
Old 11-22-2004, 03:58 PM
 
Professor_Kan Professor_Kan is offline
 

Member
  
Join Date: Oct 2004
Posts: 21
 

Default

Hello,

I have changed the product options from the default drop down menu to a radio button menu. Now the values can't be passed to the shopping cart.


File: customer_options.tpl
Location: /html/skin1/modules/Product_Options



------------------------- original code ----------------------------

<select name="{$poname}"{if $disable} disabled{/if}>
{section name=option loop=$options}
<option value={$smarty.section.option.index}{if $options[option].selected ne ""} selected{/if}>{$options[option].option}{if $options[option].surcharge ne 0} ({$options[option].surcharge|value_sign:"1"}{if $options[option].type eq "absolute"}{$config.General.currency_symbol}{$opti ons[option].surcharge|abs_value}{else}{$options[option].surcharge|abs_value}%{/if}){/if}</option>
{/section}

------------------------- end original code ----------------------------




------------------------- radio button code ----------------------------
{section name=option loop=$options}

<input type="radio" value="{ $options[option].option }" name="{ $product_options[product_option].opttext }"
{if $options[option].selected ne "checked"} {/if} >

{$options[option].option}{if $options[option].surcharge ne 0} ({$options[option].surcharge|value_sign:"1"}
{if $options[option].type eq "absolute"}{$config.General.currency_symbol}{$opti ons[option].surcharge|abs_value}
{else}{$options[option].surcharge|abs_value}%{/if}){/if}
</option>


</select>
{/section}

------------------------- end radio button code ----------------------------
__________________
168
Reply With Quote