我做了一个下拉列表过滤类别
大约在app /德兴/前端线50 /您/主题/模板/目录/产品/列表/ toolbar.phtml 如果更换内部
所有代码
对于
<!--Filter by Categories-->
<?php
$_helper = Mage::helper('catalog/category');
$_categories = $_helper->getStoreCategories();
$currentCategory = Mage::registry('current_category');
?>
<div class="block block-list block-categorys">
<div class="block-content">
<ul class="category_sub">
<?php if (count($_categories) > 0){ ?>
<?php
global $index;
global $data;
?>
<!-- necesary -->
<select onchange="setLocation(this.value)">
<option selected ="selected"><?php echo $this->__('Categories') ?></option>
<?php foreach($_categories as $_category){ ?>
<option value="<?php echo $_helper->getCategoryUrl($_category) ?>"><?php echo $_category->getName();?></option>
<?php } ?>
</select>
<?php } ?>
</ul>
</div>
</div>
希望你觉得它有用
看看这个博客帖子 - http://www.sharpdotinc.com/mdost/2009/04/06/magento-getting-product-attributes-v alues-和标签/ –