View Single Post
  #243  
Old 01-06-2008, 09:23 PM
 
MoonDog MoonDog is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 93
 

Default Re: Mod for subcategories in columns with descriptions and icons

eurojet,

Quote:

i cant find xcart/include/catagories.php....

xcart is your root directory. Just look for the include folder and the catagores.php file should be in there.


jcgoldy,

Quote:

I was wondering if you could change it with the picture on the left and the name of the subcategory on the right, going down the page?

Just change the width and text-align code in your skin1/skin1.css file to this:
Code:
/* For subcategories in columns with descriptions and icons */ .ColumnTitles { TEXT-ALIGN: left; WIDTH: 100%; PADDING-LEFT: 5px; }

and replace the code from <table ..to...</table> in skin1/customer/main/subcategories.tpl with this:

Code:
<table cellspacing="5" width="100%" border="0"> <tr> {foreach from=$subcategories item=subcat} {if $tmp is div by 1} </tr> <tr><td colspan="1"></td></tr> <tr valign="top"> {/if} { if $tmp and $first_subcat ne "Y" } {assign var="tmp" value=0} {assign var="first_subcat" value="Y"} {/if} <td class="ColumnTitles" valign="top"> <a href="home.php?cat={ $subcat.categoryid }"><img src="{if $subcat.icon_url}{$subcat.icon_url}{else}{$xcart_web_dir}/default_image.gif{/if}" alt="" /> <font class="ItemsList">{ $subcat.category|escape }</font></a> {if $config.Appearance.count_products eq "Y"} {if $subcat.product_count}({ $subcat.product_count }) {elseif $subcat.subcategory_count}({ $subcat.subcategory_count }) {else} (0) {/if} {/if} {assign var="tmp" value=$tmp+1} {/foreach} </tr> </td> </table>

Make sure you also change the code in xcart/include/categories.php as noted in post #211.

I think that should do it.

- MoonDog -
__________________
X-CART Gold v4.1.8
Reply With Quote