Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2005
    Posts
    13
    Plugin Contributions
    0

    Checkout is not accepting the state

    I searched other threads and FAQ for this but didn't turn anything up.

    Installed current version of ZenCart and started testing the functions.

    Upon checking out, even though the state field is filled, validation returns me to the "choose state dropdown box". When I choose the required state, it returns me again to the "choose state dropdown".

    It appears that the state field is not carrying over to validation. All of the other fields appear to be fine.

    No mods were made to any of the fields or validation.

    Where might I test to find out whether the state variable is carrying over to the validation function? Or any other sugggestions would be appreciated.

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Checkout is not accepting the state

    http://www.zen-cart.com/forum/showth...=international
    Similar discussion at url above..

  3. #3
    Join Date
    Mar 2005
    Posts
    13
    Plugin Contributions
    0

    Default Re: Checkout is not accepting the state

    Thank you. I tried entering the full state name and everything works fine. Since I was using the abbrevation (PA) for Pennsylvania, it crashed. For the time being I will add a red letter format example (ie: Pennsylvania, Nebraska)until I have time to research this problem further.

    Thanks again for your timely response. The threads you referred helped greatly.

  4. #4
    Join Date
    Sep 2006
    Location
    Los Angeles, CA
    Posts
    4
    Plugin Contributions
    0

    Default Re: Checkout is not accepting the state

    For what it's worth I solved this issue by hard coding the page's choice of selection list vs field for state:

    PHP Code:
    <?php
      
    // fix state validation problem by hard coding the select menu as only option
      
    if (ACCOUNT_STATE == 'true') {    
    ?>
    <label class="inputLabel" for="stateZone"><?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"') . '<span class="alert">' ENTRY_STATE_TEXT '</span>';
    ?>
    <br class="clearBoth" />
    <?php
      
    }
    ?>
    ...otherwise, if I tried to do this through the admin, I got both a select list and a field, which I deemed to be too confusing as an interface. So far it seems to work great.

 

 

Similar Threads

  1. Error on checkout: "Sorry we are not accepting payment from ...
    By gonetomontana in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 28 Mar 2010, 05:02 AM
  2. Replies: 2
    Last Post: 20 May 2008, 05:07 PM
  3. how do I rename the word "state" - asin the state dropdown on the checkout page?
    By SoftDux in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Mar 2008, 07:19 PM
  4. Message on checkout - we are not accepting payments from your region at this time
    By velvetgirl in forum Managing Customers and Orders
    Replies: 4
    Last Post: 25 Sep 2007, 05:04 PM
  5. not accepting payments from your region at this time ERROR in Paypal express checkout
    By cocmonkey in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Aug 2007, 08:32 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