osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Order Total Problem

This is a discussion on Order Total Problem within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I came into this project about 1/2 way through. I've never worked with OSC before and my PHP is mediocre ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 07-28-2004, 03:33 PM
Lurker
 
Join Date: Jul 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
erikpiazza
Default Order Total Problem

I came into this project about 1/2 way through. I've never worked with OSC before and my PHP is mediocre at best. Nevertheless, I've managed to work through redesigning the look and feel and modifying the whole site to suit out needs and everything is working perfectly with one exception.

The order total is not adding the tax for orders within my one tax zone. On checkout_confirmation.php the Subtotal, Shipping , Tax and Total amounts are displayed. However, the "description" of the tax is not showing and the Total amount does not include the tax. For example:

$295.00
Sub-Total: $295.00
Federal Express (1 x 6lbs) (Ground Service (1 days)): $4.74
7.75: $21.22
Total: $299.74

The tax description is in the database as "CA TAX 7.75%" and that is not displaying here. This was working properly at one time, but I can't figure out what I might have done to break it. I haven't made any changes to any of the order total files and I've been very careful about what I've changed in other files.

Can anyone point me in the right direction? I can't even figure out where this calculation is being made! This is the very last thing I need to finish before this store goes live. Please Help!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 08-06-2004, 06:28 AM
Active Member
 
Join Date: May 2003
Posts: 148
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Arpit
Default

I would do the below only after you are 110% sure the tax problem is not a configuration issue on your part

make bkps 1st.

below are the functions which compute the tax related operations; they can be found in catalog/includes/functions/general.php
function tep_get_tax_rate
function tep_get_tax_description
function tep_add_tax
function tep_calculate_tax

you can start echo the class_id, country_id and all sorts of arguments that are being passed into the function, your echo will show up on "checkout_cofirmation.php"

if your are only concerned bout 1 tax_zone, then you can hard code the tax rate n descrip. but that should be the last option.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 08-06-2004, 07:18 AM
Lurker
 
Join Date: Jul 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
erikpiazza
Default

Thanks for the input. I actually found that the problem was a Purchase Order payment module that I had installed. Fortunately, we didn't need that module anyway, so once I found that it was the problem, I was just able to remove it. Everything is back on track now.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

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
how to get the order total on checkout_success.php ? johnr3 osCMax v2 Customization/Mods 0 06-17-2006 08:23 AM
no order total show kellycog osCommerce 2.2 Modification Help 1 12-03-2004 04:55 AM
Order Total module cupido osCMax v1.7 Discussion 2 11-05-2004 08:20 PM
Order Total Problem erikpiazza osCMax v1.7 General Mods Discussion 0 07-28-2004 03:22 PM
Need a New Order Total Contribution bsa osCMax v1.7 General Mods Discussion 1 07-01-2004 11:48 PM


All times are GMT -8. The time now is 09:29 PM.


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