I’ve been struggling with the following problem:
I have a product in woocommerce that has a price of 557.98 and a tax of 19%
And in woocommerce settings I have “prices do not include taxes”.
I also have a coupon of 30% discount.
When I create an order with the product mentioned above I get the following result.
Sub-total : 1,673.94 (product quantity is 3)
Coupon : – 502.18
Tax 19%: 222.63
Total: 1,394.39
My problem is with the tax calculation when I am trying to extract woocommerce data and recalculate the total I get the following total 1,394.40.
Product | Product*Quantity | Tax 19%
557.98 | 1673.94 | 318.05
Discount 30%
167.39 | -502.18 | -95.41
Sum of the 2 above
Total | 1171.76 | 222.64 => 1,394.40
So at first, I thought that the tax is calculated from the subtotal so 19% of 1171.76 would be 222.63 and not the sum of the order items tax. It would make sense.
I played around with the woocommerce->settings->tax rounding option. But I got the same result => 222.63
So I tried testing some more this time with multiple taxes.
This time I created an order with 2 products:
Product 1 | Price: 50.12 | Quantity: 3 | Tax:5%
Product 2 | Price: 557.98 | Quantity: 3 | Tax:19%
And a discount coupon of 30%
I also tested with and without rounding and got the following results:
Sub-total: 1,824.31
Coupon: -547.29
Tax 5%: 5.26
Tax 19%: 222.63
Total: 1,504.91
With rounding on.
Sub-total: 1,824.31 (how did it get to this number? shouldn’t it be 1,824.30? )
Coupon: – 547.29
Tax 5%: 5.26
Tax 19%: 222.63
Total: 1,504.92 (how did it get to this number ?????)
I also got this when rounding was on but I could not reproduce this again after that =/. I assume this was an error. But then how would I know when a rounding error happens?
Sub-total : 1,824.31
Coupon: – 547.28 (how did it get to this number ?????)
Tax 5%: 5.26
Tax 19%: 222.64 (how did it get to this number ?????)
Total: 1,504.93
These tests were made with Woocommerce 6.9.1 and WordPress 6.0.2
What I would like to know is if it is possible to configure woocommerce so that in the first case I would get a tax of 222.64 (just using woocommerce settings). And if it is, how would I configure that?
And in the second cases, if anyone can provide any clarifications for why or how those totals got to those numbers or maybe some advice on how can someone troubleshoot this without losing his mind, I would be grateful.
Thank you, If you need more information please tell me.
]]>Here’s an example of one:
Items in order:
69.99
42.99
4.99 (postage)
ORDER TOTAL
£137.96
Captured
£137.95
Any idea why this is happening?
]]>However, when I have to refund some customers who ordered before the correction I can’t do that anymore. The new total has a 1 cent difference to the old total, obviously, and no refund is possible.
What would be the best way to solve that? Is there a way to enter a manual refund sum? I dont want to change the rounding values everytime I have to make an old refund and change them back, once that is done.
Thanks in advance!
]]>the plugin has a rounding error in the total amount.
For example the total amount must be 300,00€ but on the invoice is 299,99€
How can I fix it?
I use the newest update of this plugin.
]]>I have a problem with the total cost calculation.
For some reason, total cost shows the wrong amount.
See example image here: https://imgur.com/a/CNzgLlI
The image shows that shipping cost is 148,40 and products 1394,00. This should be 1542,4 or if rounded 1542. Instead, it shows 1543,00?
Why is this happening and what can I do about it?
]]>I’ve migrated theme and wordpress versionfrom 3.9.3 to 4.1.1 and had the need to regenerate my thumbnails.
since I was using the same size settings as before wasn’t expecting any issues with this.
However, most of the images inserted in posts with “medium size” got broken.
i’ve realized that the filename was, usually, off by one pixel.
and here: https://www.ads-software.com/support/topic/rounding-error found the reference to this ticket: https://core.trac.www.ads-software.com/ticket/18532
So, apparently the thumbnail size “rounding error” was fixed in 4.1.
The question is how is backward compatibility guaranteed?
I’ve now migrated a website with thousands of posts and it’s impossible to go through them manually.
It’s ki nd of difficult to understand how this change was done without considering that to fix a small issue a huge backward compatibility problem was created.
Essentially for existing websites, thumbnails can never be regenerated again…
If anybody could tell if there is a way to temporarily put the “error back”, so that I can at least regeneate thumbnails with the old sizes and get to a working version of my website, I would be greatly appreciated.
cheers,
miguel
This could be related to a WordPress issue, but I thought that was fixed too far back for it to only be causing a problem now: https://core.trac.www.ads-software.com/ticket/18532.
Any thoughts or fixes on resolving the now-missing images?
https://www.ads-software.com/plugins/force-regenerate-thumbnails/
]]>