Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help with if...else query


Guest

Recommended Posts

Posted

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,

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...