User becomes an affiliate upon purchase of product

Posted in

We used both this https://businessbloomer.com/solved-woocommerce-check-product-id-order/ and this https://gist.github.com/eggemplo/4b1859c4fea4ddb66340c3df177d8065 to set it up so when a customer buys a specific product from our store they are registered as an affiliate but it does not work. Please see our code: https://pastebin.com/cVEv7tPw and let us know what we did wrong?

Thank you so much!!

One Response to User becomes an affiliate upon purchase of product

  1. George April 21, 2017 at 9:05 am #

    Hi Carolyn,

    Please have a look at this snippet https://pastebin.com/raw/FD45ZwJt. I think this is what you need for this feature.
    Also, keep in mind that if you allow guest checkouts, the affiliate will be created but with no credentials.

    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