Zen Cart Logo
Forums / Upgrading to 1.5.x / State/province dropdown box is missing

State/province dropdown box is missing

Views: 803

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

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
362
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,689
Plugin Contributions:
56

Re: State/province dropdown box is missing

what template are you using?

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

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
362
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,689
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.

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

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
362
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...