How do I Add Sub Category Images to my Cart
Posted by Michael G.K on 30 August 2008 05:41 AM

Edit following file and look for '{$subcat.name|htmlspecialchars}'
content\skins\flat\catalog.html

Add following code right after '{$subcat.name|htmlspecialchars}'
<br>
            <img src="{$subcat.img}" alt="{$subcat.name|htmlspecialchars}" width="{$CatalogThumbSize}"

(142 vote(s))
Helpful
Not helpful

Comments (2)
Chris Maddock
05 September 2008 02:47 AM
Sensational. This was exactly what I was looking for
Chris Maddock
05 September 2008 02:54 AM
If you dont have an image for every sub category, then it does look so good. I modified the code to the following and it checks to see if an image exists before displaying it:

{if $subcat.img}
<img src="{$subcat.img}" alt="{$subcat.name|htmlspecialchars}" width="{$CatalogThumbSize}"
<BR>
{/if}
{$subcat.name|htmlspecialchars}</a></td>
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).