not requiring UK postal codes
Posted: Mon Oct 12, 2009 11:47 am
Hi,
on the one page checkout there some code which checks if the counrty requires a post code.
This code has an issue which might be due to some configuration i have made.
The country code for the uk is GB, however it seems to be comparing it against a string of "UK"
any help greatly appreciated.
Thanks.
rob.
on the one page checkout there some code which checks if the counrty requires a post code.
Code: Select all
//SEE WHETHER POSTAL CODE IS REQUIRED
string[] countries = Store.GetCachedSettings().PostalCodeCountries.Split(",".ToCharArray());
PostalCodeValidator.Enabled = (Array.IndexOf(countries, countryCode) > -1);
The country code for the uk is GB, however it seems to be comparing it against a string of "UK"
any help greatly appreciated.
Thanks.
rob.