Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate General Questions › block the remuneration of an affiliate
- This topic has 14 replies, 8 voices, and was last updated 8 years, 2 months ago by
mrsupportfriend.
-
AuthorPosts
-
December 7, 2011 at 6:51 pm #4972
alchymed
Memberis it possible to block the remuneration of an affiliate if he buys the product itself ?
December 8, 2011 at 4:07 am #39378admin
KeymasterYou 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.
December 8, 2011 at 4:16 pm #39379alchymed
Memberyes that’s it, with his own link
December 9, 2011 at 6:49 am #39380admin
KeymasterOkay.. yeah it is possible to stop an affiliate from getting commission from his own purchase. See the following post.
December 10, 2011 at 6:39 am #39381admin
KeymasterOpen 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.
January 5, 2012 at 3:13 pm #39382nathanbarry
MemberThanks!
January 14, 2012 at 10:49 pm #39383Artisantopia
MemberI 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!
January 15, 2012 at 5:47 am #39384admin
KeymasterYes you can do it.
February 21, 2012 at 11:37 pm #39385tekt
MemberDoes this also work with the Cart66 shopping cart?
February 22, 2012 at 2:55 am #39386admin
KeymasterYeah it should. I am guessing you got your answer from here:
March 30, 2017 at 2:23 am #39387ds1291
MemberHello,
If I follow the instructions and edit the PHP file mentioned, will it get overwritten upon plugin updates?
March 30, 2017 at 3:23 am #39388wzp
ModeratorYes.
August 4, 2017 at 7:48 pm #39389mrsupportfriend
MemberDo 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’);
August 4, 2017 at 8:39 pm #39390wzp
ModeratorYou can make the edit while it is active.
August 5, 2017 at 10:39 pm #39391mrsupportfriend
MemberThanks!
-
AuthorPosts
- You must be logged in to reply to this topic.