Jump to content

Exclude taxes from Price Ranges calculation?


Recommended Posts

Taxes are included in the Price Range calculation when determining the shipping cost and I need to edit code to exclude taxes. I've searched the forums but can't seem to find an answer on how to exclude taxes from determining the price range.

 

For example, I have two price ranges set for one carrier and zone in order to offer free shipping for products over $100.00 to US customers only:

$0.00 - $99.99 = $6.00 shipping

$100.00 - $10,000 = $0.00 (i.e. free shipping)

 

In my case if someone orders $98 worth of products they still get the free shipping because including taxes make the product total over $100.

 

I'm assuming the answer is somewhere in the cart.php code and hope somebody can point me in the right direction.

 

I finally got a handle on how to exclude taxes when offering free shipping based on Value but that method doesn't seem to be viable when you want to offer free shipping to only one country.

Link to comment
Share on other sites

After going line by line in cart.php (ver 1.4.7) I resolved my issue so that the Carrier Price Range is determined excluding sales tax.

 

I edited line 1009 and changed from True to False

 

// Order total in default currency without fees

$order_total = $this->getOrderTotal(false, Cart::ONLY_PRODUCTS_WITHOUT_SHIPPING);

 

Now an order for $98 with sales tax doesn't qualify for free shipping over $100.

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...
  • 11 months later...
  • 2 weeks later...
  • 2 months later...
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...