Dhush Posted June 19, 2017 Share Posted June 19, 2017 Hi, Is there a way to add more than one client (multiple clients) to "Add New Order" in WHMCS admin area? @brain suggest me a way/hook. Thank you. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 20, 2017 Share Posted June 20, 2017 Is there a way to add more than one client (multiple clients) to "Add New Order" in WHMCS admin area?@brain suggest me a way/hook. I would have thought not from the admin area - and i'm not aware of any 3rd-party addon that can do it either. I suspect using the API would be a better solution than using a hook, e.g Add Order - but that can only add one order one at a time, so you may need to daisychain the list/array of clients to create the order for each of them in sequence. 0 Quote Link to comment Share on other sites More sharing options...
Dhush Posted June 20, 2017 Author Share Posted June 20, 2017 Thank you @brain, i have made it through API, but i am unable to place order for multiple clients at a time. is there a way to achieve it. How about using text file with client Id's and link with my api file? But i have no idea how to do this 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 21, 2017 Share Posted June 21, 2017 you won't be able to add orders to multiple clients at the same time, but I would have thought that if you've got the api solution working for one client, then you could just create an array containing the list of client IDs, employ a foreach loop to work through that array, and use the current loop value as the value for clientid.... that would then create the orders for each client sequentially. 0 Quote Link to comment Share on other sites More sharing options...
z900collector Posted June 22, 2017 Share Posted June 22, 2017 I'm trying to do something similar but I get a "no items in cart error"... the call states the PID is optional but it seams to indicate you must add at least 1 "product" to the order? Sid 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 22, 2017 Share Posted June 22, 2017 it's optional in the sense that it needs either a product, domain or an addon (or combination of them) - if it doesn't have any of them, then it's not much of an order! 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.