我想在导航中添加品牌商店.这是我的代码
<?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
.
他们是否有任何其他方式在航海中展示品牌商店?任何帮助将不胜感激.