• Resolved colinfroggatt

    (@colinfroggatt)


    Hi. I’m using WPAM with Woo commerce. I have some products where we add a deposit using Woo Fees and I want to exclude that deposit amount from the order total that is used by WPAm to calculate the commission.

    I have found your filter ‘wpam_credit_amount’ but by the time this is called the commission is already calculated.

    I could recalculate the commission but I want to know if there is a better way to do this?

    cheers, colin

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

    (@colinfroggatt)

    Hi. just done some more digging and found that you do remove fees from orders (/wp-content/plugins/affiliates-manager/source/Plugin.php – wpam_get_total_woocommerce_order_fees($order);). However, it does not do this for Woo Subscription orders. When I turn on debug and look in the debug log (wpam-log.txt) I can see lines like this for normal orders:

    SUCCESS : WooCommerce Integration - Total amount: 1460.00, Total shipping: 160, Total tax: 0, Fees: 0

    But the logged line for subscriptions does not include Fee info and the commission amount calculated for subscription orders includes the Fee amount.

    SUCCESS : WooCommerce Subscription Integration - Order ID: 13444, Total amount: 215.00, Total shipping: 80, Total tax: 0

    In my case, the fee only applied to the initial order amount and not to recurring subs payments. Looking in your code confirms that no fees are calculated for subscriptions.

    Is this something you can fix? I am looking to purchase your coupons addon but this is a bit of a deal breaker really.

    thanks, Colin

    Plugin Support mbrsolution

    (@mbrsolution)

    I am looking to purchase your coupons addon but this is a bit of a deal breaker really.

    Thank you for reaching out to us. Because you are asking bout our premium addon, please use the following contact form. Use the other forum also to discuss the fees issue you are having.

    https://wpaffiliatemanager.com/contact/

    It is not permitted to discuss premium products in this forum.

    Kind regards.

    Thread Starter colinfroggatt

    (@colinfroggatt)

    Hi, the problem here is with your free WPAM plugin, not the premium addon – I haven’t got there yet.

    Do I need to repost this without ref to said addon or can you answer this post?

    thanks, Colin

    Thread Starter colinfroggatt

    (@colinfroggatt)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘exclude Woo Fees from commision calculation’ is closed to new replies.