Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter atilax2020

    (@atilax2020)

    I think i did it. I change code in the core of WCFM. I am going to do some tests to see if really works fine.

    danesmarc, where are you from???

    Creo que lo he resuelto. Tocando código… Voy a a hacer unas pruebas haber si realmente funciona.

    danesmarc de donde eres???

    Thread Starter atilax2020

    (@atilax2020)

    Sorry the last post is bad

    Here is the good tests.

    My configuration is: https://ibb.co/5F13B36

    Here is my orders with the same products. I did 2 cases.

    1-. In the functions.php of my child theme i added:

    add_filter( ‘wcfmmp_is_allow_commission_on_tax’, ‘__return_true’ );
    add_filter( ‘wcfmmp_is_allow_commission_on_shipping’, ‘__return_true’ );

    I have 2 orders. One without shipping ( local pickup ) and one with shipping with cost ( 5€ + taxes (21%))

    Order without shipping ( Local Pickup ): https://ibb.co/GxKZ3cf

    Order with shipping ( 5€+taxes): https://ibb.co/RgSWY9n

    This orders commisions are BAD.

    2-. In the functions.php of my child theme i added:

    add_filter( ‘wcfmmp_is_allow_commission_on_tax’, ‘__return_false’ );
    add_filter( ‘wcfmmp_is_allow_commission_on_shipping’, ‘__return_false’ );

    I have 2 orders. One without shipping ( local pickup ) and one with shipping with cost ( 5€ + taxes (21%))

    Order without shipping ( Local Pickup ): https://ibb.co/Tt7J27J

    Order with shipping ( 5€+taxes): https://ibb.co/8xmf2T9

    —————————————————————————–

    Only the order without shipping in case 2 is OK.

    —————————————————————————–

    The calc correct is:

    Commission % = 10%

    Tax of commission = 21%

    subtotal = 34,45

    commission = 34,45 * (10/100) = 3,45

    Commission tax = 3,45 * (21/100) = 0,723

    Total Commission = 3,45 + 0,723 = 4,17

    —————————————————————————-

    I need the orders without shipping and with shipping are the same, like the calc.

    Thank you very much 😉

    Thread Starter atilax2020

    (@atilax2020)

    Hi,

    I added your lines in functions.php in my theme child.

    I put here the screenshots of the orders. One order without shipping ( local pickup ). Here the commission is perfect. And one order with the same products, but with shipping cost ( 5€+tax of shipping(21%) ). And here the commissions is bad.

    The configuration: https://ibb.co/5F13B36

    Commission = 10%
    taxes of commission = 21%

    Order without shipping or shipping cost = 0 : https://ibb.co/HKcMC9d

    Order with shipping with cost ( 5€ + 21% taxes ): https://ibb.co/HzqnmmM

    Thank you very much

    Thread Starter atilax2020

    (@atilax2020)

    If i have comission of the order ( without taxes) excluding shipping ???

    Because it runs ok if shipping is free shipping or local pickup.

    But if shipping has cost, the commission is bad.

    i don’t know what calcs is doing.

    I only need the same with shipping cost and without shipping or free shipping:

    % commission + % taxes of commission

    example:

    subtotal = 120
    comission % = 10
    taxes of commision = 21

    Commission = 120 * (10/100) = 12
    Tax of Commision = 12 * (21/100) = 2,52
    Total Commision = 12 + 2,52 = 14,52

    If the order has shipping with cost, the commision should be the same. But it’s not…

    i don’t know why. But i need it.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)