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)
-   -   3 Column Category Layout (https://forum.x-cart.com/showthread.php?t=45546)

dillion 02-13-2009 07:26 AM

3 Column Category Layout
 
Can anyone point me to the thread regarding the code for a 3 Column Category Layout. Not Sub-Categories, but the Main Categories. I though I saw it a while back but I am unable to locate it now.

Thanks!

JWait 02-14-2009 06:49 AM

Re: 3 Column Category Layout
 
I think you need to be more clear about what it is you are trying to do. Are you trying to display your categories with 3 products across your page? That is set in admin in the appearance options section.

dillion 02-16-2009 08:57 AM

Re: 3 Column Category Layout
 
Sorry for the vague description. I am aware of the option in the Admin side that allows you to change the display of the product list in columns (1-3), but that is not what I am looking for. If you go to the following link http://www.mrdashmat.com/Motorhome-Dash-Mats-p-1-c-436.html you will see the following Sub-Categories of the Main Category Motorhome Dash Mats. The Sub-Categories are all in a one column format and I would like them in a Three Column format. Hope I explained it better this time.

Thanks.


ALFA MOTORHOME DASH MATS

ALLEGRO MOTORHOME DASH MATS

AMERICAN DREAM MOTORHOME DASH MATS

AMERICAN EAGLE MOTORHOME DASH MATS

AMERICAN HERITAGE MOTORHOME DASH MATS

AMERICAN TRADITION MOTORHOME DASH MATS

WINNEBAGO MOTORHOME DASH MATS

MrDashMat Motorhome Dash Mats and RV Dash Covers

JWait 02-26-2009 07:39 AM

Re: 3 Column Category Layout
 
The routine that lists your subcategories is located in skin1/customer/main/subcategories.tpl.
Code:

{foreach from=$subcategories item=subcat}
<tr>
{if $tmp and $first_subcat ne "Y"}
        <td valign="top" rowspan="{count value=$subcategories print="Y"}"><img src="{if $current_category.icon_url}{$current_category.icon_url}{else}{$xcart_web_dir}/image.php?id={$cat}&amp;type=C{/if}" alt="" /></td>
{assign var="first_subcat" value="Y"}
{/if}
        <td class="SubcatTitle"><a href="home.php?cat={ $subcat.categoryid }"><font class="ItemsList">{ $subcat.category|escape }</font></a><br /></td>
        <td class="SubcatInfo">{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}</td>
</tr>
{/foreach}


I'm not sure how you would go about breaking it into 2 (or more) columns. Also, looking at your site it appears you don't have enough room to do that anyway as the page would then stretch too wide for most browsers, or worse the text would wrap.

cosy 04-17-2009 05:37 PM

Re: 3 Column Category Layout
 
HI,

I got single column so how do we make 3 ?code pls

peggyr 06-16-2009 09:26 AM

Re: 3 Column Category Layout
 
Hi,

I also am trying to get 'category images' to appear in a 3 column format, like 'sub-categories'.

I have 6 categories, and 4 appear on the first row, and 2 appear on the second row.

So far, I haven't found where the layout for 'category' can be changed. I have sub-categories formatting in a 3 column format.

Does anyone have ideas on where this setting is made? Thanks in advance for any ideas.


All times are GMT -8. The time now is 12:55 AM.

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