Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Detect if my customer is international on checkout_confirmation.php Ver2.2


randomnick

Recommended Posts

Hey,

 

I want to display a message to my customers from outside of Europe (I am UK based) on my checkout_confirmation.php page. I think the easiest way of doing this would be to detect if they are being charged zero VAT and if so displaying the message.

 

I am running OSCommerce 2.2

 

Does anyone have a snippet of code that would do this for me?

 

Cheers

Nick

Link to comment
Share on other sites

Hello Nick @@randomnick,

 

This should do it:

 if ($order->info['tax'] == 0) {
   echo 'tax is zero, show message';
 }

Of course, replace "tax is zero, show message" by the message you wish to show :)

 

rgds

Rainer

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...