Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Taxes based on Billing Address?


Mav666

Recommended Posts

Trying to figure out how to base tax or not tax on billing, rather than shipping address. I modified osc to be able to ship each item to a different address, so there is no primary shipping address anymore, hence it stopped charging taxes which admittedly is a bad idea. Any ideas?

Even at a Mensa convention someone is the dumbest person in the room.

Link to comment
Share on other sites

Just in case someone else is looking for it - the tax address is selected in /includes/classes/order.php

 

I changed mine to

 

	  $tax_address_query = tep_db_query("select ab.entry_country_id, ab.entry_zone_id from " . TABLE_ADDRESS_BOOK . " ab left join " . TABLE_ZONES . " z on (ab.entry_zone_id = z.zone_id) where ab.customers_id = '" . (int)$customer_id . "' and ab.address_book_id = '" . $billto . "'");

 

in order to hard default the tax address to the bill-to.

Even at a Mensa convention someone is the dumbest person in the room.

Link to comment
Share on other sites

And there was me thinking tax was based on the delivery address not the invoicing address.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Different tax for different hacks ... strokes and folks ... something like that. Either its because Louisiana requires it that way or because that client mainly gift ships. Either way, I was told to do it that way and figured maybe I am not the only person on the planet getting that request. Maybe I am ... :'(

Even at a Mensa convention someone is the dumbest person in the room.

Link to comment
Share on other sites

If only I was unique too, Still what the customer wants the customer gets.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...