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

How to resize the "Categories" box

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-13-2006, 12:41 PM
 
TL408 TL408 is offline
 

X-Adept
  
Join Date: Jan 2005
Posts: 549
 

Default How to resize the "Categories" box

I've looked at the "skin1.css" and "customer/categories.tpl" file but couldn't find out where to resize the "Categories" box. Any help would be greatly appreciated.

Thanks
-Tuan
__________________
Win2003 IIS6, PHP 5.2.3, MySQL 5.0.45 and X-Cart 4.1.9
Reply With Quote
  #2  
Old 01-13-2006, 12:42 PM
 
balinor balinor is offline
 

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

Default

It is menu.tpl that controls the categories in the side menu, and that defaults to the width of the table cell in home.tpl.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 01-13-2006, 12:51 PM
 
TL408 TL408 is offline
 

X-Adept
  
Join Date: Jan 2005
Posts: 549
 

Default

Thanks so much, Padraic.
__________________
Win2003 IIS6, PHP 5.2.3, MySQL 5.0.45 and X-Cart 4.1.9
Reply With Quote
  #4  
Old 01-13-2006, 01:14 PM
 
TL408 TL408 is offline
 

X-Adept
  
Join Date: Jan 2005
Posts: 549
 

Default

Oh....how about the spacing/padding between each line in the "Categories" box? Is it in the skin1.css file? I can't find it. Thanks again for your help.

-Tuan
__________________
Win2003 IIS6, PHP 5.2.3, MySQL 5.0.45 and X-Cart 4.1.9
Reply With Quote
  #5  
Old 01-13-2006, 01:17 PM
 
balinor balinor is offline
 

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

Default

Between each category name you mean? That is just a
tag in customer/categories.tpl. You would need to add a padding element to the CategoriesList class to use padding.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 01-13-2006, 01:26 PM
 
TL408 TL408 is offline
 

X-Adept
  
Join Date: Jan 2005
Posts: 549
 

Default

Quote:
Originally Posted by balinor
Between each category name you mean? That is just a
tag in customer/categories.tpl. You would need to add a padding element to the CategoriesList class to use padding.
Yes, between each category name. I want some space between them, but not as much as a line using the
tag.

I edited the skin1.css file and added the codes below, using the padding element. However, I did not notice any changes between each category.

Code:
.CategoriesList { FONT-SIZE: 13px; Font-Weight: Bold; PADDING: 5px;
__________________
Win2003 IIS6, PHP 5.2.3, MySQL 5.0.45 and X-Cart 4.1.9
Reply With Quote
  #7  
Old 01-13-2006, 01:30 PM
 
balinor balinor is offline
 

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

Default

Probably due to the lovely <font> tags X-Cart still uses Try replacing this in categories.tpl:

<FONT class="CategoriesList">

with this:

<div class="CategoriesList">

also replace the closing </font> tag with </div>
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #8  
Old 01-13-2006, 01:38 PM
 
TL408 TL408 is offline
 

X-Adept
  
Join Date: Jan 2005
Posts: 549
 

Default

Hmmm.....can't find that line anywhere in the categories.tpl file under the "customer" folder. Here is what I have.

Code:
{* $Id: categories.tpl,v 1.26 2005/11/17 06:55:37 max Exp $ *} {capture name=menu} {if $active_modules.Fancy_Categories ne ""} {include file="modules/Fancy_Categories/categories.tpl"} {assign var="fc_cellpadding" value="0"} {else} {if $config.General.root_categories eq "Y"} <div id="categories"> {foreach from=$categories item=c} {$c.category} {/foreach} </div> {else} <div id="categories"> {foreach from=$subcategories item=c key=catid} {$c.category} {/foreach} </div> {/if} {/if} {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding}
__________________
Win2003 IIS6, PHP 5.2.3, MySQL 5.0.45 and X-Cart 4.1.9
Reply With Quote
  #9  
Old 01-13-2006, 01:46 PM
 
balinor balinor is offline
 

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

Default

Is this the beta version you are working with?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #10  
Old 01-13-2006, 01:51 PM
 
TL408 TL408 is offline
 

X-Adept
  
Join Date: Jan 2005
Posts: 549
 

Default

Unfortunately yes. *****banging against the wall*****
__________________
Win2003 IIS6, PHP 5.2.3, MySQL 5.0.45 and X-Cart 4.1.9
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:18 PM.

   

 
X-Cart forums © 2001-2020