- This topic has 14 replies, 8 voices, and was last updated 7 years, 3 months ago by .
Viewing 15 posts - 1 through 15 (of 15 total)
Viewing 15 posts - 1 through 15 (of 15 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate General Questions › block the remuneration of an affiliate
is it possible to block the remuneration of an affiliate if he buys the product itself ?
You mean when the affiliate buys with his own link?
Normally, buying with their own affiliate link is not an issue since you will set a minimum payout limit which makes it so they have to refer a few sales before they get the commission paid out.
yes that’s it, with his own link
Okay.. yeah it is possible to stop an affiliate from getting commission from his own purchase. See the following post.
Open the “wp_aff_advanced_configs.php” file and look for the following line of code:
define('WP_AFFILIATE_NO_COMMISSION_FOR_SELF_PURCHASE', '0');
Once you find it change it to the following:
define('WP_AFFILIATE_NO_COMMISSION_FOR_SELF_PURCHASE', '1');
This will stop commission on self purchase when a buyer email address is present in the transaction so the plugin can match the buyer and affiliate. This will make it so the plugin won’t award commission on purchases where the referrer is the buyer.
Thanks!
I would also like to block self purchase payouts. I have Wp Affiliate integrated with S2Member. I looked for the wp_aff_advanced_configs.php but it doesn’t exist in my installation.
Can I do this with my setup?
Thank you!
Yes you can do it.
Does this also work with the Cart66 shopping cart?
Yeah it should. I am guessing you got your answer from here:
Hello,
If I follow the instructions and edit the PHP file mentioned, will it get overwritten upon plugin updates?
Yes.
Do I need to deactivate the plugin when making the edit described below or can I make the edit while the plugin is active?
Open the “wp_aff_advanced_configs.php” file and look for the following line of code:
define(‘WP_AFFILIATE_NO_COMMISSION_FOR_SELF_PURCHASE’, ‘0’);
Once you find it change it to the following:
define(‘WP_AFFILIATE_NO_COMMISSION_FOR_SELF_PURCHASE’, ‘1’);
You can make the edit while it is active.
Thanks!