• Hi Team,

    I would like to know how the transaction charge on payment method type is calculated. As of now, I have set the charge as 2%. I want this charge to be on the total order amount.

    For example: A customer buys an item for Rs 1000, The trasaction charge for this at 2% should be Rs 20 and comission at 10% should be Rs 100.

    Am i missing something here? In my dashboard it is showing transaction charge at Rs 17.88.
    PS: GST of 18% charged on commission

    • This topic was modified 4 years, 5 months ago by bohrabiz.
Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author WC Lovers

    (@wclovers)

    Transaction charge calculated on vendor’s items total order amount.

    If we will generate this on total order amount then many issues will come.

    Suppose an order has 2 items from vendors. 1 Product cost 100 and another product cost 1000, so total order amount 1100

    Now, if we calculate transaction charge on 1100 and deduct from each vendor then it will be unethical, specially for the vendor whose item cost is low.

    Thread Starter bohrabiz

    (@bohrabiz)

    Hi Team,

    Yes, I understand that but in the scenario I have given earlier, The vendors total order amount was 1000, so logically 2% of that is 20 right? Yet in the invoice it is showing 17.88?
    Can you please explain this?

    Plugin Author WC Lovers

    (@wclovers)

    Show me this order’s details page screenshot, I will explain you.

    Thread Starter bohrabiz

    (@bohrabiz)

    Hi Team,

    As per your request, here is a screenshot

    https://ibb.co/sqJZG1Q

    Commission – 10%
    Transaction Charge – 2%
    GST – 18%

    Thread Starter bohrabiz

    (@bohrabiz)

    Any update on this??

    Plugin Author WC Lovers

    (@wclovers)

    Attachment is empty.

    Thread Starter bohrabiz

    (@bohrabiz)

    Please find the attachment below

    https://ibb.co/jhR61pp

    Plugin Author WC Lovers

    (@wclovers)

    Thanks. This commission calculation is perfect.

    Product cost – 1100
    10% commission for Admin – 1100 x 10% = 110
    Commission on Tax 18% = 110 x 18% = 19.8
    Total Admin Fee = 110 + 19.8 = 129.8

    Vendor’s Earning = 1100 – 129.8 = 970.2
    Transaction charge 2% = 970.2 x 2% = 19.4

    This transaction charge will going to add as Admin Fee so again Commission on Tax will be applicable on this – 19.4 x 18% = 3.49

    So Final Commission on Tax = 19.8 + 3.49 = 23.29
    Final Admin Fee = 110 + 23.29 + 19.4 = 152.69
    Final Vendor Commission = 1100 – 152.69 = 947.31

    Thread Starter bohrabiz

    (@bohrabiz)

    Hi,
    I understand the break up now, I would ideally want the transaction charge to be on the total order amount, that is 1100. Is there any snippet I can add to do this?

    Plugin Author WC Lovers

    (@wclovers)

    This may generate negative commission for vendors when one order will have more than one vendor.

    Suppose, one vendor’s product cost 1000 and another vendor’s product cost only 10

    Thread Starter bohrabiz

    (@bohrabiz)

    Hi Team,

    Yes agreed, by total order amount I meant, total order amount of the vendors products. For eg: lets say we have a sale of 2 products with two different vendors. Total order amount 1200

    Vendor 1 – order amount 1100 – 10% commission(110) – 2% transaction charge( 22) – 18% on fees (23.76)
    Total fees – 155.76

    Vendor 2 – order amount 100 – 10% (10) -2% transaction charge(2) – 18% on fees (2.16)
    Total fees – 14.16

    I don’t understand how negative balance comes into picture if we are taking the total order value of the vendor in a sale.

    Plugin Author WC Lovers

    (@wclovers)

    order amount 1100 – 10% commission(110) – 2% transaction charge( 22) – 18% on fees (23.76)

    – Transaction charge calculated on vendor’s commission, not on Admin’s Fee.

    10% commission(110) – 2% transaction charge( 22)

    – This is wrong calculation. It should be (1100 – 110) x 2%

    Thread Starter bohrabiz

    (@bohrabiz)

    Hi Team,

    – Transaction charge calculated on vendor’s commission, not on Admin’s Fee.

    Is there a way to make the transaction charge work exactly like admin commission. I don’t want the transaction charge to be (1100-110) x 2% but (1100) x 2%

    Plugin Author WC Lovers

    (@wclovers)

    Add this snippet added to your site. This will work after WCFM next update.

    add_filter( 'wcfmmp_transaction_charge_calculate_on_amount', function( $commission_amount, $vendor_id, $product_id, $order_id, $gross_sales_total, $total_commission, $commission_rule ) {
    	return $gross_sales_total;
    }, 50, 7 );
    add_filter( 'wcfmmp_transaction_charge_calculate_on_item_count', function( $item_count, $vendor_id, $product_id, $order_id, $gross_sales_total, $total_commission, $commission_rule ) {
    	return 1;
    }, 50, 7 );

    Add custom code(s) to your child theme’s functions.php
    In case you do not have child theme then add those using this plugin –?https://www.ads-software.com/plugins/code-snippets/

    Thread Starter bohrabiz

    (@bohrabiz)

    Thanks a lot !!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Transaction Charge not calculated correctly’ is closed to new replies.