Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

2 Category columns

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-25-2004, 01:47 AM
 
urch urch is offline
 

Newbie
  
Join Date: Mar 2004
Posts: 6
 

Default 2 Category columns

Hello,

Iam a total newbie to X-cart with a lot to learn from what I have read already in these forums.

After much searching it does not look like this situation has been discussed before...

I would like to create 2 category colums and around 8 rows on the left hand side of the page.

I have already purchased the xcart addon for graphic buttons.

Can someone please point me in the right direction please?

Thanks in advance.
Reply With Quote
  #2  
Old 04-25-2004, 12:46 PM
 
defibcentral defibcentral is offline
 

Newbie
  
Join Date: Mar 2004
Posts: 7
 

Default Duplicating Categories

I'm looking for the same procedure. I want to add an additional category under the original products category. I know how to get the "Category.tpl" to work under the original, but there is a cloning problem. I don't know what code to change to get the category independent of the original.

Duncan
Reply With Quote
  #3  
Old 04-26-2004, 01:50 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

http://forum.x-cart.com/viewtopic.php?t=1326
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #4  
Old 04-26-2004, 03:04 AM
 
urch urch is offline
 

Newbie
  
Join Date: Mar 2004
Posts: 6
 

Default

Thanks for your post B00MER but the link to the post you provided is for subcategories in multiple columns.

What I require is the MAIN categories in 2 columns and multiple rows. Incidently I will be using images for the category buttons that is why I brought the Fancy image add on.

Cheers
Reply With Quote
  #5  
Old 04-11-2005, 04:19 AM
 
mffowler mffowler is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Melbourne, Australia
Posts: 811
 

Default

Boomer's code was correct for root categories if you just remove the "sub" text. I haven't added the {else} option if you show subcategories in the categories menu below root, but that seems simple enough. Here's the basic code.

Multiple columns of root categories:
Code:
{* $Id: categories.tpl,v 1.23 2004/06/24 09:53:29 max Exp $ *} {capture name=menu} {* first coloumn *} <TABLE width="100%"><TR><TD valign="top" width="50%"> {section name=cat_num loop=$categories start=0 step=2} {math equation="x/2" x=$smarty.section.cat_num.max assign="counter"} {if %cat_num.first%} <table border=0 width="100%" cellspacing=5><tr> {/if} <td width="50%">{$categories[cat_num].category} </td> </tr><tr> { if %cat_num.last% } </tr></table> {/if} {/section} {* 2nd coloumn *} </TD><TD valign="top" width="50%"> {section name=cat_num loop=$categories start=1 step=2} {math equation="x/2" x=$smarty.section.cat_num.max assign="counter"} {if %cat_num.first%} <table border=0 width="100%" cellspacing=5><tr> {/if} <td width="50%">{$categories[cat_num].category} </td> </tr><tr> { if %cat_num.last% } </tr></table> {/if} {/section} </TD></TR></TABLE> {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu }
__________________
4.1.9
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:58 AM.

   

 
X-Cart forums © 2001-2020