1.将install.sql导入数据库,这样后台会多出一个List的属性项
2.检查模板是否引入了jquery,如果没有可以在includes\templates\你的模板\common\html_header.php
<link rel="canonical" href="<?php echo $canonicalLink; ?>" />
<?php } ?>
下引入google的jquery库
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
3.检查includes\modules\你的模板\attributes.php是否做过修改,如果以前做过修改,删除插件中对应的attributes.php文件
打开你自己的attributes.php文件
查找
$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";
替换为
if($products_options_names->fields['products_options_type']==6){
$options_menu[] = zen_list_menu('id[' . $products_options_names->fields['products_options_id'] . ']', $products_options_array, $products_options_names->fields['products_options_id'],$products_options_names->fields['products_options_name']) . "\n";
}else{
$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";
}
否则跳过此步
评论