Closed (works as designed)
Project:
Ubercart
Version:
6.x-2.0
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 Oct 2009 at 10:23 UTC
Updated:
4 Feb 2011 at 13:36 UTC
When the default country is selected for shipping or delivery it will not display on checkout.
This is by design, see lines 1084 to 1093 in uc_store.module.
if (uc_store_default_country() != $country) {
$variables['!country_name_if'] = $country_data['country_name'];
$variables['!country_code2_if'] = $country_data['country_iso_code_2'];
$variables['!country_code3_if'] = $country_data['country_iso_code_3'];
}
else {
$variables['!country_name_if'] = '';
$variables['!country_code2_if'] = '';
$variables['!country_code3_if'] = '';
}
Though in my opinion this is a bad design decision. The country should always be visible to the customer to prevent confusion. Also when its the default store country.
Comments
Comment #1
adamo commentedI agree. The Review page should display all of the user input from the previous page.
Comment #2
longwaveThe !country_*_if tokens are designed to work like this. Use !country_name (no _if) in the address format for the default country if you don't want this behaviour.