CrimsonGT Posted August 4, 2012 Share Posted August 4, 2012 As we don't currently have any notifications when a new Dedicated Server has been ordered (we do manual setups), we only notice them when we are going through accepting orders. I am working on creating a hook for "AfterShoppingCartCheckout" but "$vars['params']['clientsdetails']['userid'];" doesn't exist for that hook. I need the Client ID to create a new Support Ticket with the client via code, so I have to figure out some way to find it. Is there any way to find the Client ID in this hook, or maybe there is a better hook that I can use once a customer has ordered/paid for a Dedicated Server? 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted August 4, 2012 Share Posted August 4, 2012 This hook doesn't provide a userid, however, it does give you an OrderID which you can then use to lookup the order in the MySQL table tblorders by id. You can then get the userid from the orders record. 0 Quote Link to comment Share on other sites More sharing options...
CrimsonGT Posted August 4, 2012 Author Share Posted August 4, 2012 Ah perfect, thank you so much. Been using my own tables so much I actually forgot I had access to the full WHMCS Database from within a module lol. 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.