Forum Moderators: buckworks

Message Too Old, No Replies

Custom Sales Tax Collection

Custom Sales Tax Collection

         

electronicsnation

10:26 am on Mar 30, 2003 (gmt 0)

10+ Year Member



I run a smaller e-commerce site, and it applies sales tax site wide. Does anyone know a small addition I can make to the PHP script that runs it to collect sales tax ONLY for orders with an Ohio address?
Thanks.
Jason

Birdman

11:52 am on Mar 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You will need to learn PHP [php.net] basics and then do something like:

if($state == "Ohio"}{
$tax = $cost * .5;
}

I read your other post also. Without knowing what "script" you are referring to, it is impossible to give any "addition" to it. Your best bet is to follow the link I gave you and read the tutorial. PHP is fairly easy to learn.

Birdman