Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2011
    Posts
    11
    Plugin Contributions
    0

    Default State dropdown not showing when entered state wrong

    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...

  2. #2
    Join Date
    Apr 2011
    Posts
    11
    Plugin Contributions
    0

    Default Re: State dropdown not showing when entered state wrong

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

  3. #3
    Join Date
    Aug 2005
    Posts
    26,051
    Plugin Contributions
    9

    Default Re: State dropdown not showing when entered state wrong

    I have selected the option "State - Always display as pulldown?" to false.
    Set it to true in the admin
    Zen-Venom Get Bitten
    Get Your Business Found

  4. #4
    Join Date
    Apr 2011
    Posts
    11
    Plugin Contributions
    0

    Default Re: State dropdown not showing when entered state wrong

    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 .

  5. #5
    Join Date
    Aug 2005
    Posts
    26,051
    Plugin Contributions
    9

    Default Re: State dropdown not showing when entered state wrong

    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
    Get Your Business Found

 

 

Similar Threads

  1. State Field Showing Below State Dropdown
    By johnfripp in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 10 Feb 2011, 01:34 PM
  2. how do I rename the word "state" - asin the state dropdown on the checkout page?
    By SoftDux in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Mar 2008, 07:19 PM
  3. State Dropdown should go if...
    By moxy in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 25 Sep 2007, 12:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •