Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jul 2010
    Posts
    8
    Plugin Contributions
    0

    Default Two State Boxes Showing during Customer Login

    Using Zen Cart 1.3.9d and here is my issue.
    I've installed Local Taxes Add ons as well as Fed Ex Add on.

    Here is my issue. For some reason, during customer registration, two state boxes are displayed:
    1. one of the state boxes is displayed that allows for you to select a state
    2. another state box is displayed that is greyed out that is normally used to manually enter in the state

    Also, note that my default country is the United States with zones defined for this country and that I have both 'State' and 'State - Always display as a pulldown?' are both 'true' in my admin config.

    In this case, I know what should happen. What should be happening is that the the box showing that allows manual entry of the state(number 2 above) should be HIDDEN when there are zones defined for a country (as I do for the US). ONLY the pulldown should be showing!!! However, the manual box is obviously not HIDDEN as shown in my attachment. I've highlighted the box that should NOT be showing. Can anyone tell me how to correct this issue?
    Attached Images Attached Images  

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Two State Boxes Showing during Customer Login

    Your browser has javascript disabled, or Your template, or one of the addon files you've installed, has broken the javascript that controls the automatic hiding of things.
    What happens if you switch to the default "Classic" template?

    Click Reply below and answer the questions in the "Posting Tips" section.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jul 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: Two State Boxes Showing during Customer Login

    The classic mode shows it correctly. I'd be surprised if the add ons 'messed' it up since they are quite popular.

    The file for this page is exactly the same code as the 'classic' version. Any advice?

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Two State Boxes Showing during Customer Login

    The classic mode shows it correctly.
    Any advice?
    Correct your template being used
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Jul 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: Two State Boxes Showing during Customer Login

    That's precisely what I'm trying to do. However, I'm not finding the root cause of the error that is causing this to happen. I obviously do not want to use the classic template.

  6. #6
    Join Date
    Jul 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: Two State Boxes Showing during Customer Login

    Here is the code for the 'drawing' of the state boxes during customer login.

    This code has not been modified. For some reason, the 'manual entry' state box still shows with my template.

    You can go to www.floatingpokergames.com and click on log in or refer to the screenshot above. Thanks to anyone that can help!!

    <?php
    if (ACCOUNT_STATE == 'true') {
    if ($flag_show_pulldown_states == true) {
    ?>
    <label class="inputLabel" for="stateZone" id="zoneLabel"><?php echo ENTRY_STATE; ?></label>
    <?php
    echo zen_draw_pull_down_menu('zone_id', zen_prepare_country_zones_pull_down($selected_country), $zone_id, 'id="stateZone"');
    if (zen_not_null(ENTRY_STATE_TEXT)) echo '&nbsp;<span class="alert">' . ENTRY_STATE_TEXT . '</span>';
    }
    ?>
    <?php if ($flag_show_pulldown_states == true) { ?>
    <br class="clearBoth" id="stBreak" />
    <?php } ?>
    <label class="inputLabel" for="state" id="stateLabel"><?php echo $state_field_label; ?></label>
    <?php
    echo zen_draw_input_field('state', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . ' id="state"');
    if (zen_not_null(ENTRY_STATE_TEXT)) echo '&nbsp;<span class="alert" id="stText">' . ENTRY_STATE_TEXT . '</span>';
    if ($flag_show_pulldown_states == false) {
    echo zen_draw_hidden_field('zone_id', $zone_name, ' ');
    }
    ?>
    <br class="clearBoth" />
    <?php
    }
    ?>

 

 

Similar Threads

  1. Customer Login Time out in SSL during registration
    By chetu_dev in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 18 Apr 2014, 02:36 PM
  2. Customer Login Boxes not inline
    By kencor1 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Oct 2010, 07:14 PM
  3. Two login boxes - only should be one
    By jhbs in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 30 Mar 2009, 05:55 PM
  4. Changing text color in customer login boxes?
    By MJA in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 19 Apr 2007, 08:31 AM

Posting Permissions

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