View Single Post
  #109  
Old 11-10-2005, 12:45 PM
 
Sonia Sonia is offline
 

Advanced Member
  
Join Date: Feb 2005
Posts: 72
 

Default

Quote:
Originally Posted by Arton
has anyone got an example with subcategories in a 3 column layout with an image for each sub-cat with name and product count below the image, using the above mod?

I didn't see an answer for this, and I just figured it out, so I thought I would share in case others want it too. I used WECKS change to the subcategories.tpl file posted here: http://forum.x-cart.com/viewtopic.php?p=78344#78344. To change the format to 3 columns I did the following:

on line 21 I changed this bit from:
Code:
{ if %cat_num.index% is div by 2}
to
Code:
{ if %cat_num.index% is div by 3}

Just so it looked better, on line 24, within the <TD> tags, I added width="33%".

I couldn't believe it was so simple. :P
__________________
Sonia

www.vidaville.com
Xcart Gold 4.0.16
platform - Windows
Reply With Quote