Purchase by affilate

Posted in

I have to apply a 10% discount if the buyer is an affilate AND if the $cart_subtotal < 100

I was thinking about writing a function, but how can I check if the user in an affilate?

Do you have an alternative solution in mind?

Thank you

One Response to Purchase by affilate

  1. George November 28, 2019 at 7:23 pm #

    Hi Rocco,

    I also think you need a custom function for this and IMO the easiest way would be to apply a predefined coupon if the conditions are met. In order to check if the customer is an affiliate you should use the function affiliates_get_user_affiliate.

    Hope it helps.


Only authorized members can comment on this topic.

Log in

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