gei Posted January 24, 2016 Share Posted January 24, 2016 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.. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 24, 2016 Share Posted January 24, 2016 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> 0 Quote Link to comment Share on other sites More sharing options...
gei Posted January 24, 2016 Author Share Posted January 24, 2016 Perfect! Thanks! 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.