Results 1 to 1 of 1
  1. #1
    Join Date
    Sep 2006
    Posts
    13
    Plugin Contributions
    0

    Default [Duplicate] Tax Calculations error fixed in 1.3.9g

    Hi,

    With reference to this closed thread about errors in calculating tax - http://www.zen-cart.com/forum/showth...e=3#post689143

    If you are running an older version of Zen Cart and after applying the 2 function updates as shown in the above linked thread reply post from 'wilt' you are still experiencing issues with tax calculations in the 'checkout' process, ( ie: 1c above or below incorrect in either product sub-totals or overall cart total), then also consider updating the 'function zen_add_tax()' in file /cart/includes/functions/functions_taxes.php

    ie new function code

    PHP Code:
    // Add tax to a products price based on whether we are displaying tax "in" the price
      
    function zen_add_tax($price$tax) {
        global 
    $currencies;

        if ( (
    DISPLAY_PRICE_WITH_TAX == 'true') && ($tax 0) ) {
          return 
    $price zen_calculate_tax($price$tax);
        } else {
          return 
    $price;
        }
      } 
    This suggested update to the above function is as is listed in Zen Cart v1.3.9g

    Hope this helps...

    (Apologies if this was placed in not the most appropriate ZC forum category)

    Regards Matt
    Last edited by swagmani; 27 Oct 2010 at 09:56 AM.

 

 

Similar Threads

  1. Replies: 7
    Last Post: 19 Sep 2012, 03:43 AM
  2. Weird Tax Calculations
    By asauterChicago in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 2
    Last Post: 29 Dec 2008, 05:06 PM
  3. Wrong tax calculations
    By staypop in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 2
    Last Post: 23 Dec 2008, 11:25 PM
  4. Incorrect tax calculations
    By RobWUK in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 5
    Last Post: 5 Jun 2008, 08:04 AM

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