Jump to content

Disable the auto renew button for specific TLD


theman777

Recommended Posts

Hi, we upgraded to the newest WHMCS Version and that's why we had to change the template as well. 

Before we had this nice function, that we could disable the auto-renew button for specific TLD with this code in the clientareadomaindetails.tpl file. 

<div class="span4">
                <div class="styled_title"><h2>{$LANG.domainsautorenew}</h2></div>
				
				{* Ausklammerung von .ch & .li Domains bei der automatischen Verlängerung! 
				*}				
					{if stristr($domain, '.ch')
					or stristr($domain, '.li')
				    or stristr($domain, '.swiss')
				}
					<h5>Bei .ch und .li und .swiss Domains ist die Deaktivierung der Automatische Verlängerung nicht moeglich! Wenn Sie die Domain nicht mehr benoetigen, dann schreiben Sie ein Support-Ticket im Departement Kuendigung.</h5>
					{else}
					
					

                <p>{$LANG.domainrenewexp}</p>
        </div>
        <div class="span8 form-horizontal">
        
                    <form method="post" action="{$smarty.server.PHP_SELF}?action=domaindetails&tab=2">
                    <input type="hidden" name="id" value="{$domainid}" />
                    
                    <fieldset>
	
					
						
						
                    <div class="control-group">
                        <label for="n*" class="control-label">{$LANG.domainautorenewstatus}:</label>
                        <div class="controls">
                        	<input type="text" class="disabled" disabled="disabled" value="{if $autorenew}{$LANG.domainsautorenewenabled}{else}{$LANG.domainsautorenewdisabled}{/if}" />
                        </div>
                    </div>
                    {if $autorenew}
                    <div class="control-group">
                        <label for="n*" class="control-label"> </label>
                        <div class="controls">
                        	<input type="hidden" name="autorenew" value="disable" />
                        	<input type="submit" class="btn btn-danger" value="{$LANG.domainsautorenewdisable}" />
                        </div>
                    </div>
                    {else}
                    <div class="control-group">
                        <label for="n*" class="control-label"> </label>
                        <div class="controls">
                        	<input type="hidden" name="autorenew" value="enable" />
                        	<input type="submit" class="btn btn-success" value="{$LANG.domainsautorenewenable}" />
                        </div>
                    </div>
                    {/if}
                    </fieldset>

                    </form>
{/if}

Now we do not know how to implement that in our new template. 

 

clientareadomaindetails.tpl

Link to comment
Share on other sites

1 hour ago, theman777 said:

Hi, we upgraded to the newest WHMCS Version and that's why we had to change the template as well.  

i'm assuming that you mean v7.8.3 ?

1 hour ago, theman777 said:

Before we had this nice function, that we could disable the auto-renew button for specific TLD with this code in the clientareadomaindetails.tpl file. 

where is this button ? is it shown in the template, or do you mean the Auto Renew button in the sidebar ?? it would be useful to see a screenshot to know where you mean...

if it's in the template, then it could be tweaked using Smarty (or possibly a hook)... if it's the sidebar, then it's a hook - though you could even change that with Smarty if you really really had to (you don't!).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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