iwanndie Posted November 29, 2020 Share Posted November 29, 2020 (edited) Hey, is there a hook for when a admin accepts an order on the admin panel which can access $vars such as domain, username? Edited November 29, 2020 by iwanndie 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 29, 2020 Share Posted November 29, 2020 AcceptOrder would run. 0 Quote Link to comment Share on other sites More sharing options...
iwanndie Posted November 29, 2020 Author Share Posted November 29, 2020 Yea, but it hasn't got access to the domain or username variables. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 29, 2020 Share Posted November 29, 2020 4 minutes ago, iwanndie said: Yea, but it hasn't got access to the domain or username variables. true - but it has access to the OrderID value.... from which, you should be able to get the invoice id number (querying the tblorders table).. that in turn will give you access to the invoice line items in tblinvoiceitems... from that, you can query the domain/hosting tables and so on. 0 Quote Link to comment Share on other sites More sharing options...
iwanndie Posted November 29, 2020 Author Share Posted November 29, 2020 I don't even know what the best way of querying WHMCS tables would be? Does WHMCS have anything built in? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 29, 2020 Share Posted November 29, 2020 6 minutes ago, iwanndie said: I don't even know what the best way of querying WHMCS tables would be? Does WHMCS have anything built in? https://developers.whmcs.com/advanced/db-interaction/ 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.