无法禁用magento中的根类别链接

时间:2014-04-21 12:43:35

标签: php magento

我在我的magento中使用pagaya theme-003。我想要禁用根类别链接,我尝试了所有的事情,但我仍然无法禁用链接, 我在navigation.php。

中注释掉了以下内容
   // $html[] = '<a href="'.$this->getCategoryUrl($category).'"'.$linkClass.'>';
   // $html[] = '<span>' . $this->escapeHtml($category->getName()) . '</span>';
   // $html[] = '</a>';

链接未被禁用。

我也试过在url.php

中注释掉以下几行
//if (null === $parentPath) {
//    $parentPath = $this->getResource()->getCategoryParentPath($category);
//}
//elseif ($parentPath == '/') {
    $parentPath = '';
//}

我在远程网站上遇到此问题。请帮帮我。

0 个答案:

没有答案