Jump to content

Affiliate commission amount displayed for no-commission products


drediv

Recommended Posts

I am adding a multi-product order to the system via an WHMCS external API call. I have linked the order to an affiliate with 2 of the products set to a fixed amount affiliate payout and one product with a custom affiliate payment set to 'No Commission'.

 

However, in the affiliate's details page, all three products are displayed, including the product which was setup to have no commission. This product is displayed as having a commission of 0.00.

 

Is there some way to set up WHMCS to not display non-commission products in the affiliate page, even if they happen to be on an order with commissioned products?

Link to comment
Share on other sites

Without checking exactly, I'd say that the following template modification could be used...

 

 

FIND (affiliates.tpl):

{foreach key=num item=referral from=$referrals}

 

REPLACE WITH:

{foreach key=num item=referral from=$referrals}{if $referral.commission neq ""}

 

 

FIND (affiliates.tpl):

{foreachelse}

 

REPLACE WITH:

{/if}{foreachelse}

 

 

You will need to modify the IF statement to match whatever value that you want to hide.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated