Zen Cart Logo
Forums / Managing Customers and Orders / Please select a state from the States pull down menu.

Please select a state from the States pull down menu.

Locked

Views: 5,916

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
28 Oct 2008, 5:51 PM
#1
veronika7747 avatar

veronika7747

Zen Follower

Join Date:
Nov 2007
Posts:
270
Plugin Contributions:
0

Please select a state from the States pull down menu.

I have indicated FALSE for "Please select a state from the States pull down menu." in the admin.
I have modified tpl_modules_create_account.php:

<?php
  if (ACCOUNT_STATE == 'true') {
?>
<label class="inputLabel" for="stateZone"><?php echo ENTRY_STATE; ?></label>
<?php echo zen_draw_input_field('stateZone', 'Ontario', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . ' id="state"') . (zen_not_null(ENTRY_STATE_TEXT) ? '<span class="alert">' . ENTRY_STATE_TEXT . '</span>': ''); ?>
<br class="clearBoth" />

<?php
  }
?>

but I still get an error:
Please select a Province from the Provinces pull down menu

What am I doing wrong? I changed the code above because I was getting the same error message "pull down menu" with the original code.

Where do I specify that "suburb" (which I use for unit#) must be filled in??

Thanks

16 Feb 2009, 5:01 PM
#2
jazzyman avatar

jazzyman

New Zenner

Join Date:
Mar 2008
Posts:
12
Plugin Contributions:
0

Re: Please select a state from the States pull down menu.

I have a problem when a customer registers. There is a problem with the state/province field. I have the 'State - Always display as pulldown?' set to false? And the ‘State’ set to true.

When a registration is made it fails with the following error ‘Please select a state from the States pull down menu’ There is then a drop down field option for state/province. But the only drop down option is UK?

So what is causing this error? Or how can I add provinces in the drop down in the States pull down menu?

16 Feb 2009, 9:43 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Please select a state from the States pull down menu.

IF it works right in Classic Template ... then check if you are missing in your stylesheet for your custom template:

.hiddenField {
display: none;
}
.visibleField {
display: inline;
}

23 Oct 2009, 3:58 AM
#4
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: Please select a state from the States pull down menu.

I did not have the time to figure out how to remove this error so my way around it was;

  1. Configuration > Customer Details > **State > **false
  2. Configuration > Customer Details > Address Line 2 > true
  3. edit includes/languages/english.php
    define('ENTRY_SUBURB', 'Address Line 2:');
    change to
    define('ENTRY_SUBURB', 'State:');
23 Oct 2009, 3:22 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: Please select a state from the States pull down menu.

vandiermen:

I did not have the time to figure out how to remove this error so my way around it was;

  1. Configuration > Customer Details > **State > **false
  2. Configuration > Customer Details > Address Line 2 > true
  3. edit includes/languages/english.php
    define('ENTRY_SUBURB', 'Address Line 2:');
    change to
    define('ENTRY_SUBURB', 'State:');
    That's a very dangerous move, since any data collected that way will not be properly usable for shipping calculations. So, your shipping modules won't quote correctly unless you're using a single flat-rate fee identical on every order.

Also, you'll find that customer addresses will print oddly, since (for example in the US) the Address Line 2 will show the state, sitting on its own line after Street Address, and then the next line will have the city followed by a comma and blank space. And then the zip. Not only is that confusing, but it's contrary to USPS standards, which are shared by all the carriers.

Best to fix your template properly as described in this thread, and others similar to it.

23 Oct 2009, 8:58 PM
#6
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: Please select a state from the States pull down menu.

Your right DrByte, Zone rates and other shipping modules won’t work if you do what I said. But for me I am using a flat fee shipping system on the dropship site which has virtual items where the customers may not want to enter their shipping details; thats the only reason i did it.
DrByte you always have the best things to say :smile:, I wish you all the best for your efforts. and next time I post I will try to think about complications of my suggestions