Jump to content

3rd Party Affiliate Help


UKHost4u

Recommended Posts

Hello.

 

We currently use two UK Affiliate Programs:

 

Affiliate Window

NetGains

 

Both of these systems require us to track sales via WHMCS and send over some information include: Order Value, Invoice ID etc.

 

Can anyone help with how they might have done something similar. I guess it should be fairly simple but WHMCS support didn't offer much insight into how to do this correctly.

 

Thanks,

 

Paul.

Link to comment
Share on other sites

Paul,

 

you need to use ActionHooks, these functions will run while WHMCS performing certain actions offering few information related to that specific action.

 

in your case you need to use this specific ActionHook:ShoppingCartCheckoutCompletePage point, you need to create new PHP file inside /includes/hooks/ directory and put your function(s) code there, as a starting example

 

<?php

add_hook("ShoppingCartCheckoutCompletePage", 1, function($vars){

   $invoiceid = $vars['invoiceid'];
   $ordervalue = $vars['amount'];
   // Now send it to affiliate system
});

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