Taxation Configuration
Taxation is based on the two digit values of the Shipping State popup menu on the checkout.php page. The below screen shot of the php code high-lights these State values.
Shipping States in checkout.php page. |
The actual taxation calculation scripts are in the php code of the billing.php page, shown below. You will notice the tax is broken down into two regions within the tax scripts on the billing.php page. The first region is the tax percentage for your local State. All you need to do is replace the State code, shown here highlighted blue, as CA, with the two letter code for your state. Then replace the default decimal percentage equivalent, shown as .0775, (which equals 7.75% and also highlighted blue) to the decimal equivalent for your state tax rate.
For example, if your tax rate is 6%, then change ".0775" to ".06", or if it is 8.25%, change it to ".0825".
The second region is for taxation outside your state. The default setting is 0.00.
Tax calculation scripts in php code of billing.php page. |