View Single Post
  #7  
Old 06-06-2008, 04:42 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Display Sub Categories in 2 or 3 column + Pic

Quote:
Originally Posted by chealyte
can i know which file(s) exacly that i should modify and add the code to it ?

"skin1/customer/main/subcategories.tpl"

Find in the file the following code and replace at that what you wrote above.

PHP Code:
.......
<
table cellspacing="5" width="100%">
{foreach 
from=$subcategories item=subcat}
<
tr>
{if 
$tmp and $first_subcat ne "Y"}
    <
td valign="top" rowspan="{count value=$subcategories print="Y"}"><img src="{if $current_category.icon_url}{$current_category.icon_url}{else}{$xcart_web_dir}/image.php?id={$cat}&amp;type=C{/if}" alt="" /></td>
{
assign var="first_subcat" value="Y"}
{/if}
    <
td class="SubcatTitle"><a href="home.php?cat={ $subcat.categoryid }"><font class="ItemsList">{ $subcat.category|escape }</font></a><br /></td>
    <
td class="SubcatInfo">{if $config.Appearance.count_products eq "Y"}
{if 
$subcat.product_count}{ $subcat.product_count } {$lng.lbl_products}
{elseif 
$subcat.subcategory_count}{ $subcat.subcategory_count } {$lng.lbl_categories|lower}
{/if}
    {/if}</
td>
</
tr>
{/foreach}
</
table>
....... 
Reply With Quote