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

Horizontal Sub Category

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-17-2006, 10:31 PM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default Horizontal Sub Category

Hello,
I tried following code to list subcategories in horizontal instead vertical.

Code:
{if $subcategories} <TABLE border="0" cellspacing="5" width="100%"> {foreach from=$subcategories item=subcat} <Td> {if $tmp and $first_subcat ne "Y"} <TD valign="top" rowspan="{count value=$subcategories print="Y"}">[img]{if $current_category.icon_url}{$current_category.icon_url}{else}{$xcart_web_dir}/icon.php?categoryid={$cat}{/if}[/img]</TD> {assign var="first_subcat" value="Y"} {/if} <TD align="left" width="95%"><FONT class="ItemsList">{ $subcat.category|escape }</FONT> </TD> <TD align="left" nowrap><FONT class="Text">{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}</FONT></TD> </Td> {/foreach} </TABLE> {/if}



It does show it them horizontal, only thing I am not able to figure out is -


Category 1-----space----- category 2-----category 3-----category 4


It shows lot of space between category 1 and category 2.

Any Idea how to fix it? thanks
__________________
X-Cart Version 4.1.8
Hosted on Linux
Reply With Quote
  #2  
Old 04-18-2006, 03:08 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Moving to template editing.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 05-23-2006, 01:45 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

Im trying to do the exact same thing today - did you figure it out???
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #4  
Old 05-23-2006, 03:10 AM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default

no... didn't try much after that.

may be placing code out side table might work.
__________________
X-Cart Version 4.1.8
Hosted on Linux
Reply With Quote
  #5  
Old 05-23-2006, 03:12 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

k, just getting x-cart to look at it for me (support points are handy things )
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:04 PM.

   

 
X-Cart forums © 2001-2020