Mr-Yellow Posted March 8, 2011 Share Posted March 8, 2011 How can I force the system to credit Affiliates for Orders which have NoInvoice? I was told it's not on the InvoicePaid hook and can't be added to the OrderAccept hook........ I'd like to have Affiliates credited for sales they make. Including Orders without Invoices, which are correctly tracked by the system but never credited. Currently I have 2 options 1) Visit each affiliates screen and manually payout every order by hand. (no way) 2) Duplicate/re-write the affiliate crediting code to run on a cron or OrderAccept hook. I'd like a 3rd option: 3) Use the existing code for Affiliate crediting but have it run on OrderAccept instead of only after an invoice is paid. Responses to my tickets have assumed I'm a crackhead, directed me towards the documentation without reading the issue, so any help would be much appreciated. 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted March 8, 2011 Share Posted March 8, 2011 Are you paying them a *fixed amount* rather than a %age ? 0 Quote Link to comment Share on other sites More sharing options...
Mr-Yellow Posted March 8, 2011 Author Share Posted March 8, 2011 Yeah fixed amount on the product. Although no pending commission is created, the orders are there and available for "Manual Payout" but there is no code triggering orders commission to be processed once accepted. Not sure when the code runs (doesn't appear to be cron) but the query would seem to focus on the status of the attached invoice and ignores the status of the order even when it has no invoice attached. 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted March 9, 2011 Share Posted March 9, 2011 yes, its currently on payment of the invoice - you'll need to get a mod/custom job done by WHMCS, or someone to code something for an oncreate event hook 0 Quote Link to comment Share on other sites More sharing options...
Mr-Yellow Posted March 9, 2011 Author Share Posted March 9, 2011 There is a function for the "Manual Payout" button, which will take orders in this state and process them, adding the commissions. It would be awesome if I could just specify that function as the OrderAccept hook. Rather then duplicating and re-writing the same code, while possibly introducing bugs. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.