Hi , i don't choose radio because it's for add many choice of option (ingredients for pizza)
base marguerita with tomatoes and cheese. custommers can add :
chicken +.50€
merguez +.50€
mozzarella +.50€
potatoes +.50€
one checkbox for one choice
option type feature in 2004 for creload 6.2 work correctly (i can show you my first website )
how modify script for see many checkbox
my code
case OPTIONS_TYPE_CHECKBOX:
$products_options = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$product_info['products_id'] . "' and pa.options_id = '" . $ProdOpt_ID . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . $languages_id . "'");
while ($products_options_value = tep_db_fetch_array($products_options)) {
$tmp_html = tep_draw_checkbox_field('id[' . $ProdOpt_ID . ']', $products_options_value['products_options_values_id']);
$tmp_html .= $products_options_value['products_options_values_name'];
if ($products_options_value['options_values_price'] != '0') {
$tmp_html .= ' (' . $products_options_value['price_prefix'] . $currencies->display_price($products_options_value['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';
}
}
?>
<tr>
<td class="main"><?php echo $ProdOpt_Name . ' :<br><small>' . $ProdOpt_Comment . '</small>'; ?></td>
<td class="main"><?php echo $tmp_html; ?></td>
</tr> <?php
break;
work correcty : show name of choice , comment and price , all add in shopping cart no problem but i see only the last choice
Thanks for read