我有Sellya主题,我想删除类别顶部菜单中产品旁边的计数器。
请看这里:http://twsgs.com
我在底部看到了一个解决方案,它看起来是这样的:
First change:
Open category.php with your preferred editor on => catalog/controller/module/category.php
Go to the line 49: 'name' => $child['name'] . ' (' . $product_total . ')'
Change it to: 'name' => $child['name'],// . ' (' . $product_total . ')'
Go to line 71: 'name' => $category['name'] . ' (' . $product_total . ')',
Change it to: 'name' => $category['name'],// . ' (' . $product_total . ')',
Second change:
Open category.php on => catalog/controller/product/category.php
Go to line 137: 'name' => $result['name'] . ' (' . $product_total . ')',
Change it to: 'name' => $result['name'],// . ' (' . $product_total . ')',
Third change:
Open category.php on => catalog/controller/common/header.php
Go to line: 'name' => $child['name'] . ' (' . $product_total . ')';
Change it to: 'name' => $child['name'];// . ' (' . $product_total . ')';
,但它部分有效。
在header.php(在控制器/common目录)和category.php(在控制器/product目录)上也有问题,所以我插入了我的备份文件。
我的openart版本是1.5.5.1
我怎么解决这个问题?
您可以在管理中编辑一个适当的选项:System
-> Settings
-> edit Your store settings ->选项卡Options
并找到一个名为Category product count
或类似的选项->检查值No并保存
或者这个扩展可能会使用:类别产品计数删除。