Hi Delerius and thank you for writing!
It’s not so easy to explain because you should change a lot of code in the plugin. I’m working on a enanchement in these days, i’ll add an option to choose to add the payment fee before or after the other fees/taxes, like you need!
Only give me some days to work on it!
Thank you!
Hello Delerius, i’m working on this change.
I do not understand if you want the payment fee to be applied before the taxes, that means, i.e. the VAT is calculated also on this fee, or simply, add it before the other taxes.
I need to do a fee calculation on the total plus taxes. Since I charge a credit card processing fee of 4%, the 4% has to be like this, (Sub Total) * 4% = (Total)
Or like this…
Cart Subtotal
$1,439.95
+
Shipping and Handling
Local Pickup (Free)
+
Background Check
$8.95
+
Sales Tax
$86.40
(SUBTOTAL)
*
Credit on pickup fee (Right now… you have the fee calculating the total before the taxes, I need ir after the taxes…)
$61.92 (4.30%)
=
Order Total
$1,597.22
Thanks!
the calcuation above is how the plugin is currently working…
Below is what I am after…
Cart Subtotal
$100.00
+
Shipping and Handling
Local Pickup (Free)
+
Sales Tax 6%
$6.00
(SUBTOTAL = $106.00)
*
Credit on pickup fee
$4.24 (4%)
=
Order Total
$110.24
Hi Delerius,
just to test, open the file class.wc-pf.php in wp-content/plugins/woocommerce-payment-fees/classes/ and replace all its code with the code on this Gist: https://gist.github.com/SiR-DanieL/8e705f0cda53cba86cdb
Let me know if it is like you need!
You will have to set the Taxes calculation preferences in WooCommerce > Settings > Checkout > Your payment gatway settings
Thank you! Works just the way I need it too!
Ok great! That’s only a temporary change. I’m working on another enanchement too, i’ll send an update with both soon!
Please consider to write a review and rate this plugin 5 stars if you like our support and want to help us!
Thank you very much!
Have a nice week end!
Hi!
I need to do exactly the same than @delerius (to calculate the paypal fee after including shipping), but this Gist link below doesn’t work anymore so I couldn’t try… Can you send it again or tell me the updated solution?
Thank you so much in advance!
I also need this as well. Any help is greatly appreciated.