Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Location
    Worcester, MA
    Posts
    454
    Plugin Contributions
    0

    Default State problem with new account (when making state field not required)

    Hi,

    I've just upgraded to 1.3.6 in hopes that it would help with a problem I've been having but it has not. Here's the problem:

    In admin I have the state minimum value set to nothing, state display as dropdown set to false (although I would rather have the state displayed as a dropdown ultimately - I'm doing it this way now to try to eliminate or isolate the problem).

    When I create a new account and do not fill in the state (since it is not required), an error message appears that the state dropdown was not filled and now the dropdown box does appear on the form and is required to be filled in before the account is created.

    If I do fill in the non-required state (regular text field), everything is fine and the account is created.

    I just don't see where to change this behavior except to just give in and make the state required to create an account.

    ??

    Ellie

  2. #2
    Join Date
    Jan 2005
    Location
    Tennessee
    Posts
    1,128
    Plugin Contributions
    0

    Default Re: State problem with new account

    I had the same issue. My`zones`table only has the States, Territories, and possessions. I removed all other countries.

    I remarked some code in the file tpl_modules_create_account.php starting at line 93 through 103. That fixed the issue for me.

    <!-- <?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, ' ');
    }
    ?> -->

    Good luck.

    ps
    use the template system. Do not modify the file in the default template folder.

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

    Default Re: State problem with new account (when making state field not required)

    If you don't require the state, then you end up with little or no support for zones, typically used for taxation and shipping purposes.

    What country is your store in ? Where are most of your customers?
    .

    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.

  4. #4
    Join Date
    Jan 2005
    Location
    Tennessee
    Posts
    1,128
    Plugin Contributions
    0

    Default Re: State problem with new account (when making state field not required)

    I can see there is a serious flaw in my fix. Although it works for me and the state does show, I dont know why. Yet....Time to start from scratch and build up.

  5. #5
    Join Date
    Jan 2005
    Location
    Tennessee
    Posts
    1,128
    Plugin Contributions
    0

    Default Re: State problem with new account (when making state field not required)

    earmsby,

    I would like to see if my issue resembles your issue. If you would, please post your store url. Based on my deleting files in my template one by one, the issue disappeared when deleting a css file. I think the problem is in one of the CSS files.

  6. #6
    Join Date
    Jan 2005
    Location
    Tennessee
    Posts
    1,128
    Plugin Contributions
    0

    Default Re: State problem with new account (when making state field not required)

    Found it. Make sure the code below is in one of your templete css files.

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

  7. #7
    Join Date
    Oct 2006
    Location
    Worcester, MA
    Posts
    454
    Plugin Contributions
    0

    Default Re: State problem with new account (when making state field not required)

    Quote Originally Posted by DrByte View Post
    If you don't require the state, then you end up with little or no support for zones, typically used for taxation and shipping purposes.

    What country is your store in ? Where are most of your customers?
    I see. Well, I was hoping to not make the address info required until they actually buy something. But maybe I'll just go ahead and require the address info up front since most people will probably create their account when they're buying something anyway.

    Thanks for your explaination.

    Ellie

  8. #8
    Join Date
    Nov 2006
    Posts
    47
    Plugin Contributions
    0

    Default Re: State problem with new account (when making state field not required)

    Dr Byte -

    I'm having the same issue and definitely don't want to disable zones -

    We have about 50% international, 50% in the US. It's been a very big problem - abandoned carts and tons of emails from people that can't get past the city field.

    Is there a fix for this as of yet?

    Thanks!
    Michelle

  9. #9
    Join Date
    Jan 2005
    Location
    Tennessee
    Posts
    1,128
    Plugin Contributions
    0

    Default Re: State problem with new account (when making state field not required)

    I know I am not Dr Byte but...
    In a temporary folder Please try a fresh / clean install of 1.3.7 without any other downloads or changes. I am sure you will find the program to work properly.

 

 

Similar Threads

  1. v139h problem with state/province when create account
    By win8win in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 4 May 2012, 04:55 AM
  2. Replies: 1
    Last Post: 2 May 2010, 09:56 PM
  3. State Field Not Required During Registration but Required in Admin?
    By Stenrique in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 2 Jun 2007, 09:13 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