Jump to content

Registrar commands: renew options


adrian.tilita

Recommended Posts

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  

 

domain_registrar_commands.png

new_order.png

Link to comment
Share on other sites

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

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

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated