2013-04-08 62 views
1

我有Sellya主題,我想要刪除類別頂級菜單中產品旁邊的計數器。Opencart刪除類別頂級菜單中的計數器

在這裏看到: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

我該如何解決這個問題?

回答

7

你有一個合適的選項在管理編輯:System - >Settings - >編輯您的商店設置 - >選項卡Options並找到一個選項叫做Category product count或類似 - >檢查值沒有和保存。

或者,也許這個擴展將是有用的:Category Product Count Removal

+0

太棒了!這是正確的! – Rami 2013-04-08 15:40:41

+1

管理員建議很好。用戶不斷暗示​​可怕的開發者提供的擴展...... vQmod的擴展庫和「沒有碰到核心」的「怪異」只是讓我馬上就來。網站上的OpenCart擴展庫非常糟糕。圖形。審查制度。支付系統。開發人員的素質。支撐。我建議不要連接那裏。感謝管理方法。 – TheBlackBenzKid 2013-04-09 12:28:59

+0

@TheBlackBenzKid我贊同你關於OpenCart Extensions庫的幾乎所有內容。除了開發人員和支持 - 你不能用同一個筆刷繪製所有東西......我的擴展是(我相信:-))100%的工作,100%的測試,並且我給予100%的支持。傑伊吉爾福德,以及其他許多人......如果你討厭OpenCart,那麼它就是社區和它周圍的一切,那麼爲什麼你使用它呢?去完美的Magento或PrestaShop堅持,讓我們看看你會多快回來;-) – shadyyx 2013-04-09 21:01:45