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, 3 months ago by TurboWebs.
-
AuthorPosts
-
June 9, 2011 at 6:08 am #1545TurboWebsMember
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 #33171amin007ParticipantI 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 #33172TurboWebsMemberSounds 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 #33173amin007ParticipantIf 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 #33174TurboWebsMemberThanks!
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 #33175amin007ParticipantInside 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 #33176TurboWebsMemberThanks 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);
}
-
AuthorPosts
- You must be logged in to reply to this topic.