Jump to content

Change default number of years for domain registration?


gei

Recommended Posts

Anyone know how to change the default number years for a new domain registration? Right now the dropdown box by default is at 1 year, we would like to make this 2 years. This was a bit easier before WHMCS 6 and now we can't quite figure out how to do it. We are using the 'modern' shopping cart template..

Link to comment
Share on other sites

in the modern/domainoptions.tpl template, change ~ line 35...

 

<div class="domainregperiod">{$LANG.cartregisterhowlong} <select name="domainsregperiod[{$domain}]" id="regperiod" class="form-control select-inline">{foreach key=period item=regoption from=$regoptions}{if $regoption.register}<option value="{$period}">{$period} {$LANG.orderyears} @ {$regoption.register}</option>{/if}{/foreach}</select></div>

to...

 

<div class="domainregperiod">{$LANG.cartregisterhowlong}  <select name="domainsregperiod[{$domain}]" id="regperiod"  class="form-control select-inline">{foreach key=period item=regoption  from=$regoptions}{if $regoption.register}<option value="{$period}"  {if $period eq '2'} selected="selected"{/if}>{$period}  {$LANG.orderyears} @  {$regoption.register}</option>{/if}{/foreach}</select></div>

 

and then do the same to line~94...

 

<tr><td><input type="checkbox" name="domains[]" value="{$other.domain}" /></td><td>{$other.domain}</td><td><select name="domainsregperiod[{$other.domain}]">{foreach from=$other.regoptions key=period item=regoption}{if $regoption.register}<option value="{$period}">{$period} {$LANG.orderyears} @ {$regoption.register}</option>{/if}{/foreach}</select></td></tr>

to...

 

<tr><td><input type="checkbox" name="domains[]"  value="{$other.domain}"  /></td><td>{$other.domain}</td><td><select  name="domainsregperiod[{$other.domain}]">{foreach  from=$other.regoptions key=period item=regoption}{if  $regoption.register}<option value="{$period}"{if $period eq '2'}  selected="selected"{/if}>{$period} {$LANG.orderyears} @  {$regoption.register}</option>{/if}{/foreach}</select></td></tr>

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