Guest Posted March 10, 2006 Posted March 10, 2006 I am trying to find the right way to write an if...else query to determine the customers country. I'm using it in a language file to control which definition is displayed. ie. if (customers_country_based_on_billing_address == 'Japan') { define('DEFINE_ONE', 'use this definition'); }else{ define('DEFINE_TWO', 'use this definition'); } I would actually prefer to use "countries_iso_code_2" as the lookup, but at this stage I would be happy with a base country lookup. All help greatly appreciated. Thanks,
Recommended Posts
Archived
This topic is now archived and is closed to further replies.