Zen Cart Logo
Forums / Bug Reports / State - Always display as pulldown Set To True = Extra Space Before State...

State - Always display as pulldown Set To True = Extra Space Before State...

Views: 2,575

Results 1 to 8 of 8
5 Sep 2011, 8:35 PM
#1
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

State - Always display as pulldown Set To True = Extra Space Before State...

Hi,

When I set Admin > Configuration > Customer Details > State - Always display as pulldown? to True I get an extra blank space before the input in the state input box when using the "Type a choice below ..." for countries like the UK etc. where zones aren't already defined.

See screenshot attached... note the extra space in the state input box compared to the city input box.

This results in an extra space in the database for that customers state, which then affects invoice address spacing etc. - no big deal, I know, but a bit annoying nonetheless... and a possible bug?

This occurs in FF6 and Chrome 13, on a fresh ZC 1.3.9h install on XAMPP. I haven't tested in any other browsers yet.

6 Sep 2011, 1:57 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: State - Always display as pulldown Set To True = Extra Space Before State...

If you have no Zones defined for that country, you will see the blank ...

For example, try selecting United States ... does the blank disappear?

6 Sep 2011, 2:07 PM
#3
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

Re: State - Always display as pulldown Set To True = Extra Space Before State...

No, because then the customer would be selecting a state, rather than typing one in. As I previously stated, this only happens when the customer has to type their state in.

6 Sep 2011, 2:19 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: State - Always display as pulldown Set To True = Extra Space Before State...

I am confused ... if that wasn't there, then where would they type it? :unsure:

6 Sep 2011, 2:34 PM
#5
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

Re: State - Always display as pulldown Set To True = Extra Space Before State...

I think you may of misunderstood the problem.

So for a customer in the UK, when they type their state (rather than select it from the dropdown list) in the input box underneath where it says "Type a choice in the box below ..." they get this:

' Typed State' <-- extra space in front of Typed, compared to:
'Selected State' <-- which has no space in front of it.

6 Sep 2011, 3:07 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: State - Always display as pulldown Set To True = Extra Space Before State...

Aha! a clue ... thanks for the update we will look into it ...

4 Dec 2011, 1:50 AM
#7
webstar59 avatar

webstar59

New Zenner

Join Date:
Jun 2011
Location:
California
Posts:
63
Plugin Contributions:
0

Re: State - Always display as pulldown Set To True = Extra Space Before State...

I'm trying to make the user input only abbreviations for their State example (NY) I set the state dropdown list to always show.

Will the state dropdown list return the abbreviations in my orders?

The only way I can tell if this works is to wait for an order to come .

Thank You

Sorry This is not a bug report wrong thread posting

8 Apr 2012, 10:47 PM
#8
tomywong avatar

tomywong

New Zenner

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

Re: State - Always display as pulldown Set To True = Extra Space Before State...

Hi gaffettape,

Have you solve your problem ? I've same problem as yours.
Please tell me if you fixed your problem.
Thanks.

-Tomy