- This topic has 1 reply, 2 voices, and was last updated 7 years, 3 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Affiliates Management Plugin for WordPress
by
WordPress Affiliate Manager › Forums › Affiliate Manager Plugin › Hook or add_action to adjust purchase total before commission?
Tagged: commission adjustment, net sale
My client needs to deduct a fixed cost amount from the cart total before he allows the commission calculation.
Is there a WP Affiliate Manager hook, action or filter that would allow us to adjust the purchase total downward by about $150 or $250 before the 30% commission is applied? This merchant must grant a high 30% commission for competitive reasons – all his competitors also apply a fixed cost adjustment before applying the ‘standard’ 30% commission.
Or do you have another method that you recommend for getting this done?
Hi, We do have a filter that can be used to override the commission amount just before it is rewarded to the affiliate:
$creditAmount = apply_filters( 'wpam_credit_amount', $creditAmount, $amount, $txn_id );
Here $creditAmount is the commission amount, $amount is the purchase total and $txn_id is the unique transaction ID.