mderooij
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Payment fee tax class based on product tax classAnyone who can answer this question?
The difference in payment fee is 0,10 euro (it have to be 5,696 euro, but in my cart it is 5,80 euro), so it isn’t a rounding issue.
I installed the new plugin version, but the problem is still there.
By making a calculation I found out what happens:
It simply applies 21% VAT on the payment fee of 4,79 euro.4,79 euro * 1,21 = 5,7959
If you round that up you have the 5,80 euro that is shown in the shopping cart.I don’t get the right numbers. To be sure I shared my payment fee settings. This payment fee is a 3% payment fee.
https://ibb.co/cvX9zdCI filled my shopping cart with a 21% VAT and a 9% VAT product. The third product is free:
https://ibb.co/BfjWjFXProduct A (159,98 euro including 21% VAT) = 132,21 euro ex. VAT
Product B (29,99 euro including 9% VAT)– 27,51 euro ex. VATTotal amount ex. VAT: 132,21 + 27,51 = 159,72 euro
Product A = 82,77% of the total amount
Product B = 17,23% of the total amountPayment fee of 3% = 159,72 * 0,03 = 4,79 euro
82,77% of 4,79 euro = 3,965 euro * 1,09 VAT = 0,899
17,23% of 4,79 euro = 0,825 euro * 1,21 VAT = 4,797Total payment fee = 0,899 + 4,797 = 5,696 euro
As you can see in the screenshot of the shopping cart the payment fee is 5,80 euro in total. Also the total amount of 21% VAT and 9% VAT are the VAT values of the products only and not the VAT of the payment fee.
If anything is not clear, let me know. If you prefer I am also available by Skype to discuss everything.
Cart total: 100 euro ex. VAT
1% payment fee = 1,00 euro ex. VAT80% of 1,00 euro = 0,80 * 21% = 0,968 euro incl. VAT (so 0,168 euro is VAT)
20% of 1,00 euro = 0,20 * 9% = 0,218 euro incl. VAT (so 0,018 euro is VAT)Do you think you can manage some changes?
Otherwise I have to look for another plugin.I see I made a little mistake. Better to make the sum without VAT and easier numbers:
Product A (VAT class: 21%) – 80 euro ex. VAT
Product B (VAT class 9%)– 20 euro ex. VATCart total: 100 euro ex. VAT
1% payment fee = 1,00 euro ex. VAT80% of 1,00 euro = 0,80 * 21% = 0,968 euro incl. VAT (so 0,168 euro is VAT)
20% of 1,00 euro = 0,20 * 9% = 0,218 euro incl. VAT (so 0,018 euro is VAT)So the payment fee is distrubuted in proportion of the value of the products ex VAT.
The same thing applies here for shipping costs. So if a customer orders hiking shoes (21% VAT) and a book about hiking (9% VAT) the VAT in the total shipping cost is split into a 21% amound and a 9% amount. This already works properly in Woocommerce (without additional plugins) so I guess the development of the payment fee plugin should be similar.
Hi Karolina,
I am living in the Netherlands.
In Woocommerce everything works fine, because per product I can assign a different tax class.In your example it depends on the price of Product A and Product B.
Example for a 1% payment fee:
Product A – rate Standard – 21 % – 121 euro incl. VAT (so 100 euro ex. VAT)
Product B – rate for books – 10 % – 22 euro incl. VAT (so 20 euro ex. VAT)Cart total incl. VAT: 143 euro incl. VAT
1% payment fee = 1,43 euroBecause product A is 84,6% percent of the cart total (121/143 * 100%), 84,6% of the payment fee should have 21% VAT and 15,4% of the payment fee should be taxed with 10% VAT).
For me the problem was in my theme in the end. My theme overwrites some Woocommerce files and it had some outdated code related to the rich snippets
Same problem here. Also with 3.5.7 is still have the problem, but I have it only in the single product pages (I use variabel products). In the category pages everything is fine.
What to do?
Now it seems to work. I think it was a caching issue. Thanks
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Tables are not responsiveYou are the best. This worked out 🙂