zencart一二级分类直接显示,三级右飘显示

zencart一二级分类直接显示,三级右飘显示
让zencart一二级分类直接显示,三级右飘显示打开文件’includes/classes/category_tree.php’,

1)查找代码

把 if (zen_not_null($cPath)) {

改为 if (zen_not_null($cPath) or 1) {

2)在一下两行代码之间插入新代码

原代码:

reset($cPath_array);

while (list($key, $value) = each($cPath_array)) {

在上面两行代码之间插入:

$cPath_array = array(#,#);

#代表你想要展开的分类id。

标签


Warning: error_log(/www/wwwroot/www.ctrol.cn/wp-content/plugins/spider-analyser/#log/log-0213.txt): failed to open stream: No such file or directory in /www/wwwroot/www.ctrol.cn/wp-content/plugins/spider-analyser/spider.class.php on line 2900