• Resolved roberto22

    (@roberto22)


    Hi,

    I have enable the referral option and i have the follwing issue:

    1) The user send his referral link to a friend to register. The referral registers in the website and he gets some money for it. Now, the referral makes a purchase and the money is credited to the first user. This is working fine, but the thing is that the first user get the money even though the purchase from the new user is on-hold or pending payment.

    How can i change it to only credit the money to the first user when the order from the referral is completed?

    Also, i am not sure what the limit option in the settings is for. Can you please explain it? Does it mean how many referral can register durng the time lapse? https://prnt.sc/10z5zwt

    Thanks for the help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter roberto22

    (@roberto22)

    Also, is possible to have a limit for register referral?

    For example. A user can only have 10 referral registerd wiht his referral link.

    Plugin Author Subrata Mal

    (@subratamal)

    @roberto22 We are using WooCommerce paid statues that are processing or completed to credit referral bonus.

    You can use the below-attached code in the theme function.php file to change paid statues.

    add_filter('woocommerce_order_is_paid_statuses', 'woocommerce_order_is_paid_statuses_callback');
    
    function woocommerce_order_is_paid_statuses_callback(){
        return array('completed');
    }

    Secondly, you can set a limit per day, per week, and per month basis.

    Thread Starter roberto22

    (@roberto22)

    Hi,

    I added the snippet but the first user still get his referral money when the order is on-hold, and not completed.

    I apreciate the help! Thanks!

    Thread Starter roberto22

    (@roberto22)

    Hi,

    Any update on this?

    Plugin Author Subrata Mal

    (@subratamal)

    @roberto22 Please check if there is any plugin conflict because this code is working perfectly for many customers.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Referral’ is closed to new replies.