Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Two State Boxes Showing during Customer Login

Two State Boxes Showing during Customer Login

Locked

Views: 664

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
9 Sep 2010, 1:25 AM
#1
johnfripp avatar

johnfripp

New Zenner

Join Date:
Jul 2010
Posts:
8
Plugin Contributions:
0

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?

9 Sep 2010, 2:55 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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.

9 Sep 2010, 12:17 PM
#3
johnfripp avatar

johnfripp

New Zenner

Join Date:
Jul 2010
Posts:
8
Plugin Contributions:
0

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?

9 Sep 2010, 2:08 PM
#4
kobra avatar

kobra

Black Belt

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

Re: Two State Boxes Showing during Customer Login

The classic mode shows it correctly.
Any advice?
Correct your template being used

9 Sep 2010, 4:14 PM
#5
johnfripp avatar

johnfripp

New Zenner

Join Date:
Jul 2010
Posts:
8
Plugin Contributions:
0

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.

9 Sep 2010, 6:23 PM
#6
johnfripp avatar

johnfripp

New Zenner

Join Date:
Jul 2010
Posts:
8
Plugin Contributions:
0

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 https://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 ' <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 ' <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 } ?>
9 Sep 2010, 7:06 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Two State Boxes Showing during Customer Login

Okay, it's looking like your problem may be stylesheet-related. The javascript is firing, but the styles aren't taking.

Try temporarily replacing your /includes/templates/floating_poker_games/css/stylesheet.css with the one from classic, and see what happens.
(If you're thinking of renaming yours as part of the test, be sure to NOT leave the ".css" on the end of the file, else it will be loaded anyway.)
Be sure to use your browser's refresh button to ask it to reload the cached file. Might need to clear the browser cache too.

10 Sep 2010, 7:52 PM
#8
johnfripp avatar

johnfripp

New Zenner

Join Date:
Jul 2010
Posts:
8
Plugin Contributions:
0

Re: Two State Boxes Showing during Customer Login

Thanks DrByte. I used the stylesheet from the classic version on my template and it's working. Now I guess I just have to find out where my modificiations for my stylesheet somehow changed this from working properly. Based on the code from the logon page, do you know of that I posted, do you happen to know of any place to start? :)