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

change upper to lower case

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-09-2007, 06:34 AM
  crazyoval's Avatar 
crazyoval crazyoval is offline
 

X-Adept
  
Join Date: Jun 2006
Location: UK
Posts: 559
 

Default change upper to lower case

Hi all, I cant find my old posting on this. Im trying to find how I can change my template skin from showing upper case automatically to lower case as standard but with the first letter as uppercase.

Can anyone help please?

thank you :O)
__________________
X-Cart 4.1.11 on Linux
HandsOnWebHosting: Very helpful & professional
Custom Skin Design by ARS.
Numerous, ney, hundreds of modifications by ARS.
AlteredCart: Download Expander, One Page Checkout,
BCS Engineering: Great team, Top service.
WebsiteCM: good products & very professional
CDSEO, Hidden Categories, Custom Work
Magnetic One Store Manager: Brill
Forms To Go: Excellent+A+support
Reply With Quote
  #2  
Old 02-09-2007, 06:41 AM
  dalmuti's Avatar 
dalmuti dalmuti is offline
 

eXpert
  
Join Date: Oct 2004
Location: Kansas
Posts: 343
 

Default Re: change upper to lower case

Check the skin1.css:

Quote:
Text Transform Case
Case allows you to change how a block of text will appear. This is an easy way to override the formatting of a block of text that has already been typed and placed in the document.

Values include: capitalize, uppercase, lowercase, none

The values of this property have the following meanings:
capitalize: first character of each word is uppercase
uppercase: all characters are uppercase
lowercase: all characters are lowercase
none: element ignores parent element value


<style>
P { text-transform: uppercase }
</style>

<P>This is some text</P>
__________________
Louise

Studio 57 Designs - X-Cart Customization
Providing X-Cart Services since 2004
Hottest Blog Directory - Submit Your Blog for a Free Listing
Reply With Quote
  #3  
Old 02-09-2007, 07:42 AM
  crazyoval's Avatar 
crazyoval crazyoval is offline
 

X-Adept
  
Join Date: Jun 2006
Location: UK
Posts: 559
 

Default Re: change upper to lower case

thanks dalmuti, Im confused if this is to go into the css file as the format is different
eg:

