Zen Cart Logo
Forums / General Questions / State Field - Pull Down Menu Error

State Field - Pull Down Menu Error

Locked

Views: 3,069

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
27 Mar 2008, 3:07 AM
#1
seventy_7 avatar

seventy_7

New Zenner

Join Date:
Mar 2008
Posts:
1
Plugin Contributions:
0

State Field - Pull Down Menu Error

Hi,

I would like to make the state field pull down only.
I have selected in Admin ->: Configuration -> Customer Details -> State - Always display as pulldown? as True.

This works fine and I can select the State form a pull down menu, however it does not remove the text field from the page.

See attached pics of Firefox and IExplorer

Does anyone know how to remove the text field?

Thanks!

Steve.

27 Mar 2008, 3:12 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: State Field - Pull Down Menu Error

Out-of-the-box, the default/classic template works just fine. Thus, the problem is with your template.

Your template is probably missing the stylesheet entries that control the hiding of the input field when state/province options are available.

24 Apr 2008, 2:32 PM
#3
jdunique avatar

jdunique

New Zenner

Join Date:
Apr 2008
Location:
Montreal, Quebec, Canada
Posts:
28
Plugin Contributions:
0

Re: State Field - Pull Down Menu Error

seventy-7,

did you figured it out?!

I have the exact same problem..

.. and I too am running a custom template, so DrByte is most probably right that it has to do with a missing "something" in the custom template

24 Apr 2008, 2:44 PM
#4
jdunique avatar

jdunique

New Zenner

Join Date:
Apr 2008
Location:
Montreal, Quebec, Canada
Posts:
28
Plugin Contributions:
0

Re: State Field - Pull Down Menu Error

I solved our problem!

Go here:

/includes/templates/ (your-custom-template) /css/

open the file
stylesheet.css

Add these lines at the bottom of the file

.hiddenField {
display: none;
}
.visibleField {
display: inline;
}

:D Taada! works like a charm :laugh: :yes: :flex:

7 May 2008, 5:37 AM
#5
fotofx avatar

fotofx

Zen Follower

Join Date:
Apr 2008
Location:
South Florida
Posts:
195
Plugin Contributions:
0

Re: State Field - Pull Down Menu Error

Works, but now the dropdown state field is inset and not lining up with the others..

Steve

8 Jul 2008, 8:14 AM
#6
ozetrade avatar

ozetrade

Zen Follower

Join Date:
Dec 2004
Location:
Redcliffe QLD, Australia
Posts:
171
Plugin Contributions:
0

Re: State Field - Pull Down Menu Error

It never ceases to amaze me - I can always find a fix to my problems in these forums.

Thanks to everyone for their input - past and future.

OZ.