Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2006
    Location
    Philadelphia, PA
    Posts
    332
    Plugin Contributions
    0

    Default shipping tax calculation error after upgrade to v155

    Hi,

    I just recently completed an upgrade for a client from v.1.5.4 to 1.5.5a. Everything seems totally fine except a weird little problem that I can't seem to track down. The problem is that tax should be calculated including the shipping cost but upon final checkout, the tax doesn't include this. The correct amount of tax shows during the checkout process but not at the final confirmation and not the amount that actually gets recorded with the order (charged to PayPal or Auth.net). Here's an example:

    I place an item for $100 in my cart and begin checkout.
    I select a shipping address to which sales tax applies.
    order totals show as:

    item - $100
    shipping - $10.95
    tax - $9.85 [tax rate is 8.875%]

    This same total appears throughout the checkout steps until the final order review step. Then when I click the button to confirm, suddenly the tax recalculates and only shows and charges $8.88 which does not include the shipping.

    I don't know if this is a bug in this version or if it's a stray line of code that got lost or changed when I copied modifications during the upgrade. I didn't have any modifications to this particular functionality in the previous version and the tax definitely calculated correctly pre-upgrade. Maybe someone can point me to which file and where I should look for the cause of the problem.

    Thanks in advance!

  2. #2
    Join Date
    Jan 2004
    Posts
    64,748
    Blog Entries
    6
    Plugin Contributions
    214

    Default Re: tax calculation error after upgrade to v155

    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Oct 2006
    Location
    Philadelphia, PA
    Posts
    332
    Plugin Contributions
    0

    Default Re: tax calculation error after upgrade to v155

    Thanks Dr. Byte. I'll give that a try and see if it solves the problem. I suspect it will since my problem seems to match very closely (or even completely) to the those described in that thread.

  4. #4
    Join Date
    Oct 2006
    Location
    Philadelphia, PA
    Posts
    332
    Plugin Contributions
    0

    Default Re: tax calculation error after upgrade to v155

    Just confirming that yes, moving the one line of code suggested by Dr, Byte solved the problem. :)

 

 

Similar Threads

  1. Replies: 5
    Last Post: 21 Mar 2016, 09:45 PM
  2. Shipping Calculation After Certain Weight
    By ryanb4614 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 23 Mar 2012, 06:52 PM
  3. 1.3.8 a Tax calculation rounding error
    By chandroo007 in forum General Questions
    Replies: 1
    Last Post: 11 Jul 2011, 07:50 AM
  4. tax calculation error with coupons
    By poosk in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 22 Oct 2008, 02:35 PM
  5. Replies: 7
    Last Post: 13 Nov 2006, 12:11 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR