ecshop classification tree displays solutions for all categories. Friends in need can refer to this article.
The solution is as follows:
For example, in goods.php,
代码如下 | 复制代码 |
$smarty->assign('categories', get_categories_tree()); // 分类树 |
About line 128. Just look for it
Will
The code is as follows
|
Copy code
|
||||||||||||
$smarty->assign('categories' , get_categories_tree($goods['cat_id']));
changed to
The main thing is to remove goods['cat_id'] or the obtained ID! Afterwards clear the cache and check the frontend to see if it has changed
$parent_id = $GLOBALS['db']->getOne($sql); http://www.bkjia.com/PHPjc/632193.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632193.htmlTechArticleecshop classification tree displays all classification solutions. Friends in need can refer to this article. The solution is as follows: For example, in goods.php, the code is as follows Copy the code $smarty-assig... |