randomnick Posted December 16, 2016 Share Posted December 16, 2016 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 More sharing options...
♥raiwa Posted December 16, 2016 Share Posted December 16, 2016 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 About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
randomnick Posted December 16, 2016 Author Share Posted December 16, 2016 Thanks Rainer, That did the trick :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.