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

Add class to States select box on Contact page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-07-2008, 06:56 PM
 
wayfarer wayfarer is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 56
 

Default Add class to States select box on Contact page

Hi there,

I have been making style changes to my contact form, just to add some background colour and font style to the form fields and select boxes, but changing the class for the States select box has me stumped. I modified the states.tpl file like this...

Code:
{* $Id: states.tpl,v 1.13.2.3 2007/09/03 06:15:27 max Exp $ *} {if $states ne ""} <select class="myselectboxclassinskin1css" name="{$name}" id="{$name|replace:"[":"_"|replace:"]":""}" {$style}> {if $required eq "N"} <option value="">[{$lng.lbl_please_select_one}]</option> {/if} <option value="{if $value_for_other ne "no"}Other{/if}"{if $default eq "Other"} selected="selected"{/if}>{$lng.lbl_other}:</option> {section name=state_idx loop=$states} {if $config.General.default_country eq $states[state_idx].country_code || $country_name eq '' || $default_fields.$country_name.avail eq 'Y'} <option value="{$states[state_idx].state_code|escape}"{if $default eq $states[state_idx].state_code && (!$default_country || $default_country eq $states[state_idx].country_code)} selected="selected"{/if}>{$states[state_idx].country_code}: {$states[state_idx].state|amp}</option> {/if} {/section} </select> {else} <input type="text"{if $name ne ''} id="{$name|replace:"[":"_"|replace:"]":""}"{/if} size="32" maxlength="65" name="{$name}" value="{$default|escape}" /> {/if}

...but the states drop down isn't obeying. Is there somewhere else I need to look to make the style change or have I missed something here? Any help would be much appreciated...
__________________
X Cart Pro
v. 4.1.9
Download Expander (from Altered Cart)
X-Magnifier
Dynamic Preview (from BCS Engineering)
Customer Rewards Points (BCSE), used as credit purchasing system
Reply With Quote
  #2  
Old 04-08-2008, 01:11 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Add class to States select box on Contact page

You did clean up cache (http://youshop.com/cleanup.php)?
Maybe it works

PS. You are changing the file - "skin1_admin.css" ?
Reply With Quote
  #3  
Old 04-08-2008, 02:24 AM
 
wayfarer wayfarer is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 56
 

Red face Re: Add class to States select box on Contact page

Thanks Yurij, I had a realisation about the skin.css file - and that I can modify global settings for INPUT, SELECT, TEXT AREA etc there... Because I had a few options boxes and fields that I specifically wanted to control the size of, but didn't want to apply those restrictions to everything, I think I overlooked the obvious...

Thanks...
__________________
X Cart Pro
v. 4.1.9
Download Expander (from Altered Cart)
X-Magnifier
Dynamic Preview (from BCS Engineering)
Customer Rewards Points (BCSE), used as credit purchasing system
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 11:48 AM.

   

 
X-Cart forums © 2001-2020