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/province dropdown box is missing

State/province dropdown box is missing

Started by njcyx on 25 Oct 2022, 5:01 PM · Views: 832

Results 1 to 5 of 5
25 Oct 2022, 5:01 PM
#1
njcyx avatar

njcyx

Zen Follower

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

State/province dropdown box is missing

zc 1.58
php 8.0

I just tried to get a shipping quote in the shopping cart page, and I found the State/province dropdown box is gone in zc1.58. Instead, it shows as a regular text box.

I copied the tpl_modules_shipping_estimator.php from 1.57d and changed "zip_code" into "postcode" (two spots in total), and it worked now.

25 Oct 2022, 5:17 PM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: State/province dropdown box is missing

what template are you using?

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

25 Oct 2022, 5:32 PM
#3
njcyx avatar

njcyx

Zen Follower

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

Re: State/province dropdown box is missing

Hi @swguy, responsive classic.

25 Oct 2022, 6:53 PM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: State/province dropdown box is missing

Tested - seems ok as is.

You have to set
Admin > Configuration > Customer Details > State field - Display as pulldown when possible? to true.
Then you will see the dropdown.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

25 Oct 2022, 8:54 PM
#5
njcyx avatar

njcyx

Zen Follower

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

Re: State/province dropdown box is missing

Hi @swguy, thanks for your help. I just set "State field - Display as pulldown when possible?" to true in 1.58 site and the dropdown box came back! Thanks!

I checked my 1.57d site and that option is slightly different:

State - Always display as pulldown?
It is set as false. And I can get dropdown box under the shipping quote page...