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

3 Column Category Layout

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-13-2009, 07:26 AM
 
dillion dillion is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 53
 

Default 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!
__________________
X-CART GOLD 4.1.7
UNIX
Reply With Quote
  #2  
Old 02-14-2009, 06:49 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default 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.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #3  
Old 02-16-2009, 08:57 AM
 
dillion dillion is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 53
 

Default 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
__________________
X-CART GOLD 4.1.7
UNIX
Reply With Quote
  #4  
Old 02-26-2009, 07:39 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default 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.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #5  
Old 04-17-2009, 05:37 PM
 
cosy cosy is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 79
 

Default Re: 3 Column Category Layout

HI,

I got single column so how do we make 3 ?code pls
__________________
Version 4.2.0
Testing v 4.4
Reply With Quote
  #6  
Old 06-16-2009, 09:26 AM
  peggyr's Avatar 
peggyr peggyr is offline
 

X-Adept
  
Join Date: Dec 2005
Posts: 635
 

Default 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.
__________________
X-Cart GP 4.7.12 | XCARTMODS.CO.UK reBOOT (reDUX)4.7.12.8 | Live
IONOS Hosting | Linux | PHP 7.4.33 | MySQL 5.7
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 05:14 AM.

   

 
X-Cart forums © 2001-2020