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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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!!! |
|
#2
| |||
| |||
| 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. |
|
#3
| |||
| |||
| 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. |
| Thread Tools | |
| |
| ||||
| 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 |