Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @homeworker,

    Thank you for sharing the product link with us.

    I have checked on your site and I have observed that discounted fee is calculated correctly on the product price(Subtotal price) and on the added custom price.

    For example: Subtotal is €282,50 + €10,00 = €292,50. Now, if the 3% discount is applied on €292,50 it will be 8.775 which is rounded to 8.78 on your site.
    I am attaching a screenshot for your reference: https://www.screencast.com/t/Rdu5tjHD

    If discount fee would have calculated only on the subtotal then €282,50 * 3% = 8.475 would have been discounted.

    Can you please once again check on your site and let me know the results?

    Regards,
    Komal Maru

    Thread Starter homeworker

    (@homeworker)

    Thanks for the check. We found a fix for the problem. We calculate the discount directly without plugins.

    But if you want to test you can add small code to functions.php

    https://gist.github.com/woogists/f24ba17b9fdc0023cd72c95520f80723#file-wc-percentage-based-surcharge-php

    Hi @homeworker,

    You are welcome.

    I am glad to know that you have found the fix for the issue. And thank you for sharing the custom code with us.

    I shall check on it and try to replicate the issue on our site.

    Regards,
    Komal Maru

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Fee not discounted’ is closed to new replies.