Set Affiliate Referral Status

Hi.

I use the WooCommerce Order Status Manager to set a status where the order is set to paid but not to completed. How can I get the referral status to be changed from pending to accepted? Is there an easy way?

Many greetings

Guido


Comments

3 responses to “Set Affiliate Referral Status”

  1. Hello Eugene.

    I know how to do it manually. I need a way to do it automatically when the order status is set to a status set up with the WooCommerce order manager.

    1. Eugen Bleck Avatar
      Eugen Bleck

      Hi Guido,

      Thank you for the feedback. I trust the day is evolving with a lot of promise.

      With regards to your inquiry, yes it is possible. If WooCommerce Order Status Manager plugin offers hooks for status updates then you can use them and trigger a referral status update. He’s how to trigger a referral status update with Affiliates:

      $r = new Affiliates_Referral_WordPress( $referral_id );
      $r->update( array( ‘status’ => AFFILIATES_REFERRAL_STATUS_ACCEPTED );

      I would also highly recommend you take a look at:
      * http://docs.itthinx.com/document/affiliates-enterprise/api/referrals/

      Kind regards,
      Eugen.

  2. Eugen Bleck Avatar
    Eugen Bleck

    Hi Guido,

    I trust you are well and safe! Thank you so much for reaching out and for asking your question.

    You can change the referral status from Pending to Accepted by:
    * Navigating to Affiliates > Referrals
    * From the list of referals, click the pencil by the desired referral you would love to edit.
    * Change the Status dropdown to the the desired option and click Save.

    STAY SAFE and I wish you a very fine and productive day ahead!

    Kind regards,

    Eugen.

Share