Page 31 of 31 FirstFirst ... 21293031
Results 301 to 306 of 306
  1. #301
    Join Date
    Sep 2006
    Posts
    49
    Plugin Contributions
    0

    Default Re: Configuring Taxes for Canadian Sites/Zones

    Couldn't find the edit button, but I would like to remove the question about the tax calcuation formula, I found it, and it's very straightforward. :)

  2. #302
    Join Date
    Jul 2012
    Posts
    4
    Plugin Contributions
    0

    Default Re: Configuring Taxes for Canadian Sites/Zones

    Quote Originally Posted by RayDube View Post
    Couldn't find the edit button, but I would like to remove the question about the tax calcuation formula, I found it, and it's very straightforward. :)
    Please point us to it.

  3. #303
    Join Date
    Sep 2006
    Posts
    49
    Plugin Contributions
    0

    Default Re: Configuring Taxes for Canadian Sites/Zones

    No worries,

    includes/functions/functions_taxes.php

    Ray

  4. #304
    Join Date
    Oct 2011
    Location
    Toronto Canada
    Posts
    66
    Plugin Contributions
    0

    Default Re: Configuring Taxes for Canadian Sites/Zones

    Quote Originally Posted by RayDube View Post
    Hello Catherine,

    Perhaps the text attachment was a little more detailed, but the notes you've copied here cause me some concern.

    First you say to comment out the if statement with regards to the tax description (After = //if ($taxDescription == $products_tax_description)...) But then ask us to edit the contents of that if statement (which we just commented out)

    I haven't reviewed any further, thought maybe I was missing something.

    Of course, I'd like to know where the formula for the tax calculation is, to see if there is a difference in that function between 1.3.9 and 1.5 to see if there the reason for the changes between the two versions, as I'm starting to think that there is where the change should be made.

    Ray
    Hi Ray,
    I am just trying to find where I got that code from on the FORUM - I used it and it worked, so I just copied it into my explanation for what I did. There is a report in Bug Issues regarding Compound Tax for version 1.5. I was viewing the thread here:
    http://www.zen-cart.com/showthread.p...t=compound+tax
    Lead•Empower•Motivate
    Catherine S.
    Go2Guru

  5. #305
    Join Date
    Oct 2011
    Location
    Toronto Canada
    Posts
    66
    Plugin Contributions
    0

    Default Re: Configuring Taxes for Canadian Sites/Zones

    I also looked at this thread and think I used the file suggested in it as well.

    http://www.zen-cart.com/showthread.p...-shipping-cost
    Lead•Empower•Motivate
    Catherine S.
    Go2Guru

  6. #306
    Join Date
    Sep 2006
    Posts
    49
    Plugin Contributions
    0

    Default Re: Configuring Taxes for Canadian Sites/Zones

    Well, this is interesting.

    1.3.9:
    Code:
    $taxAdd = zen_calculate_tax($this->products[$index]['final_price']*$this->products[$index]['qty'], $taxRate)
                    +  zen_calculate_tax($this->products[$index]['onetime_charges'], $this->products[$index]['tax']);
    1.5
    Code:
    $taxAdd = zen_calculate_tax($this->products[$index]['final_price'], $this->products[$index]['tax']) * $this->products[$index]['qty'];
                          +  zen_round(zen_calculate_tax($this->products[$index]['onetime_charges'], $this->products[$index]['tax']), $decimals);
    Not quite sure why, but the two tax variables are different, and in 1.5 it appears that it is incorrect:
    $this->products[$index]['tax'] <> $taxRate

    Changing this does allow the tax to be calcuated correctly

    So to add to the fix suggested earlier, delete the if for the comparison of the tax description
    Code:
    //if ($taxDescription == $products_tax_description)
    //        {
    (and the closing } only, leaving the contents)

    Then change the tax variable to $TaxRate.

    I will follow up and add my comments to the other thread as well.

    Next is the description, which it seems like the correction mentioned earlier should be ok.

    Ray

 

 
Page 31 of 31 FirstFirst ... 21293031

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
  •