If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading to 1.5.x / State Dropdown Select Is Missing On First Attempt To Create an Account

State Dropdown Select Is Missing On First Attempt To Create an Account

Started by mikeel100 on 31 Oct 2022, 6:51 PM · Views: 1,755

Results 1 to 10 of 10
31 Oct 2022, 6:51 PM
#1
mikeel100 avatar

mikeel100

Zen Follower

Join Date:
Sep 2012
Location:
West Jefferson, NC
Posts:
391
Plugin Contributions:
0

State Dropdown Select Is Missing On First Attempt To Create an Account

Windows 10
Newest XAMPP Local Server
PHP 8.0
Apache2
Firefox
No Plugins...fresh install

Upon creating my first catalog user account, the page has a text box for the state.

After hitting the submit button, the account creation fails and returns to the account creation page...then a drop down select appears for the state. The user has to select the state and put the new password in again. It is annoying but does not stop the account creation.

Is anyone else having this issue?

31 Oct 2022, 8:30 PM
#3
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
382
Plugin Contributions:
0

Re: State Dropdown Select Is Missing On First Attempt To Create an Account

Quick fix:

Admin > Configuration > Customer Details > State field - Display as pulldown when possible?
Change it to True.

Correct way to fix:

Refer to torvista's link above to edit all 14 files...

1 Nov 2022, 1:31 PM
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: State Dropdown Select Is Missing On First Attempt To Create an Account

njcyx:

Quick fix:

Admin > Configuration > Customer Details > State field - Display as pulldown when possible?
Change it to True.

Correct way to fix:

Refer to torvista's link above to edit all 14 files...

Something I recall from when I very first setup zen Cart many years ago, what is the impact on a store that has been operating with whatever setting is described above to then change that setting? I note that my first site setup was under zen Cart 1.3.9h and at that time I saw that there would be an issue changing a store from one to the other and so have always ensured that the setting was true. I don't recall seeing anything being incorporated to support transition from one setting to the other "mid operation".

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

2 Nov 2022, 2:03 AM
#5
mikeel100 avatar

mikeel100

Zen Follower

Join Date:
Sep 2012
Location:
West Jefferson, NC
Posts:
391
Plugin Contributions:
0

Re: State Dropdown Select Is Missing On First Attempt To Create an Account

njcyx:

Quick fix:

Admin > Configuration > Customer Details > State field - Display as pulldown when possible?
Change it to True.

Correct way to fix:

Refer to torvista's link above to edit all 14 files...

Thanks...will stick to the quick method for now.

2 Nov 2022, 2:12 AM
#6
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,023
Plugin Contributions:
2

Re: State Dropdown Select Is Missing On First Attempt To Create an Account

I always thought the trick was to have the customer select their country first, hence the Country dropdown should be placed above the State input box/dropdown.

So perhaps to make this evident to the customer, change the default text or title of the State input box and/or dropdown to read "Please select your country before state".

Cheers

2 Nov 2022, 2:21 AM
#7
mikeel100 avatar

mikeel100

Zen Follower

Join Date:
Sep 2012
Location:
West Jefferson, NC
Posts:
391
Plugin Contributions:
0

Re: State Dropdown Select Is Missing On First Attempt To Create an Account

mc12345678:

Something I recall from when I very first setup zen Cart many years ago, what is the impact on a store that has been operating with whatever setting is described above to then change that setting? I note that my first site setup was under zen Cart 1.3.9h and at that time I saw that there would be an issue changing a store from one to the other and so have always ensured that the setting was true. I don't recall seeing anything being incorporated to support transition from one setting to the other "mid operation".

I feel your pain.

1.3.8a started my journey and I always hate upgrading to a numbered change. This one is particularly tough due to the language file changes...spent all day on my admin language files today and still have not got my personal plugin to load. It installs as a tool option but that is all it does for now. I have nailed the issue down to how my absolute and relative paths are define...to be continued.

It would be nice to have a tool that compares the old db settings with the new default settings...then provide a way to make said differences the new defaults or at least provide a printout of the differences.

Rambling now...

2 Nov 2022, 8:22 AM
#8
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: State Dropdown Select Is Missing On First Attempt To Create an Account

have the customer select their country first, hence the Country dropdown should be placed above the State input box/dropdown.
It is above the State dropdown...however I see the State dropdown still does not update on a change on Country, as you would expect.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

2 Nov 2022, 4:44 PM
#9
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
382
Plugin Contributions:
0

Re: State Dropdown Select Is Missing On First Attempt To Create an Account

dw08gm:

I always thought the trick was to have the customer select their country first, hence the Country dropdown should be placed above the State input box/dropdown.

So perhaps to make this evident to the customer, change the default text or title of the State input box and/or dropdown to read "Please select your country before state".

Cheers

I just tried your way and it doesn't work for me (zc1.58).

If "State field - Display as pulldown when possible?" is set to false, no matter under shipping estimate page, nor under the create a new account page, changing the country back and forth will not help for the state/province dropbox. It will only show as a textbox.

In zc1.57d, this option "State - Always display as pulldown?" is set to false and it shows as a dropbox.

2 Nov 2022, 11:55 PM
#10
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,023
Plugin Contributions:
2

Re: State Dropdown Select Is Missing On First Attempt To Create an Account

njcyx:

I just tried your way and it doesn't work for me (zc1.58).

If "State field - Display as pulldown when possible?" is set to false, no matter under shipping estimate page, nor under the create a new account page, changing the country back and forth will not help for the state/province dropbox. It will only show as a textbox.

In zc1.57d, this option "State - Always display as pulldown?" is set to false and it shows as a dropbox.

Oh! Perhaps something has changed since I last looked at this problem in detail. I remember doing some tweaks to this problem in pre-Covid 156 but exactly what I did I cannot recall. It has been a few years since I last played with any ZC code.