<?php $layer = Mage::getSingleton('catalog/layer'); $_category = $layer-&gt;getCurrentCategory();
 $_categories = $_category-&gt;getCollection()-&gt;addAttributeToSelect(array('url_key','name','image','all_children','is_anchor','description'))
 -&gt;addAttributeToFilter('is_active', 1)
 -&gt;addIdFilter($_category-&gt;getChildren())
 -&gt;setOrder('position', 'ASC')
 -&gt;joinUrlRewrite();
  ?>
<div class="listing-type-list catalog-listing">

&nbsp;
<ul class="clear">
 	<li style="list-style-type: none">
<ul class="clear"><?php foreach ($_categories as $_category): ?> <!?php if($_category-&gt;getIsActive()): ?>
 	<li>
<div class="subcat clearfix">

&nbsp;
<div class="subcat-image"><a title="&lt;?php echo $this-&gt;htmlEscape($_category-&gt;getName()) ?&gt;" href="&lt;?php echo $_category-&gt;getURL() ?&gt;"> <?php if($_category-&gt;getImageUrl() !== ""){?> <img src="&lt;?php echo $this-&gt;htmlEscape($_category-&gt;getImageUrl()) ?&gt;" alt="&lt;?php echo $this-&gt;htmlEscape($_category-&gt;getName()) ?&gt;" width="190" /> <?php } ?> </a></div>
&nbsp;
<div class="subcat-title-container"></div>
&nbsp;

</div>
&nbsp;</li>
</ul>
</li>
</ul>
&nbsp;

&nbsp;

</div>
Please login or Register to submit your answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.