Display Affiliate name in the customer area

Hello,

My client would like to display the affiliate who was referenced for the order in the woocommerce customer area at the order level.

Is it possible to do this?

Many thanks.

Vânia

3 Responses to Display Affiliate name in the customer area

  1. George October 27, 2021 at 6:13 pm #

    Hi Vânia,

    Then you need to go through each order for this customer and get the affiliate id from your db referrals table where the post_id is the order id.

    Kind regards,
    George

  2. Vânia Messiah October 27, 2021 at 3:20 pm #

    Hi George,

    Thank you for your reply. I have the possibility to create a new tab in woocommerce customer area and add a shortcut to display what I want.

    Do you know if I can display the affiliate behind the orders using a shortcut ? And what would it be?

    Many thanks.

    Vânia

  3. George October 27, 2021 at 10:07 am #

    Hi Vânia,

    Welcome back to our support channel.

    Such a feature can only be possible through a custom implementation. You need to use the existing endpoint for orders or add your own custom endpoint in the WC my-account template and the in its content, render information about the referred order and the affiliate involved in it.

    Alternatively you can modify the referrals-entry.php template and display the order id for the order that is involved in the referral.
    More information on how to override Affiliates Dashboard templates can be found in the plugin documentation:
    http://docs.itthinx.com/document/affiliates-enterprise/api/templates/

    Kind regards,
    George

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share