<?php
$attributeInterests = Mage::getModel('eav/config')->getAttribute('catalog_product', 'brand');
$InterestsSize=$attributeInterests->getSource()->getAllOptions(true, true);
$InterestsSizeCount = count($InterestsSize);
$InterestsColumnCount = 6;
$ii=0;?>
<ul>
<?php
foreach ($attributeInterests->getSource()->getAllOptions(true, true) as $option){ ?>
<?php if($option['value'] > 0) { ?>
<li><a href="<?php echo $this->getUrl();?>catalogsearch/advanced/result/?flag=adv&description=&brand=<?php echo $option['value']; ?>"><span><?php echo $option['label']; ?></span> <img src="<?php echo $this->getSkinUrl();?>images/bg.png" alt="bg" width="188" height="28" /></a></li>
<?php } } ?>
</ul>
No comments:
Post a Comment