我目前正在尝试在我的过滤器中显示第三级类别,这是网站http://yaubrothers.xist2test.com/index.php/products.html。如何显示Magento中的第三级别类别?
我想显示子类别的子类别为下拉菜单吗?
谢谢
<?php if($this->canShowBlock()): ?>
<div class="block block-layered-nav<?php if (!$this->getLayer()->getState()->getFilters()): ?> block-layered-nav--no-filters<?php endif; ?>">
<div class="block-title">
<strong><span><?php echo $this->__('Shop By') ?></span></strong>
</div>
<div class="block-content toggle-content">
<?php echo $this->getStateHtml() ?>
<?php if ($this->getLayer()->getState()->getFilters()): ?>
<div class="actions"><a href="<?php echo $this->getClearUrl() ?>"><?php echo $this->__('Clear All') ?></a></div>
<?php endif; ?>
<?php if($this->canShowOptions()): ?>
<p class="block-subtitle block-subtitle--filter"><?php echo $this->__('Filter') ?></p>
<dl id="narrow-by-list">
<?php $_filters = $this->getFilters() ?>
<?php foreach ($_filters as $_filter): ?>
<?php if($_filter->getItemsCount()): ?>
<dt><?php echo $this->__($_filter->getName()) ?></dt>
<dd><?php echo $_filter->getHtml() ?></dd>
<?php endif; ?>
<?php endforeach; ?>
</dl>
<script type="text/javascript">decorateDataList('narrow-by-list')</script>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
你能告诉你相关的代码? –
我已添加代码 – soy
我没有任何错误,如果您点击网页链接并点击过滤器类别,然后点击面条就是我要显示第三级类别的位置,而不是发生了什么情况你点击面条,它会把你带到面条产品,如果你再次点击类别,这是你会发现第三级的地方。希望这个清楚。 – soy