我目前正在嘗試在我的過濾器中顯示第三級類別,這是網站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