Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi. i got the same kind of results. When i disable the plugin, all goes well. When i activate it the end total is absolutely not what it’s suppost to be. I’m spending the whole day trying to fix it but now i understand that i’m not the only one having this problem

    Plugin Contributor podpirate

    (@podpirate)

    Hi Micha,
    The problem are the different tax rates in your shop. The plugin is currently not able to handle international taxrate scenarios correctly.
    Would you mind to provide me screenshots of all your tax and taxrate settings? Thanks in advance.

    I’ll try to explain in detail whats going wrong:

    • the cart amount is CHF 2140,- including shipping+handling
    • 19% VAT (406,60) is added on top. Cart amount incl. VAT: CHF 2546,60
    • The plugin calculates 7% of cart amount incl. taxes: Result 178,262 payment fee.
    • As your settings say: Payment fee is including taxes. On swisscave.ch the default tax rate is somehow set to 8%.
    • Going wrong starts here: Payment fee ex taxes (8%): 165,06. Your woocommerce settings say that cart amounts are displayed without taxes, so this is what you see in the cart.
    • This is where things start to get really wrong: Cart total ex taxes is now 2140,- + 165,06 = 2305,06.
      Woocommerce recalculates taxes, but now adding 19% VAT on top of the cart total plus payment fee amount. Taxes: 437,96.
      regards,
      j
    Thread Starter ge-sehen

    (@ge-sehen)

    Hi thanks for the answer.
    So at the moment there’s no way to get my problems sorted out?
    Here we go for the tax-settings: http://pl.vc/5a24v
    I hope we find a solution there to get it fixed as I really like the idea of your plugin.

    I also changed the settings to Fee excluding taxes.

    regards

    Micha

    Thread Starter ge-sehen

    (@ge-sehen)

    Just updated to 1.2.5 but still got the same problem.
    Will there be a fix for it?

    Regards
    Micha

    Plugin Contributor podpirate

    (@podpirate)

    I am working on it.
    The error-part is not so obvious and deeply hidden inside woocommerce cart calculation process. When the fee is added, all other fees, taxes and coupons have already been calculated. I have noticed that it is not possible to simply re-calculate the cart totals, after the payment fee has been added. Cart totals may be calculated only once for each request. Calling them several times will sum up the fees over and over again. Same is true the taxes on taxable fees.

    I’m currently trying to figure out a robust fix in my plugin, but this is really a brain-skewing job…

    Yes, we can imagen it is a brain-skewing job. My goodness. Good luck.

    Thread Starter ge-sehen

    (@ge-sehen)

    keep trying 😉

    Thanks for all your effort podpirate!

    Plugin Contributor podpirate

    (@podpirate)

    Version 1.3.0 is up.
    Please check your settings, I did some changes and the old options might not match the new ones.
    Hope the horror ends here…
    Regards

    Thread Starter ge-sehen

    (@ge-sehen)

    Wow, you’re a genius! Seems to work now 😉

    Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Incorrect calculation?’ is closed to new replies.