View Single Post
  #4  
Old June 16th, 2012, 12:59 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

If you add a Category List module to your store's front page Default view and then add the following HTML code to the Category List module, you should have category images appearing:

HTML Code:
[category.list id='dfcatcol1' before='<div class="cl">' after='</div>']
	<div class="cell col2">
		<div class="bdr">
			<?php if ($category->image) { ?>
				<img src="[category.image]" alt="[category.name]" style="float:left;margin:0 10px 10px 0; width:100px;" />
			<?php } elseif ($category->thumbnail) { ?>
				<img src="[category.thumbnail]" alt="[category.name]" style="float:left;margin:0 10px 10px 0; width:100px;" />
			<?php } ?>
			<a href="[category.link]" title="[category.name]">[category.name]</a>
			<br />
			<div class="catdesc">[category.description]</div>
		</div>
	</div>
[/category.list]
Eric