X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Subcategories in multiple rows vs single column (https://forum.x-cart.com/showthread.php?t=41167)

amenterprises 07-17-2008 05:03 AM

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

balinor 07-17-2008 05:21 AM

Re: Subcategories in multiple rows vs single column
 
http://forum.x-cart.com/showthread.php?t=3848&highlight=sub+categories+ico ns

amenterprises 07-17-2008 05:45 AM

Re: Subcategories in multiple rows vs single column
 
Thanks buddy, that works
Found it in message #238

Anthony

cosy 04-17-2009 05:56 PM

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


All times are GMT -8. The time now is 04:07 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.