WordPress Affiliate Manager

Affiliates Management Plugin for WordPress

  • Home
  • Features
    • Screen Shots
  • Download
  • Documentation
  • Addons
  • Support
    • Support Forum
    • Forum Login
    • Forum Registration
    • Contact
    • Premium Addon/Plugin Support

[Resolved] Hook or add_action to adjust purchase total before commission?

by

WordPress Affiliate Manager › Forums › Affiliate Manager Plugin › Hook or add_action to adjust purchase total before commission?

Tagged: commission adjustment, net sale

  • This topic has 1 reply, 2 voices, and was last updated 7 years, 3 months ago by Shadow Labs.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • January 12, 2019 at 1:39 am #4280
    [email protected]
    Participant

    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?

    January 13, 2019 at 5:23 am #4284
    Shadow Labs
    Keymaster

    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.

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

Featured Addons

  • WooCommerce Coupon Tracking
  • WooCommerce Product Specific Commission

Copyright © 2026 | WordPress Affiliate Manager | Privacy Policy