If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / State dropdown not showing when entered state wrong

State dropdown not showing when entered state wrong

Started by xavierpages on 13 May 2011, 11:26 PM · Views: 1,846

Results 1 to 5 of 5
13 May 2011, 11:26 PM
#1
xavierpages avatar

xavierpages

New Zenner

Join Date:
Apr 2011
Posts:
22
Plugin Contributions:
0

Post #1 by xavierpages

Hi,
I have selected the option "State - Always display as pulldown?" to false. I have noticed that when editing the address book from account, it has the nice feature that if you enter a wrong state name in the text box (drop down is off) for a country that has zones defined, zencart displays an error that says "You must select a country from the Countries pull down menu". Then the drop down for states is shown and you can select the correct one with no typing-error possibility. That's great!
Well, when doing the same thing in the cheching process, the same error message is shown (I think it is ENTRY_STATE_ERROR_SELECT), but in this case no drop down is shown, and the state's name has to be typed again.
Is it my problem, or it happens to anybody?
Thank you very much,
Xavier.

PD: I have tried to solve that, changing the module: /includes/modules/checkout_new_address.php (lines 112-118):

  if ($found_exact_iso_match) {
    $zone_id = $zone->fields['zone_id'];
    $zone_name = $zone->fields['zone_name'];
  } else {
    $error = true;
    $error_state_input = true;
    $messageStack->add('checkout_address', ENTRY_STATE_ERROR_SELECT);
    $flag_show_pulldown_states = true;

but it does not work...:no:

13 May 2011, 11:27 PM
#2
xavierpages avatar

xavierpages

New Zenner

Join Date:
Apr 2011
Posts:
22
Plugin Contributions:
0

Post #2 by xavierpages

I forgot to say that I have last Zencart version, 1.3.9h

14 May 2011, 5:07 AM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #3 by kobra

I have selected the option "State - Always display as pulldown?" to false.
Set it to true in the admin

Zen-Venom Get Bitten

14 May 2011, 7:13 AM
#4
xavierpages avatar

xavierpages

New Zenner

Join Date:
Apr 2011
Posts:
22
Plugin Contributions:
0

Post #4 by xavierpages

If I set it to "true" it works as expected in both pages, but it does not solve de bug for the people who want it set to false :wink:.

15 May 2011, 10:17 AM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #5 by kobra

but in this case no drop down is shown
I think that you are expecting some action that is not in the code for your settings

Zen-Venom Get Bitten