Magento品牌商店

bla*_*aps 1 magento

我想在导航中添加品牌商店.这是我的代码

<?php
$product=Mage::getModel('catalog/product');
$attributeInfo=Mage::getResourceModel('eav/entity_attribute_collection')->addFieldToFilter('attribute_code','shoe_type')->load(false);
$attribute=$attributeInfo->getFirstItem()->setEntity($product->getResource());
$shoes=$attribute->getSource()->getAllOptions(false);
$url='catalogsearch/result/?q=';
foreach($shoes as $shoe):
    $val=$shoe['label'];
?>
    <a href="<?php echo Mage::getURL().$url.$val?>"><?php echo $shoe['label']?></a>
<?php endforeach;?>
Run Code Online (Sandbox Code Playgroud)

显然,输出将我带到搜索结果页面,该页面显示为品牌http://img820.imageshack.us/img820/7303/searchd.jpg的搜索结果.但我想要没有文字的结果页面search results for.

他们是否有任何其他方式在航海中展示品牌商店?任何帮助将不胜感激.

use*_*772 7

我个人更喜欢另一种方法,使品牌不是属性而是类别(例如,制作两个根类别"类别"和"品牌".一个将类别作为子类别和另一个品牌).