Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Pinch Of Code

    (@pinchofcode)

    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!

    Plugin Author Pinch Of Code

    (@pinchofcode)

    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.

    Thread Starter Delerius

    (@delerius)

    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!

    Thread Starter Delerius

    (@delerius)

    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

    Plugin Author Pinch Of Code

    (@pinchofcode)

    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

    Thread Starter Delerius

    (@delerius)

    Thank you! Works just the way I need it too!

    Plugin Author Pinch Of Code

    (@pinchofcode)

    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!

    Adeluski

    (@adeluski)

    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.

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