最模板 - 外贸网站建设,外贸网站模板

最模板

当前位置: 首页 > ZenCart > ZenCart教程 >

zencart产品属性dropmenu select只有一个选择项时自动变成radio单选的解决办法

时间:2014-09-27 10:47来源:未知 作者:最模板zuimoban 点击:
includes\modules\classic\attributes.php 在大约786行代码 case ( $products_options -RecordCount() == 1): 的下面找到 $options_menu [] = zen_draw_radio_field(id[ . $products_options_names -fields[products_options_id] . ], $products_o

includes\modules\classic\attributes.php

在大约786行代码 

case ($products_options->RecordCount() == 1):

 

的下面找到 

$options_menu[] = zen_draw_radio_field('id[' . $products_options_names->fields['products_options_id'] . ']', $products_options_value_id, 'selected', 'id="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id . '"') . '<label class="attribsRadioButton" for="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id . '">' . $products_options_details . '</label>' . "\n";

 

替换为 

$options_menu[] = zen_draw_pull_down_menu('id[' . $products_options_names->fields['products_options_id'] . ']', $products_options_array, $selected_attribute, 'id="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '"') . "\n";

 

即可。

(责任编辑:最模板)
------分隔线----------------------------
栏目列表
推荐内容