2010-09-01 59 views

回答

-2

這項工作?根本沒有拿到信用。我要尋找一個解決方案,以及發現它(可能)在www.n2ndevelopers.com

http://www.n2ndevelopers.com/magento/how-to-remove-parent-category-path-from-sub-category-url-in-magento/

轉到應用程序/代碼/核心/法師/目錄/型號/

打開網址。 php並轉到632行並發表評論(//)以下行

//if (null === $parentPath) { 
//$parentPath = $this->getResource()->getCategoryParentPath($category); 
//} 
//elseif ($parentPath == '/') { 
$parentPath = ''; //('Don't comment it') 
//} 

現在保存並上傳它。

現在登錄到您的網站的管理面板,然後進入系統 - >配置 - >索引管理,然後點擊全選,然後從操作下拉菜單中選擇重建索引數據,然後點擊提交。

現在刷新您的緩存以查看效果。

+2

修改內核不是一個好主意。 – Alex 2012-07-04 11:48:59

相關問題