Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate General Questions › Can I prevent affiliate self-commission
- This topic has 6 replies, 4 voices, and was last updated 10 years, 3 months ago by Carlos.
-
AuthorPosts
-
July 23, 2014 at 7:17 am #11229cosmicbuffetMember
Hello,
I found a thread that tells how to change settings in PHP to stop someone from collecting commission on their own purchase but I can’t find where to change that on my site. I looked in the file manager as well as the WP back office. Can’t there just be a simple way to just select a box that says, “disable self commissions” as well as “retain original referrer” so that the original referrer gets credit for the commissions and someone can’t just go in and override the referrer’s marketing efforts?
I copied this code:
define(‘WP_ESTORE_NO_COMMISSION_FOR_SELF_PURCHASE’, ‘0’);
to change it to:
define(‘WP_ESTORE_NO_COMMISSION_FOR_SELF_PURCHASE’, ‘1’);
But I can’t find out where to paste it.
I have a 50% recurring payment with forever cookies and want to make sure the original referrer gets the commission.
Thanks for your help in telling me how to find where to paste that code (if it still works.)
Kerri
July 23, 2014 at 3:23 pm #64562wzpModeratorAre you using the affiliate plugin with WP eStore plugin?
You got that code from this thread?
https://support.tipsandtricks-hq.com/forums/topic/block-the-remuneration-of-an-affiliate
It says:
Open the “eStore_advanced_configs.php” file from the eStore plugin and find the following line of code:
define(‘WP_ESTORE_NO_COMMISSION_FOR_SELF_PURCHASE’, ‘0’);
Once you find it change it to the following:
define(‘WP_ESTORE_NO_COMMISSION_FOR_SELF_PURCHASE’, ‘1’);
This will make it so the plugin won’t award commission on purchases where the referrer is the buyer.
July 25, 2014 at 9:15 pm #64563cosmicbuffetMemberYes I am using the entire suite, with the e-store, affiliate platform and the e-member plugins. The problem is, I can’t find where the “eStore_advanced_configs.php” file is. Do I find that in the wordpress back office? Do I find it in my cpanel filemanager? do I find it in the e-store settings? I am sure if I could just find that php file, I could figure it out. I can’t figure out where the file is.
Kerri
July 25, 2014 at 10:18 pm #64564cosmicbuffetMemberNever mind, I found it. Thank you very much for your patience.
August 9, 2014 at 5:02 pm #64565CarlosMemberHello, I am asking the same question but i run wp affiliate on WooCommerce. How I can mange it in this way?
Thanks
August 10, 2014 at 5:31 am #64566adminKeymasterDo the following:
Open the “wp_aff_advanced_configs.php” file from the affiliate plugin 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 10, 2014 at 9:20 pm #64567CarlosMembergreat! thanks! i’ll follow
-
AuthorPosts
- You must be logged in to reply to this topic.