Kent88z Posted April 19, 2012 Share Posted April 19, 2012 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 More sharing options...
Kent88z Posted April 21, 2012 Author Share Posted April 21, 2012 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. 1 Link to comment Share on other sites More sharing options...
Poupinette333 Posted May 12, 2012 Share Posted May 12, 2012 Thanks Kent, you saved my day! Link to comment Share on other sites More sharing options...
w3bsolutions Posted April 22, 2013 Share Posted April 22, 2013 Does anyone know how to solve this in PS 1.5? I am having the same problem, even though in the BO it says the price ranges are tax excluded, it is including them in the shipping calculation. Thanks in advance... Link to comment Share on other sites More sharing options...
w3bsolutions Posted April 22, 2013 Share Posted April 22, 2013 I fixed it changing the same variable. Thanks! Link to comment Share on other sites More sharing options...
Atrocity Posted May 1, 2013 Share Posted May 1, 2013 (edited) Hi, I am working with PS 1.5.3. I modified the file classes/Cart.php, line 2505, changing the variable from true to false and do not run. I'm doing something wrong? Thank you very much. Edited May 1, 2013 by Atrocity (see edit history) Link to comment Share on other sites More sharing options...
w3bsolutions Posted May 2, 2013 Share Posted May 2, 2013 Hi, on PS 1.5.4 changing it on line 2510 works: // Order total in default currency without fees $order_total = $this->getOrderTotal(false, Cart::ONLY_PHYSICAL_PRODUCTS_WITHOUT_SHIPPING, $product_list); Link to comment Share on other sites More sharing options...
jadess Posted July 12, 2013 Share Posted July 12, 2013 (edited) I modified the line described in the previous post but I am still having the same issue.. I am on PrestaShop™ 1.5.4.1 Has anyone else found another solution? Edited July 12, 2013 by jadess (see edit history) Link to comment Share on other sites More sharing options...
Naoto Posted December 1, 2014 Share Posted December 1, 2014 On my PrestaShop 1.6.0.9 line# is 2571, and it works. Thank you, Kent! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now