adrian.tilita Posted February 8, 2018 Share Posted February 8, 2018 Hello everybody, I am trying to implement renew functionality for a developed registrar. The current environment is on WHMCS 6.3.1 (with the plan on upgrading it, but not at this moment). The 1st question: How do I enable "Renew" functionality on new orders and add "Renew button" in the "Registrar commands" admin area. To be more specific I attached 2 images to show exactly the area of which I am talking about. I know that this is a base feature from WHMCS. 2nd Question: How do I extend the possibility to add a new option for new order (currently: register, transfer and hopefully renew) that in my case will be "transfer to registrar"? For registrar commands I know that this will work using "customButtonsArray" (or similar). Thank you, Adrian Link to comment Share on other sites More sharing options...
Remitur Posted February 8, 2018 Share Posted February 8, 2018 8 hours ago, adrian.tilita said: The 1st question: How do I enable "Renew" functionality on new orders and add "Renew button" in the "Registrar commands" admin area. You need define the buttons as follows: function MYREGMODULE_AdminCustomButtonArray($params) { return array( 'Restore' => 'RestoreDomain', 'Sync'=> 'Sync', 'whatever function you want'=> 'myfunction', ); The called functions must be defined in your registrar module, with the proper prefix. So, i.e., myfunction will be something like function MYREGMODULE_myfunction () Link to comment Share on other sites More sharing options...
adrian.tilita Posted February 9, 2018 Author Share Posted February 9, 2018 Thank you Remitur. So, if I understand correctly, even if renew capabilities are basic WHMCS registrar capabilities (with built in notifications), I still have to define the button as customAdminButton... I has hoping just for a setting that would have enable it as the default "register" command (in this case I would also have to define a "proxy like" action that will render a html with the period of renewal)... I will give it a try and update the current post with the result. Thank you again for the quick response. Link to comment Share on other sites More sharing options...
Recommended Posts