osCmax v2.5 User Manual
Results 1 to 3 of 3

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 ...

      
  1. #1
    Lurker
    Join Date
    Jul 2004
    Posts
    3
    Rep Power
    0


    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!!!

  2. #2
    Active Member
    Join Date
    May 2003
    Posts
    148
    Rep Power
    0


    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.

  3. #3
    Lurker
    Join Date
    Jul 2004
    Posts
    3
    Rep Power
    0


    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.

Similar Threads

  1. how to get the order total on checkout_success.php ?
    By johnr3 in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 06-17-2006, 08:23 AM
  2. no order total show
    By kellycog in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 12-03-2004, 03:55 AM
  3. Order Total module
    By cupido in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 11-05-2004, 07:20 PM
  4. Order Total Problem
    By erikpiazza in forum osCMax v1.7 General Mods Discussion
    Replies: 0
    Last Post: 07-28-2004, 03:22 PM
  5. Need a New Order Total Contribution
    By bsa in forum osCMax v1.7 General Mods Discussion
    Replies: 1
    Last Post: 07-01-2004, 11:48 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •