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

Prevent Members using both coupon and getting affililate commission

by

Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate Tweaks › Prevent Members using both coupon and getting affililate commission

  • This topic has 6 replies, 2 voices, and was last updated 13 years, 10 months ago by TurboWebs.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • June 9, 2011 at 6:08 am #1545
    TurboWebs
    Member

    The site uses eStore, eMember and the Affiliate Platform.

    Members are entitled to discounts, which they redeem by using coupon codes.

    Affiliates are almost always members as well. (Or it could be set up so that affiliates are also members, if that would help.)

    The problem that has arisen is that some members are using their own affiliate links plus the members-only coupon codes to get a double dose of benefits.

    We basically can’t afford to award affiliate commissions for people buying products for themselves and with the members discount.

    What would be the best solution?

    June 10, 2011 at 12:42 am #33171
    amin007
    Participant

    I just added a feature that allows you to not give a commission out for a transaction where coupon code is used. Maybe you can use this feature? Please get a new build of eStore from here:

    https://support.tipsandtricks-hq.com/update-request

    Then go to “WP eStore Settings” -> “AddOn Settings” and check the “Do Not Award Commission if Coupon Used” field.

    June 10, 2011 at 7:24 am #33172
    TurboWebs
    Member

    Sounds great. Is there any possibility of narrowing it down to certain coupon codes or certain products – even with some coding (I don’t mind getting my hands dirty)?

    June 10, 2011 at 11:04 pm #33173
    amin007
    Participant

    If you do not want to give commission for certain products then there is already an option in eStore that allows you to override the commission settings on a per product basis.

    If you narrow it down to certain coupons then you should be able to add your conditions inside the “Do Not Award Commission if Coupon Used” condition. Look for the following line of comment in the “eStore_post_payment_processing_helper.php” file:

    //Check if the "DO not award commission if coupon is used" feature is in use

    Inside the “if” statement you can add your exceptions.

    June 12, 2011 at 2:20 am #33174
    TurboWebs
    Member

    Thanks!

    Just checking – there’s definitely no way to prevent commissions on an affiliate’s own purchases for themselves?

    June 12, 2011 at 3:22 am #33175
    amin007
    Participant

    Inside that condition you simply check the purchaser’s email address with the affiliate’s email address. If they match then it means the affiliate is the purchaser so don’t go ahead with the commission.

    June 21, 2011 at 7:24 am #33176
    TurboWebs
    Member

    Thanks very much. I’m seeing how this goes…

    if ($payment_data == $wp_aff_affiliates_db->email) {

    $retrieved_product->commission = 0;

    eStore_payment_debug(‘Setting Commission to zero since Buyer and Affiliate are the same’,true);

    }

  • 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