Results 1 to 3 of 3
  1. #1
    Join Date
    May 2008
    Location
    Venezuela
    Posts
    2
    Plugin Contributions
    0

    Default Problem in country and zone selection

    I am testing the 1.3.8 zen-cart version's and notices an bug at the time of selecting the country, does not allow to select the zone you but until after to send the form and to generate an error message, I could solve it when initializing the variable $flag_show_pulldown_states in true, in the file tpl_modules_create_account.php

    file's head


    i change this code

    Code:
    <?php 
    echo zen_get_country_list('zone_country_id', $selected_country, 'id="country" ' . ($flag_show_pulldown_states == true ? 'onchange="update_zone(this.form);"' : '')) . (zen_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="alert">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?>
    by this in line 47

    Code:
    <?php 
    $flag_show_pulldown_states = true;
    echo zen_get_country_list('zone_country_id', $selected_country, 'id="country" ' . ($flag_show_pulldown_states == true ? 'onchange="update_zone(this.form);"' : '')) . (zen_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="alert">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?>

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Problem in country and zone selection

    If you enable the pulldown via the Admin area, you don't have to change the code.

    Admin->Configuration->Customer Details->Always Show State Pulldown
    .

    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.

  3. #3
    Join Date
    May 2008
    Location
    Venezuela
    Posts
    2
    Plugin Contributions
    0

    Default Re: Problem in country and zone selection

    Ok tanks

 

 

Similar Threads

  1. how do i set up my country and zone?
    By neilclover in forum General Questions
    Replies: 0
    Last Post: 25 Aug 2012, 02:01 AM
  2. Country and Zone not showing in drop down list
    By DML73 in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 7
    Last Post: 19 Jul 2012, 07:51 AM
  3. Paypal Express returning country not recognized after I deleted country/zone data
    By danilyn22 in forum PayPal Express Checkout support
    Replies: 0
    Last Post: 23 Apr 2009, 12:31 AM
  4. Zone Rates using Zone Code & Country ISO Codes?
    By dcmall in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 8 Aug 2007, 09:08 AM
  5. Shipping Zone/Country Selection help
    By dandownunder in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 27 Jun 2006, 06:36 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