ehuk Posted October 16, 2008 Share Posted October 16, 2008 Am I the only one who thinks this is wrong? When I go to transfer a .com domain (which has a one off charge), and I click 'Check Availability' the more info bit says: 2 Year/s @ £x.xx GBP The same text when you purchase a domain name!! I have looked and I can't find an easy way to change this to something like: One off Fee @ £x.xx GBP or just £x.xx GBP. I have had several customers get confused over this! Any input? 0 Quote Link to comment Share on other sites More sharing options...
chickendippers Posted October 17, 2008 Share Posted October 17, 2008 You'll need to customise the {$domain.regperiod} {$LANG.orderyears} part of configuredomains.tpl 0 Quote Link to comment Share on other sites More sharing options...
ehuk Posted October 17, 2008 Author Share Posted October 17, 2008 That is what I thought, but that doesn't differentiate between transfers and registration. The text for registration is fine. Am I missing something? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted October 17, 2008 Share Posted October 17, 2008 Look here to test if this is what you wanted PLEASE DON'T ORDER IF YOU ARE TESTING https://tshosting.com.au/cart.php?a=add&domain=transferandhttps://tshosting.com.au/cart.php?a=add&domain=registerIf so edit /templates/orderforms/[yourcarttype]/adddomain.tplFind <form method="post" action="{$smarty.server.PHP_SELF}?a=add&domain={$domain}"> Replace the table under it with <table class="clientareatable" style="width:90%;" align="center" cellspacing="1"> <tr class="clientareatableheading"><td>{$LANG.domainname}</td><td>{$LANG.domainstatus}</td><td>{$LANG.domainmoreinfo}</td></tr> {foreach key=num item=result from=$availabilityresults} {if $domain eq "transfer"} <tr class="clientareatableactive"><td>{$result.domain}</td><td class="{if $result.status eq $searchvar}domaincheckeravailable{else}domaincheckerunavailable{/if}">{if $result.status eq $searchvar}<input type="checkbox" name="domains[]" value="{$result.domain}"{if $result.domain|in_array:$domains} checked{/if} /> Available! Transfer Now{else}{$LANG.domainunavailable}{/if}</td><td>{if $result.regoptions}<select name="domainsregperiod[{$result.domain}]">{foreach key=num item=regoption from=$result.regoptions}<option value="{$regoption.period}">{$currencysymbol}{$regoption.price} {$currency} One Time Fee</option>{/foreach}</select>{/if}</td></tr> {else} <tr class="clientareatableactive"><td>{$result.domain}</td><td class="{if $result.status eq $searchvar}domaincheckeravailable{else}domaincheckerunavailable{/if}">{if $result.status eq $searchvar}<input type="checkbox" name="domains[]" value="{$result.domain}"{if $result.domain|in_array:$domains} checked{/if} /> {$LANG.domainavailable}{else}{$LANG.domainunavailable}{/if}</td><td>{if $result.regoptions}<select name="domainsregperiod[{$result.domain}]">{foreach key=num item=regoption from=$result.regoptions}<option value="{$regoption.period}">{$currencysymbol}{$regoption.price} {$currency} for {$regoption.period} {$LANG.orderyears}</option>{/foreach}</select>{/if}</td></tr> {/if} {/foreach} </table> 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted October 17, 2008 Share Posted October 17, 2008 Now in /templates/orderforms/[yourcarttype]/configureproductdomain.tpl Find {if $availabilityresults} <p class="cartsubheading">{$LANG.choosedomains}</p> Replace the table under it with <table class="clientareatable" style="width:90%;" align="center" cellspacing="1"> <tr class="clientareatableheading"><td>{$LANG.domainname}</td><td>{$LANG.domainstatus}</td><td>{$LANG.domainmoreinfo}</td></tr> {foreach key=num item=result from=$availabilityresults} {if $domainoption eq "transfer"} <tr class="clientareatableactive"><td>{$result.domain}</td><td class="{if $result.status eq $searchvar}domaincheckeravailable{else}domaincheckerunavailable{/if}">{if $result.status eq $searchvar}<input type="checkbox" name="domains[]" value="{$result.domain}" /> Available! Transfer Now{else}{$LANG.domainunavailable}{/if}</td><td>{if $result.regoptions}<select name="domainsregperiod[{$result.domain}]">{foreach key=num item=regoption from=$result.regoptions}<option value="{$regoption.period}">{$currencysymbol}{$regoption.price} {$currency} One Time Fee</option>{/foreach}</select>{/if}</td></tr> {else} <tr class="clientareatableactive"><td>{$result.domain}</td><td class="{if $result.status eq $searchvar}domaincheckeravailable{else}domaincheckerunavailable{/if}">{if $result.status eq $searchvar}<input type="checkbox" name="domains[]" value="{$result.domain}" /> {$LANG.domainavailable}{else}{$LANG.domainunavailable}{/if}</td><td>{if $result.regoptions}<select name="domainsregperiod[{$result.domain}]">{foreach key=num item=regoption from=$result.regoptions}<option value="{$regoption.period}">{$currencysymbol}{$regoption.price} {$currency} for {$regoption.period} {$LANG.orderyears}</option>{/foreach}</select>{/if}</td></tr> {/if} {/foreach} </table> 0 Quote Link to comment Share on other sites More sharing options...
ehuk Posted October 17, 2008 Author Share Posted October 17, 2008 sparky you are a star! That worked perfectly, exactly what I was looking for!! Thank you so much!! 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted October 17, 2008 Share Posted October 17, 2008 Your welcome... I had been meaning to do it for a while. 0 Quote Link to comment Share on other sites More sharing options...
raggy786 Posted August 26, 2009 Share Posted August 26, 2009 I need to center mine? http://hostingnonstop.co.uk/cart.php?a=add&domain=register if you see its on the left anyone help? 0 Quote Link to comment Share on other sites More sharing options...
UH-Matt Posted September 16, 2009 Share Posted September 16, 2009 Anyone know how to make this code work with the current v4? Doesnt seem to make any difference to the transfer available text putting this in place? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted September 16, 2009 Share Posted September 16, 2009 Have you looked in the downloads section of my site! 0 Quote Link to comment Share on other sites More sharing options...
UH-Matt Posted September 16, 2009 Share Posted September 16, 2009 Yes thats where I got the v4 code from just now, but putting it in place seems to have made no difference... I am in the right template and order form and don't know why its not made any difference, any clues? 0 Quote Link to comment Share on other sites More sharing options...
rodeoXtreme Posted September 16, 2009 Share Posted September 16, 2009 Hi Matt, I just found this thread and downloaded/installed it from Sparky's site. It worked for us. I did clear our cache (template_c) in order to see the change. Hope you get it to work! 0 Quote Link to comment Share on other sites More sharing options...
FoxAudun Posted June 9, 2010 Share Posted June 9, 2010 Alternative solution: http://forum.whmcs.com/showthread.php?t=6205&highlight=Available%21+Order+Now <font color="green">{if $domainoption eq "register"}Domain is available for registration!{else}Domain is available for transfer!</font>{/if} {else}<font color="red">{$LANG.domainunavailable}</font>{/if}</td> 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.