Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2008
    Posts
    4
    Plugin Contributions
    0

    bug Change the Shipping Address -> Country not working

    Hello,

    I have been working on a shop. Don't know what addons are installed and such, however.

    - You make an order
    - You check out
    - You CHANGE the Shipping Address
    - On the new address page, you put the fields. All fields are CORRECT, however, I get this error:

    You must select a country from the Countries pull down menu.

    However. I DID select a country from the menu.

    Any sugestions?

    Thanks

  2. #2
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: Change the Shipping Address -> Country not working

    Hmm, when you are on the page where you have to enter the country
    Do a View source in the browser and see whats the name of the country which is getting passed in
    Did you change anything in the design and country id/name textbox got changed?
    Is this same or something else?

    Code:
    <label class="inputLabel" for="country">Country:</label>
    <select name="zone_country_id" id="country" onchange="update_zone(this.form);">
      <option value="">Please Choose Your Country</option>
      <option value="38">Canada</option>
    
      <option value="138">Mexico</option>
      <option value="223" selected="selected">United States</option>
      <option value="224">United States Minor Outlying Islands</option>
      <option value="232">Virgin Islands (U.S.)</option>
    </select>
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

  3. #3
    Join Date
    Feb 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: Change the Shipping Address -> Country not working

    <label class="inputLabel" for="country">Country:</label>
    <select name="country" id="country">
    <option value="">Please Choose Your Country</option>
    <option value="240">Aaland Islands</option>
    <option value="1">Afghanistan</option>
    <option value="2">Albania</option>
    <option value="3">Algeria</option>
    <option value="4">American Samoa</option>
    ............

    This is what I have.

  4. #4
    Join Date
    Mar 2008
    Posts
    1
    Plugin Contributions
    0

    Default Re: Change the Shipping Address -> Country not working

    Hi
    I had the same problem. I'm using Zen Cart 1.3.8a with an older template. I'm finding that I have to merge or replace many of the older template files with those found in the default templates directory. To get rid of the error 'You must select a country from the Countries pull down menu' I took the file tpl_modules_create_account.php from includes/templates/template_default/templates and placed it in to includes\templates\MY_TEMPLATE\templates and the error message disappeared. I also moved other address_book template files from the same locaction and placed them in to the new template location so moving only the one file mentioned above might not be enough. I'm too tired to check it all now but if you want me to double check it let me know and I will.

    Hope this works for you.


  5. #5
    Join Date
    Jan 2006
    Location
    Toronto, Ontario, Canada
    Posts
    183
    Plugin Contributions
    3

    Idea or Suggestion Re: Change the Shipping Address -> Country not working

    I was having a similar issue on a site developed, however it was ONLY happening when creating a new address entry or updating an address. Creating an account worked fine. While i replaced several files, i believe the file in question is:
    /includes/templates/YOUR_TEMPLATE/templates/tpl_modules_address_book_details.php

    i replaced it with the following code (copied from template_default of a 1.3.7 install):

    Hope this helps.

    Code:
    <?php
    /**
     * Module Template
     *
     * Displays address-book details/selection
     *
     * @package templateSystem
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_modules_address_book_details.php 4683 2006-10-07 06:11:53Z drbyte $
     */
    ?>
    <fieldset>
    <legend><?php echo HEADING_TITLE; ?></legend>
    <div class="alert forward"><?php echo FORM_REQUIRED_INFORMATION; ?></div>
    <br class="clearBoth" />
    
    <?php
      if (ACCOUNT_GENDER == 'true') {
        if (isset($gender)) {
          $male = ($gender == 'm') ? true : false;
        } else {
          $male = ($entry->fields['entry_gender'] == 'm') ? true : false;
        }
        $female = !$male;
    ?>
    <?php echo zen_draw_radio_field('gender', 'm', $male, 'id="gender-male"') . '<label class="radioButtonLabel" for="gender-male">' . MALE . '</label>' . zen_draw_radio_field('gender', 'f', $female, 'id="gender-female"') . '<label class="radioButtonLabel" for="gender-female">' . FEMALE . '</label>' . (zen_not_null(ENTRY_GENDER_TEXT) ? '<span class="alert">' . ENTRY_GENDER_TEXT . '</span>': ''); ?>
    <br class="clearBoth" />
    
    <?php
      }
    ?>
    <label class="inputLabel" for="firstname"><?php echo ENTRY_FIRST_NAME; ?></label>
    <?php echo zen_draw_input_field('firstname', $entry->fields['entry_firstname'], zen_set_field_length(TABLE_CUSTOMERS, 'customers_firstname', '40') . ' id="firstname"') . (zen_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="alert">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?>
    <br class="clearBoth" />
    
    <label class="inputLabel" for="lastname"><?php echo ENTRY_LAST_NAME; ?></label>
    <?php echo zen_draw_input_field('lastname', $entry->fields['entry_lastname'], zen_set_field_length(TABLE_CUSTOMERS, 'customers_lastname', '40') . ' id="lastname"') . (zen_not_null(ENTRY_LAST_NAME_TEXT) ? '<span class="alert">' . ENTRY_LAST_NAME_TEXT . '</span>': ''); ?>
    <br class="clearBoth" />
    
    <?php
      if (ACCOUNT_COMPANY == 'true') {
    ?>
    <label class="inputLabel" for="company"><?php echo ENTRY_COMPANY; ?></label>
    <?php echo zen_draw_input_field('company', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' id="company"') . (zen_not_null(ENTRY_COMPANY_TEXT) ? '<span class="alert">' . ENTRY_COMPANY_TEXT . '</span>': ''); ?>
    <br class="clearBoth" />
    <?php
      }
    ?>
    
    <label class="inputLabel" for="street-address"><?php echo ENTRY_STREET_ADDRESS; ?></label>
    <?php echo zen_draw_input_field('street_address', $entry->fields['entry_street_address'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_street_address', '40') . ' id="street-address"') . (zen_not_null(ENTRY_STREET_ADDRESS_TEXT) ? '<span class="alert">' . ENTRY_STREET_ADDRESS_TEXT . '</span>': ''); ?>
    <br class="clearBoth" />
    <?php
      if (ACCOUNT_SUBURB == 'true') {
    ?>
    <label class="inputLabel" for="suburb"><?php echo ENTRY_SUBURB; ?></label>
    <?php echo zen_draw_input_field('suburb', $entry->fields['entry_suburb'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_suburb', '40') . ' id="suburb"') . (zen_not_null(ENTRY_SUBURB_TEXT) ? '<span class="alert">' . ENTRY_SUBURB_TEXT . '</span>': ''); ?>
    <br class="clearBoth" />
    <?php
      }
    ?>
    
    <label class="inputLabel" for="city"><?php echo ENTRY_CITY; ?></label>
    <?php echo zen_draw_input_field('city', $entry->fields['entry_city'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_city', '40') . ' id="city"') . (zen_not_null(ENTRY_CITY_TEXT) ? '<span class="alert">' . ENTRY_CITY_TEXT . '</span>': ''); ?>
    <br class="clearBoth" />
    
    <?php
      if (ACCOUNT_STATE == 'true') {
        if ($flag_show_pulldown_states == true) {
    ?>
    <label class="inputLabel" for="stateZone" id="zoneLabel"><?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"');
          if (zen_not_null(ENTRY_STATE_TEXT)) echo '&nbsp;<span class="alert">' . ENTRY_STATE_TEXT . '</span>'; 
        }
    ?>
    
    <?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_get_zone_name($entry->fields['entry_country_id'], $entry->fields['entry_zone_id'], $entry->fields['entry_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, ' ');
        }
    ?>
    <br class="clearBoth" />
    <?php
      }
    ?>
    
    <label class="inputLabel" for="postcode"><?php echo ENTRY_POST_CODE; ?></label>
    <?php echo zen_draw_input_field('postcode', $entry->fields['entry_postcode'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' id="postcode"') . (zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="alert">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?>
    <br class="clearBoth" />
    
    <label class="inputLabel" for="country"><?php echo ENTRY_COUNTRY; ?></label>
    <?php echo zen_get_country_list('zone_country_id', $entry->fields['entry_country_id'], '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>': ''); ?>
    <br class="clearBoth" />
    
    <?php
      if ((isset($_GET['edit']) && ($_SESSION['customer_default_address_id'] != $_GET['edit'])) || (isset($_GET['edit']) == false) ) {
    ?>
    <?php echo zen_draw_checkbox_field('primary', 'on', false, 'id="primary"') . ' <label class="checkboxLabel" for="primary">' . SET_AS_PRIMARY . '</label>'; ?>
    <?php
      }
    ?>
    </fieldset>
    Ahmad Rahman
    TRUST IT | web site design and development
    mobile: 416.828.0224 | email: [email protected]
    www.trustit.ca

    For IT solutions how you want IT, when you want IT, TRUST IT.

 

 

Similar Threads

  1. v139h PayPal shipping address country will change to other country problems.
    By explorer1979 in forum General Questions
    Replies: 0
    Last Post: 18 Feb 2014, 02:42 AM
  2. 10474 - The shipping country is not allowed by the buyer's country of residence
    By tmeister in forum PayPal Express Checkout support
    Replies: 4
    Last Post: 6 Mar 2013, 02:52 AM
  3. Replies: 6
    Last Post: 8 Mar 2012, 06:36 PM
  4. PayPal change country in shipping address
    By darcega in forum PayPal Express Checkout support
    Replies: 16
    Last Post: 22 Jul 2010, 04:35 PM
  5. I can not change the shipping address
    By colorlens4less in forum General Questions
    Replies: 7
    Last Post: 19 Oct 2007, 05:55 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR