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

Subcategories in multiple rows vs single column

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-17-2008, 05:03 AM
  amenterprises's Avatar 
amenterprises amenterprises is offline
 

Member
  
Join Date: Mar 2006
Location: Western Sydney, Australia
Posts: 27
 

Question Subcategories in multiple rows vs single column

How do I change the dynamic listing of subcategories from a single column to multiple columns or across the page in rows?

http://www.yankeeroo.com/shop/home.php?cat=375 has close to 50 subcategories. The shopping system displays this in a single column on the left side of the page. I would like to change this to 4 or 5 columns of subcategories

eg:
XXXX XXXX XXXX XXXX XXXX
XXXX XXXX XXXX XXXX XXXX
XXXX XXXX XXXX XXXX XXXX
etc

How do I achieve this?

Thanks in advance
Anthony
__________________
YankeeRoo
Batteries, Battery Chargers & Precision Test and Measurement Equipment
http://www.yankeeroo.com

X-Cart components info:
X-Cart version 4,2,1
X-AOM
X-SpecialOffers
PHP 5.2.5
MySQL server 5.0.32-Debian_7etch5
Web server Zeus/4.3
Operation system Linux
Perl 5.008008
BCSE Order Processing Made Easy
BCSE Preorder/Backorder
Reply With Quote
  #2  
Old 07-17-2008, 05:21 AM
 
balinor balinor is offline
 

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

Default Re: Subcategories in multiple rows vs single column

http://forum.x-cart.com/showthread.php?t=3848&highlight=sub+categories+ico ns
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-17-2008, 05:45 AM
  amenterprises's Avatar 
amenterprises amenterprises is offline
 

Member
  
Join Date: Mar 2006
Location: Western Sydney, Australia
Posts: 27
 

Default Re: Subcategories in multiple rows vs single column

Thanks buddy, that works
Found it in message #238

Anthony
__________________
YankeeRoo
Batteries, Battery Chargers & Precision Test and Measurement Equipment
http://www.yankeeroo.com

X-Cart components info:
X-Cart version 4,2,1
X-AOM
X-SpecialOffers
PHP 5.2.5
MySQL server 5.0.32-Debian_7etch5
Web server Zeus/4.3
Operation system Linux
Perl 5.008008
BCSE Order Processing Made Easy
BCSE Preorder/Backorder
Reply With Quote
  #4  
Old 04-17-2009, 05:56 PM
 
cosy cosy is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 79
 

Default Re: Subcategories in multiple rows vs single column

<table cellspacing="5" width="100%" border="0">
<tr>
{foreach from=$subcategories item=subcat}
{if $tmp is div by 3}
</tr>
<tr><td colspan="3"></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 title="{$subcat.description}" <a href="home.php?cat={ $subcat.categoryid }"><img src="{if $subcat.icon_url}{$subcat.icon_url}{else}{$xcart_w eb_dir}/default_image.gif{/if}" alt="" /><br>
<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>

how do i remove the icon ?

only columns with name
__________________
Version 4.2.0
Testing v 4.4
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 04:17 AM.

   

 
X-Cart forums © 2001-2020