Zen Cart Logo
Forums / General Questions / Problem in country and zone selection

Problem in country and zone selection

Locked

Views: 956

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
22 May 2008, 8:50 PM
#1
eluneg avatar

eluneg

New Zenner

Join Date:
May 2008
Location:
Venezuela
Posts:
2
Plugin Contributions:
0

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

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

<?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>': ''); ?>
22 May 2008, 9:04 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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

22 May 2008, 9:14 PM
#3
eluneg avatar

eluneg

New Zenner

Join Date:
May 2008
Location:
Venezuela
Posts:
2
Plugin Contributions:
0

Re: Problem in country and zone selection

Ok tanks :cool: