Magento分层导航类别网址:链接不工作

时间:2013-12-23 07:59:55

标签: php .htaccess magento url-rewriting mage

filter.php文件中有一个代码

<?php foreach ($this->getItems() as $_item): ?>
<li>
    <?php if ($_item->getCount() > 0): ?>
    <a href="<?php echo $this->urlEscape($_item->getUrl()) ?>"><?php echo $_item->getLabel() ?></a>
    <?php else: echo $_item->getLabel() ?>
    <?php endif; ?>
    <?php if ($this->shouldDisplayProductCount()): ?>
    (<?php echo $_item->getCount() ?>)
    <?php endif; ?>
</li>
<?php endforeach ?>

点击类别链接时,它将转到下面提到的未指定路径

  

localhost / flowershop / index.php / #%21cat = 42 此类别正在通过getURL功能进行,但它没有带任何地方

与TOP Navigation相比,Category / Subcategory的每个链接都将使用URLkey html链接来修正路径,如下所述

  

本地主机/花店/ index.php的/葬礼-flowers.html。

我已经检查过重写URL规则以及.htaccess文件,但没有任何结果是好的。寻求完美的解决方案..

0 个答案:

没有答案