Upon checkout of SPECIFIC product, user becomes an affiliate

How do I set it up so that upon checkout of specific product, user becomes an affiliate automatically? Do I need a separate checkout for the specific products that are for Affiliates only?

Posted in

Comments

5 responses to “Upon checkout of SPECIFIC product, user becomes an affiliate”

  1. Carolyn Avatar
    Carolyn

    Is there any way you can help me on this?

    1. antonio Avatar
      antonio

      Hi Carolyn,
      This code should work.
      Kind Regards,
      Antonio B.

  2. Carolyn Avatar
    Carolyn

    Here is our code, can you tell me what we are doing wrong?

    https://pastebin.com/cVEv7tPw

  3. Carolyn Avatar
    Carolyn

    We used both code snippets and they worked separately from each other but not together. Can you give my any more guidance on this?

  4. antonio Avatar
    antonio

    Hi Carolyn,
    With this code, the customer is joined to the affiliates program when the order is created.
    This post explains how to check if a product is on an order. You could use this for customize the code.
    Kind Regards,
    Antonio B.

Share