Support » Plugin: Refer A Friend for WooCommerce by WPGens » how to use the referral link?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter deepthi yamaka


    hey Goran,
    please tell me how to do this, i am in urgent need.
    thnk you

    Plugin Author Goran87


    Hi deepthi,

    sorry for late reply, i was away in january.

    As long as url is finishing with: “?raf=ref5847878” it will work.

    so you can do via home page:

    or via product like:

    In premium version, i added these referral links inside each product as woo tab to make it easier for users. Link from “my account” page is linking to home page.


    Thread Starter deepthi yamaka


    hi Goran,
    thnks for ur reply.
    by giving its been opening the homepage, and after going to shop or any other link, the referral link is going away. also if i add the referral link to the product, after adding to the cart, if i go to viewcart, the link is going away. i tried placing the link during checkout also like “” but, after placing the order, referral link is not being taken.

    i don’t understand how to use this? or is there any problem with settings? please help.

    i will wait for ur reply


    I’m with the same problem.
    How to use it correctly?

    Plugin Author Goran87


    Hi, not sure how i didnt see question from deepthi before.

    So, referral link works this way.

    1. User1 shares his referral link, lets say its:
    2. When user2 clicks on his link, he gets to site homepage and at the same time cookie with referral code value “12345” is being saved in user2 browser. Thats why /?raf=12345 does not show across site anymore, as its saved as a cookie.
    3. During checkout, site is checking if cookie “raf” exists and if it does it saves it together with an order as a metadata of that order.
    4. When that order is being marked as complete, site is checking if metadata “raf” exists, if it does, its checking value and searching for a user whos referral code is saved, in this case its user1 referral code. Then it creates a coupon for user1 and send it to him. If order was done via referral code, you will see it inside order description, like here:

    I hope this explains it better. Ill create video tutorial as well.

    Let me know if u have any more questions or need further clarification.

    • This reply was modified 4 years, 5 months ago by Goran87.

    Is it possible that the user who sent the link receives the discount only with the user’s registration?

    Plugin Author Goran87


    Hi cleude, i replied to you on the other thread.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘how to use the referral link?’ is closed to new replies.