在最低的类别级别,我的边栏在Magento中消失。 Anchor对于我的所有类别都设置为“否”。最终,我想在侧栏上显示所有主要类别(显然是在每个产品页面上)以及主类别中的子类别。左边栏类别导航在Magento的最后一级类别页面上消失
不知道是什么问题。几乎所有的基础magento代码都有一些风格变化。任何帮助深表感谢!
<?php if (!Mage::registry('current_category')) return ?>
<?php $_categories = $this->getCurrentChildCategories() ?>
<?php $_count = is_array($_categories)?count($_categories):$_categories->count(); ?>
<?php if($_count): ?>
<aside id="sidebar">
<div class="sidebar-nav">
<h2><?php echo $this->__('Products') ?></h2>
<ul>
<?php foreach ($_categories as $_category): ?>
<?php if($_category->getIsActive()): ?>
<li>
<a href="<?php echo $this->getCategoryUrl($_category) ?>"<?php if ($this->isCategoryActive($_category)): ?> class="current"<?php endif; ?>><?php echo $this->htmlEscape($_category->getName()) ?></a> (<?php echo $_category->getProductCount() ?>)
</li>
<?php endif; ?>
<?php endforeach ?>
</ul>
</div>
<div class="sidebar-nav">
<h2 class="red">Holiday</h2>
<ul>
<li><a href="#">Christmas</a></li>
<li><a href="#">Halloween</a></li>
<li><a href="#">Thanksgiving</a></li>
<li><a href="#">Easter</a></li>
<li><a href="#">4th of July</a></li>
<li><a href="#">Valentine's Day</a></li>
</ul>
</div>
<div class="sidebar-nav">
<h2>About Us</h2>
<ul>
<li><a href="#">About Mary</a></li>
<li><a href="#">Press</a></li>
<li><a href="#">Licensing</a></li>
<li><a href="#">Shows</a></li>
<li><a href="#">Custom Work</a></li>
<li><a href="#">Contact Us</a></li>
<li><a href="#">Privacy Policy</a></li>
<li><a href="#">Terms & Conditions</a></li>
</ul>
</div>
<script type="text/javascript">decorateDataList('narrow-by-list2')</script>
<?php endif; ?>
</aside>
在哪里可以找到这个文件?在哪里改变这个? @Axel – Learner