| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Radio button help please | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Radio button help please
Cart v 3.4.x
I can't seem to get my radio button to select any values. Here is my code Code:
some help please?
__________________
168 |
|||||||
#2
|
|||||||
|
|||||||
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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|