• Resolved nouradawy

    (@nouradawy)


    the admin commission is calculated from the order total price, not the subtotal price which adds both the product price + transaction fees and calculates the commission that needs to get paid out.

    I need the earning be calculated as ((product price – 1) * 0.91 ) . ( commsion ( 9% +1% ) )

    Image

    also, I found that after the order has been placed if I changed the price from woo-commerce orders this price doesn’t reflect the vendor earning as example :

    If i changed the product price from 26$ to 20$ the earning be the same 24.10$

    • This topic was modified 4 years, 1 month ago by nouradawy.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @nouradawy ,

    Okay, I understand your request.

    Out of the box, Dokan’s calculation of vendor earning is like this –

    Vendor earning = Total order amount – admin commission

    At the moment we only have a separate function for Paypal fees to be either added to the admin or vendor earning. For other payment methods, one has to make changes via custom code.

    Here are some helpful filter that can be used to modify the earning and commission calculation –

    apply_filters( 'dokan_get_earning_by_product', $earning, $product, $context );
    apply_filters( 'dokan_order_admin_commission', $saved_fee, $order );
    apply_filters( 'dokan_get_earning_by_order', $earning );

    For the order value changes, vendor earning is not modified because the changes are done from the admin side. So, the vendor might not agree with that reduction hence his earning should not be affected. However, I agree there can be some functionality to deduct the order amount which vendors can agree on. I will discuss this with the developers.

    Thank you ??

    Thread Starter nouradawy

    (@nouradawy)

    May I know the Dir ( location ) of these filters you mentioned, I would be so thankful

    Thread Starter nouradawy

    (@nouradawy)

    never mind I already found it under Commissions.php
    I tried changing get_total() to get_subtotal() but that didn’t help

    `$product_price = is_null( $price ) ? (float) $product->get_total() : (float) $price;’

    the results were the same nothing changed

    Hello @nouradawy ,

    I am afraid, I do not have an exact example code to share on this topic.

    If you want to have paid solution regarding customization you can contact on weLab.

    Thank you ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Transaction fees included with commision’ is closed to new replies.