p30tec Posted July 24, 2011 Share Posted July 24, 2011 Hello I'm trying to create new server module I have a problem in order status , for example in mymodule_CreateAccount($params) when I return $result='success'; WHMCS show Order Accepted The order has now been successfully activated But order status is "Pending" , How can I change this to "Accept" ? I try API and Database Query but I fail Help me in this code plz 0 Quote Link to comment Share on other sites More sharing options...
p30tec Posted July 25, 2011 Author Share Posted July 25, 2011 Any body no there? 0 Quote Link to comment Share on other sites More sharing options...
mylove4life Posted July 25, 2011 Share Posted July 25, 2011 that will be hard to fix from just that, they will need to see the mod I'm sure to fix it... 0 Quote Link to comment Share on other sites More sharing options...
jeremyhaber Posted July 25, 2011 Share Posted July 25, 2011 When you press create, regardless of the products status it will create the account. This is normal behavior and is typical in all server modules. If the creation fails set $result to an error message. 0 Quote Link to comment Share on other sites More sharing options...
p30tec Posted July 25, 2011 Author Share Posted July 25, 2011 (edited) Let me explain more here is a part of my code function mymodule_CreateAccount($params) { //Some code here $successful = true ; if(!create_account($params["username"],$params["password"])){successful=false;} if ($successful) { $result="success"; } else { $result = "An Error Occurred in Activation! "; } return $result; } In admin panel > Manage Orders when I press "Accept order" account create and whmcs return Order Accepted The order has now been successfully activated but Status is Pending? Why ? When you press create, regardless of the products status it will create the account. This is normal behavior and is typical in all server modules. If the creation fails set $result to an error message. I have no poblem with this , my problem is When status is "Pending" and I press "Accept order" account will create but and WHMCS show Order Accepted The order has now been successfully activated But Status is "Pending" instead of "Accept" Edited July 25, 2011 by p30tec 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.