Jump to content

[SOLVED] Home Category Question


Recommended Posts

Hi,

 

In home category page, it is showing all the subcategories of home with images. I would like to display this portion in header. Can any one help me how to do this??

 

I'm able to get the subcategory names... but not images. Screen shot attached....

 

Thanks,

Aditya

 

Hello All, finally, I have solved this on my own.. Here are the steps that I have followed..

Open "PATH_TO_YOUR_FOLDER/themes/THEME_NAME/header.tpl"

 

Paste the below code where ever you want in the header.tpl file

 

<div class="content-main">

<ul class="p-models">

{foreach from=$blockCategTree.children item=child name=blockCategTree}

<li>

<a href="{$child.link}">

<h3>{$child.name}</h3>

<img src="{$link->getCatImageLink($category->link_rewrite, $child.id, 'category')}" height="164" width="285"/>

</a>

</li>

{/foreach}

</ul>

</div>

 

post-317863-0-92260300-1327311626_thumb.jpg

 

Hope This helps some one...

 

Thanks,

Aditya

Edited by aditya369 (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...