我做了一個下拉列表過濾類別
大約在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-和標籤/ –