Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Posts
    270
    Plugin Contributions
    0

    Default 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:

    Code:
    <?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

  2. #2
    Join Date
    Mar 2008
    Posts
    12
    Plugin Contributions
    0

    Default No States/Provinces in 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?

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: No States/Provinces in 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;
    }
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Feb 2007
    Posts
    513
    Plugin Contributions
    2

    Default Re: No States/Provinces in 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:');

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: No States/Provinces in the States pull down menu

    Quote Originally Posted by vandiermen View Post
    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.
    .

    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.

  6. #6
    Join Date
    Feb 2007
    Posts
    513
    Plugin Contributions
    2

    Default 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 , I wish you all the best for your efforts. and next time I post I will try to think about complications of my suggestions

 

 

Similar Threads

  1. v139f Please select a state from the States pull down menu
    By AnglersCorner in forum General Questions
    Replies: 0
    Last Post: 15 Jan 2015, 04:20 PM
  2. Replies: 6
    Last Post: 30 Jun 2008, 03:11 PM
  3. "Please select a state from the States pull down menu."
    By multichild in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 14 Nov 2007, 02:40 PM
  4. You must select a country from the Countries pull down menu
    By pod166 in forum Managing Customers and Orders
    Replies: 40
    Last Post: 4 May 2007, 01:41 AM
  5. You must select a country from the Countries pull down menu.
    By Melissa Baker in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 4 Feb 2007, 10:48 PM

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