osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Problem with checkout math (Coupon and Tax related)

This is a discussion on Problem with checkout math (Coupon and Tax related) within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; For some reason when I add a free shipping coupon, the math goes weird at checkout. Sub-Total: $120.00 United States ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 02-23-2008, 09:51 AM
New Member
 
Join Date: Jan 2008
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
onLoad is on a distinguished road
Default Problem with checkout math (Coupon and Tax related)

For some reason when I add a free shipping coupon, the math goes weird at checkout.

Sub-Total: $120.00 United States Postal Service (1 x 3.509lbs) (PARCEL): $12.45 Tax: $10.50 Discount Coupons:SHIP08: -$12.45 Total: $129.41
Free shipping is for orders over $75, and tax is 8.75%. Any know where I can find the area where this is calculated? Or any ideas on what might cause this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 02-23-2008, 12:19 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,328
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Problem with checkout math (Coupon and Tax related)

The problem is that your tax is on the 120+$12.45= $11.59 which equals the $1.09 miscalculation that you are seeing, even though the tax amount says $10.50. Check the shipping and tax settings to make sure neither are set to tax the shipping.

Have you changed the sort order of the Order Total modules? That is usually the cause of these types of problems too.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 02-23-2008, 12:24 PM
New Member
 
Join Date: Jan 2008
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
onLoad is on a distinguished road
Default Re: Problem with checkout math (Coupon and Tax related)

Thank you, I don't remember changing the any files in that area, but I have found the problem. In my version of ot_coupon.php there is this line:

//New code for tax recalculation fix
if ($tod_amount == 0 || $tod_amount == '') {
$pct = $order->info['tax'] / $order->info['subtotal'];
$order->info['tax'] = $order->info['tax'] - ($pct * $od_amount);
foreach ($order->info['tax_groups'] as $key => $value) {
$value = $value - ($pct * $od_amount);
$order->info['tax_groups'][$key] = $value;
$order->info['total'] -= ($pct * $od_amount);
}
}
//end new code

I removed that and now it calculates everything correctly. I had a feeling there was a problem with it re calculating tax after the discount, but I was unsure where that would be.

Thank you for the quick reply too (although now that you mention it, where is the setting to set tax onto shipping?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Checkout Problem - Gift Voucher Coupon Zero 0 no balance kenlyle osCMax v1.7 Discussion 0 11-07-2005 08:53 AM
Fatal Error at checkout - related to gift voucher contrib PerfectEye osCommerce 2.2 Modification Help 4 08-27-2005 01:41 PM
Voucher & Coupon Tax Problem peteyg osCMax v1.7 General Mods Discussion 4 03-05-2005 01:57 PM
That old Tax problem again! :( - Tax removed at checkout JJJ osCMax v1.7 Installation 0 06-21-2004 09:28 AM
Help! Error message during checkout related to shipping hittlehottle osCommerce 2.2 Modification Help 1 04-28-2004 07:38 AM


All times are GMT -8. The time now is 07:34 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax