• Resolved fernandobrenes

    (@fernandobrenes)


    Hi,

    Is there a way to apply a commission for the total amount of the order?

    Basically, I want to have the same commission as PayPal Gateway fee and I believe WCFM lacks this type of commission.

    For example:
    Product $100 + $4 shipping. This is PayPal charges:

    Payment details
    Purchase Total$100.00 USD
    Sales Tax$0.00 USD
    Shipping Amount$4.00 USD
    Handling Amount$0.00 USD
    Insurance Amount$0.00 USD
    Gross Amount$104.00 USD
    PayPal Fee-$3.32 USD
    Net Amount$100.68 USD

    This is how WCFM calculates the fee using:
    Percentage: 2.9% + 0.3 (Same as PayPal)

    I have enabled also:
    add_filter( ‘wcfmmp_is_allow_commission_on_shipping’, ‘__return_true’ );

    So this is how it’s calculated by WCFM:
    $100.00 x 0.029 + 0.3 = $3.20 Commission
    Shipping: $4 x 0.029 + 0.3 = $0.42
    Total Commission: $3.62

    As you can see it’s different than PayPal: $3.32 USD vs $3.62

    Is there a way to apply a Commission for the entire Purchase and not commission for the product / commisssion for the shipping / commission for the tax?

    I belive the easiest way would be to create a Gateway fee commission and also a Commission for the order so you don’t mix them.

    Please let me know and if there’s any plan to create a Gateway Commission fee or a workaround for this so it will always match regardless of the products added, etc.

    Thank you,
    Best Regards

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter fernandobrenes

    (@fernandobrenes)

    Hi,

    Any suggestions?
    Thank you,
    Best regards

    Plugin Author WC Lovers

    (@wclovers)

    Hi,

    Please add this code to your child theme’s functions.php –

    add_filter( 'wcfmmmp_shipping_commission_rule', function( $commission_rule ) {
    	if( isset( $commission_rule['mode'] ) && ( $commission_rule['mode'] == 'percent_fixed' ) ) {
    		$commission_rule['mode'] = 'percent';
    	}
    	return $commission_rule;
    });

    This will resolve for you. Well, this will work after WCFM Marketplace next update (3.1.4).

    Thank You

    This solution does not work, How can we calculate commission on the total order value (including tax, shipping) instead of adding commission to product, tax, shipping separately. Adding them separately creates values of tax and shipping wrongly in the commission invoices which is not desired.

    Can you please provide code to calculate commission on total order value instead please?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Commision for Total Amount’ is closed to new replies.