Opencart删除类别顶部菜单中的计数器

时间:2013-04-08 14:09:18

标签: php opencart

我有Sellya主题,我想删除顶级菜单中产品旁边的计数器。

见这里:http://twsgs.com

我在底部看到here一个解决方案,它看起来像那样:

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(在控制器/公共目录上)和category.php(在控制器/产品目录上)也有问题所以我插入我的备份文件。

我的Opencart版本是1.5.5.1

我该如何解决?

1 个答案:

答案 0 :(得分:7)

您可以在管理中进行编辑:System - > Settings - >修改您的商店设置 - >标签Options并找到名为Category product count或类似的选项 - >检查值并保存。

或许这个扩展名可能有用:Category Product Count Removal