wsd Posted February 18, 2012 Share Posted February 18, 2012 Hi, When a customer wants to transfer a.dk domain, it looks like I will give them one year free. and I will not and I can not give them a free year, as it is a customer relationship between the customer and DK-Hostmaster. Is there someone who can help me to fix it, so 1 year is not displayed 0 Quote Link to comment Share on other sites More sharing options...
tripler Posted February 18, 2012 Share Posted February 18, 2012 You did not read the rules for setting an undefined amount. When you go and edit the pricing of a domain name you leave "-1.00" in the transfer field to deactivate it "Leave Register at 0 to disable that term. Set Transfer/Renew to -1 to disable" 0 Quote Link to comment Share on other sites More sharing options...
wsd Posted February 18, 2012 Author Share Posted February 18, 2012 (edited) You did not read the rules for setting an undefined amount. When you go and edit the pricing of a domain name you leave "-1.00" in the transfer field to deactivate it "Leave Register at 0 to disable that term. Set Transfer/Renew to -1 to disable" How would you set it up so it is allowed to transfer a .dk domain, of course it is possible to transfer a .dk domain, it costs just nothing and there is not one year free Edited February 18, 2012 by wsd 0 Quote Link to comment Share on other sites More sharing options...
tripler Posted February 18, 2012 Share Posted February 18, 2012 (edited) Any time anyone or company "transfers" a domain the acquiring host must renew that domain for another year. Ex, a client pays you $10 to transfer a domain to your service, after it transfers 1 year of registration is added. In the domain pricing area you need to update the price on the .dk domain to what you want it to be, else type -1 to disable transfers.... Setup > Domain Pricing > click the .dk domain and set your price Edited February 18, 2012 by tripler 0 Quote Link to comment Share on other sites More sharing options...
wsd Posted February 18, 2012 Author Share Posted February 18, 2012 Are you sure you know what you're talking about, please do not answer my messages because I can not use your answers to anything 0 Quote Link to comment Share on other sites More sharing options...
tripler Posted February 18, 2012 Share Posted February 18, 2012 Well I am sorry you feel that way, Its almost as if your using a translator to ask your question so its a bit cryptic... I feel like I have answered your question though. 0 Quote Link to comment Share on other sites More sharing options...
wsd Posted February 22, 2012 Author Share Posted February 22, 2012 (edited) Hi, Here is my solution, in an attempt to remove the 1 year, using the order form template ajaxcart. But what can I do to remove it so there will not be stored 1 year in the database, so it does not come out on the invoice? The file changes \templates\orderforms\ajaxcart\cartsummary.tpl Starts approx. on line 76 From: {$domain.domain}<br /> {$domain.regperiod} {$LANG.orderyears}<br /> {if $domain.dnsmanagement} + {$LANG.domaindnsmanagement}<br />{/if} {if $domain.emailforwarding} + {$LANG.domainemailforwarding}<br />{/if} {if $domain.idprotection} + {$LANG.domainidprotection}<br />{/if} </div> To: {$domain.domain}<br /> {php} $dom = $this->get_template_vars(); $domainName = $dom ['domain']['domain']; $tld = ".dk"; $result = substr_compare($domainName, $tld, -strlen($tld), strlen($tld)) === 0; if ($result) { // Afsluttes med .dk; $this->assign('dom_tld', '.dk'); }else{ // Afsluttes ikke med .dk; $this->assign('dom_tld', ''); } {/php} {if $domain.type neq 'transfer' || $dom_tld neq '.dk'} {$domain.regperiod} {$LANG.orderyears}<br />{/if} {if $domain.dnsmanagement} + {$LANG.domaindnsmanagement}<br />{/if} {if $domain.emailforwarding} + {$LANG.domainemailforwarding}<br />{/if} {if $domain.idprotection} + {$LANG.domainidprotection}<br />{/if} </div> Edited February 22, 2012 by wsd 0 Quote Link to comment Share on other sites More sharing options...
wsd Posted March 10, 2012 Author Share Posted March 10, 2012 (edited) Hi, I have solved this problem. Edited March 10, 2012 by wsd 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.