Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Tax based on Billing Address, not Shipping Address on OSC 2.3.1

tax delivery address billing address

5 replies to this topic

#1 jimbeeer

  • Community Member
  • 70 posts
  • Real Name:james

Posted 09 February 2012, 15:59

I'm trying to work out how to set the tax to be based on the billing address, rather than the shipping address.

I've already found solutions, but not for this version of OSCommerce. Could somebody help me please. The client's nagging for me to get it done yesterday and I haven't a clue!

Big thanks in advance

-James

#2 DunWeb

  • Community Sponsor
  • 10,471 posts
  • Real Name:Chris Dunn
  • Gender:Male
  • Location:Tecumseh, Ontario, Canada N8N 1X8

Posted 09 February 2012, 16:02

@jimbeeer,

Taxes are collected according to the location of your location. If your business is registered in Orange County, Florida, you collect taxes from customers located in Florida. You do NOT collect taxes from customers in Oregon. So, set up your tax zones and tax rates for Florida and you are done.


Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

:|: Click Here to learn how I can help you with custom coding, add ons, security and templates :|:

:|: Need an Area Calculator, Pre-Paid Account, Virtual Pin, Auction or Layaway Add on ? Click Here :|:

#3 jimbeeer

  • Community Member
  • 70 posts
  • Real Name:james

Posted 09 February 2012, 17:20

I'm in the UK, as is my client.

He has orders from all over the world, but he's found that when people in UK order something to get sent to South Africa they're not getting charged VAT.

Consequently people ordering in South Africa to get something sent within the UK are getting charged VAT, and they shouldn't be.

The whole thing about different states with different taxes is redundant.

So I need to charge VAT (tax) on the BILLING address, not the DELIVERY address.

Edited by jimbeeer, 09 February 2012, 17:23.


#4 jimbeeer

  • Community Member
  • 70 posts
  • Real Name:james

Posted 12 February 2012, 21:38

Bump. If anyone can help I'd be most grateful. Found how to do it on the older version but not on 2.3.1

#5 DunWeb

  • Community Sponsor
  • 10,471 posts
  • Real Name:Chris Dunn
  • Gender:Male
  • Location:Tecumseh, Ontario, Canada N8N 1X8

Posted 12 February 2012, 22:15

@jimbeeer

If you are shipping an item out of the UK, you should NOT charge taxes. If an item is being shipped within the UK, then they SHOULD be charged tax.



Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

:|: Click Here to learn how I can help you with custom coding, add ons, security and templates :|:

:|: Need an Area Calculator, Pre-Paid Account, Virtual Pin, Auction or Layaway Add on ? Click Here :|:

#6 squivo

  • Community Member
  • 5 posts
  • Real Name:Steven
  • Gender:Male
  • Location:CANADA

Posted 18 March 2012, 05:16

Haven't tried it yet - but in the includes/classes/order.php file - there's this code


	  if ($this->content_type == 'virtual') {
	    $tax_address = array('entry_country_id' => $billing_address['entry_country_id'],
							 'entry_zone_id' => $billing_address['entry_zone_id']);
	  } else {
	    $tax_address = array('entry_country_id' => $shipping_address['entry_country_id'],
							 'entry_zone_id' => $shipping_address['entry_zone_id']);
	  }

Pretty sure you could just change it to

	    $tax_address = array('entry_country_id' => $billing_address['entry_country_id'],
							 'entry_zone_id' => $billing_address['entry_zone_id']);