Category page
*/
.SubcatTitle { padding-left: 5px; width: 95%; text-align: left; }
.SubcatInfo { white-space: nowrap; color: #000000; text-align: right; }
/*


I would guess I would put it in like this:

*/
.SubcatTitle { padding-left: 5px; width: 95%; text-align: left; }
<style>
P { text-transform: uppercase }
</style>
.SubcatInfo { white-space: nowrap; color: #000000; text-align: right; }
/*

but Im not sure if that looks correct, the syntax does not look right..
__________________
X-Cart 4.1.11 on Linux
HandsOnWebHosting: Very helpful & professional
Custom Skin Design by ARS.
Numerous, ney, hundreds of modifications by ARS.
AlteredCart: Download Expander, One Page Checkout,
BCS Engineering: Great team, Top service.
WebsiteCM: good products & very professional
CDSEO, Hidden Categories, Custom Work
Magnetic One Store Manager: Brill
Forms To Go: Excellent+A+support
Reply With Quote
  #4  
Old 06-30-2007, 08:26 AM
  lewaff's Avatar 
lewaff lewaff is offline
 

eXpert
  
Join Date: Jun 2007
Location: Nuneaton-England
Posts: 225
 

Default Re: change upper to lower case

I am new to the Xcart
Can someone tell me how to change my catorgeries from upper case to capital to the first letter
and where i would do it
Thanks in advance
Gave up with CCP6 and trying Xcart out
__________________
Thank's
Lewis Afford
www.mobile-phone-batteries.eu X-cart v4.4.5 gold
www.mobile-phone-batteries.co.ukv4.4.5 gold
www.qualitechnic.co.uk v4.4.5 gold
Add-on: X-AOM (Advanced Order Management)
Reply With Quote
  #5  
Old 06-30-2007, 08:50 AM
  crazyoval's Avatar 
crazyoval crazyoval is offline
 

X-Adept
  
Join Date: Jun 2006
Location: UK
Posts: 559
 

Default Re: change upper to lower case

I gave up on this, too fiddly for me so I got 7dana to do it and it was done in a flash.
__________________
X-Cart 4.1.11 on Linux
HandsOnWebHosting: Very helpful & professional
Custom Skin Design by ARS.
Numerous, ney, hundreds of modifications by ARS.
AlteredCart: Download Expander, One Page Checkout,
BCS Engineering: Great team, Top service.
WebsiteCM: good products & very professional
CDSEO, Hidden Categories, Custom Work
Magnetic One Store Manager: Brill
Forms To Go: Excellent+A+support
Reply With Quote
  #6  
Old 06-30-2007, 09:26 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: change upper to lower case

Code:
{$c.category|capitalize:true}

http://smarty.php.net/manual/en/language.modifiers.php#language.modifier.capitaliz e
__________________
xcartmods.co.uk
Reply With Quote
  #7  
Old 06-30-2007, 10:00 AM
  lewaff's Avatar 
lewaff lewaff is offline
 

eXpert
  
Join Date: Jun 2007
Location: Nuneaton-England
Posts: 225
 

Default Re: change upper to lower case

Thanks but where does this code go
lewis
__________________
Thank's
Lewis Afford
www.mobile-phone-batteries.eu X-cart v4.4.5 gold
www.mobile-phone-batteries.co.ukv4.4.5 gold
www.qualitechnic.co.uk v4.4.5 gold
Add-on: X-AOM (Advanced Order Management)
Reply With Quote
  #8  
Old 06-30-2007, 10:02 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: change upper to lower case

skin1/customer/categories.tpl
__________________
xcartmods.co.uk
Reply With Quote
  #9  
Old 06-30-2007, 10:04 AM
  lewaff's Avatar 
lewaff lewaff is offline
 

eXpert
  
Join Date: Jun 2007
Location: Nuneaton-England
Posts: 225
 

Default Re: change upper to lower case

Thanks That was quick
__________________
Thank's
Lewis Afford
www.mobile-phone-batteries.eu X-cart v4.4.5 gold
www.mobile-phone-batteries.co.ukv4.4.5 gold
www.qualitechnic.co.uk v4.4.5 gold
Add-on: X-AOM (Advanced Order Management)
Reply With Quote
  #10  
Old 06-30-2007, 10:31 AM
  lewaff's Avatar 
lewaff lewaff is offline
 

eXpert
  
Join Date: Jun 2007
Location: Nuneaton-England
Posts: 225
 

Default Re: change upper to lower case

hello PhilJ
It does not seem to work
I have tried it in a few places
From this:-
<tr class="CategoriesListRow">
<td valign="top" class="CategoriesListImg"><img src="{$ImagesDir}/custom/blue_arr.gif" width="10" height="14" alt="" />&nbsp;</td>
<td width="100%" class="CategoriesList"><a href="home.php?cat={$c.categoryid}" class="VertMenuItems">{$c.category}</a></td>
</tr>
<tr>

To This :-



<tr class="CategoriesListRow">
<td valign="top" class="CategoriesListImg"><img src="{$ImagesDir}/custom/blue_arr.gif" width="10" height="14" alt="" />&nbsp;</td>
<td width="100%" class="CategoriesList"><a href="home.php?cat={$c.categoryid}" class="VertMenuItems">{$c.category|capitalize:true }</a></td>
</tr>
Still all in capitals i only want the first letter caps
__________________
Thank's
Lewis Afford
www.mobile-phone-batteries.eu X-cart v4.4.5 gold
www.mobile-phone-batteries.co.ukv4.4.5 gold
www.qualitechnic.co.uk v4.4.5 gold
Add-on: X-AOM (Advanced Order Management)
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 06:35 AM.

   

 
X-Cart forums © 2001-2020