Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Can I prevent affiliate self-commission

by

Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate General Questions › Can I prevent affiliate self-commission

Tagged: affiliate, Commission, disable self commission, prevent self commission, WP Affiliate

  • This topic has 6 replies, 4 voices, and was last updated 10 years, 10 months ago by Carlos.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • July 23, 2014 at 7:17 am #11229
    cosmicbuffet
    Member

    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 #64562
    wzp
    Moderator

    Are 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 #64563
    cosmicbuffet
    Member

    Yes 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 #64564
    cosmicbuffet
    Member

    Never mind, I found it. Thank you very much for your patience.

    August 9, 2014 at 5:02 pm #64565
    Carlos
    Member

    Hello, 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 #64566
    admin
    Keymaster

    Do 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 #64567
    Carlos
    Member

    great! thanks! i’ll follow :-)

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