Support » Plugin: Affiliates Manager » Commission granted in the “Completed Status” of the Order.

  • Resolved wotan6891

    (@wotan6891)


    Hi, and thanks for this great plugin.

    I would like to change the approval of the commission earned by the Affiliate.

    What happens is that when I change the Order Status to “Precessing” the commission is automatically awarded to the Affiliate. I would like it to be granted when the order status is “Completed”

    Thanks for your help.

    Greetings

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Hi,

    A commission is rewarded when a WooCommerce order is in the “processing” or “completed” state. If a commission is already rewarded when processing, the plugin will ignore it when it becomes completed.

    Thank you.

    Thread Starter wotan6891

    (@wotan6891)

    Hi, thank you for you answer.

    I don’t want it to be rewarded when it’s in the “Processing” state.

    I would like it to be rewarded only when I put it in the “Completed” status

    If you help me please, in what way I do it, I would appreciate it a lot.

    Greetings.

    Plugin Author affmngr

    (@affmngr)

    @wotan6891, Please open the “Plugin.php” file (/wp-content/plugins/affiliates-manager/source) and search for this line:

    
    if (strtolower($order_status) != "completed" && strtolower($order_status) != "processing") {
    

    Change it to the following:

    
    if (strtolower($order_status) != "completed") {
    
    Thread Starter wotan6891

    (@wotan6891)

    Hello there,

    I thank you very much, I solve what I needed.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Commission granted in the “Completed Status” of the Order.’ is closed to new replies.