Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how are tax rates calculated?


MaritimeSource

Recommended Posts

Could someone point me to where this is calculated so I can do some Tax Overriding?

 

Here's what I want to do:

 

If a retailer from Ontario, Canada buys from my store I want to charge them just Federal Tax as they are eligible for a Provincial Tax exemption. What I've done is, added a "PST #" to the Create Account page, so if the billing address is Ontario, Canada then I'd only apply the Federal Tax Rate.

 

I dug around for awhile trying to find where the taxes were calculated but I failed. I did find a "tep_get_tax_rate" but I hard coded a value in there, and it wasn't used. It seems my answer should be in order.php, but still I couldn't find it.

 

Thanks

Link to comment
Share on other sites

You can always right the Pst exemption number on the invoice after, also you can recalculate the tax after the order is placed, by going to your database then to order totals.

 

What is you store

 

just an Idea.

Link to comment
Share on other sites

You can always right the Pst exemption number on the invoice after, also you can recalculate the tax after the order is placed, by going to your database then to order totals.

I'm doing this for a client, and this is how they want it to work. I'm just not sure at which stage the taxes are calculated (which php file)?

 

Store is: http://www.prideofafricacrafts.com/store/

 

Thanks

Link to comment
Share on other sites

FYI - Taxes are calculated here:

 

includes/functions/general.php in function - tep_get_tax_rate

 

Thanks for the support

 

-Justin

Thanks Justin,

 

that was exactly what I was looking for (for other reasons though)!

Seems a bit strange to me that this kind of info is so difficult to get sometimes :(

 

Paul

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...