christopherm Posted July 8, 2013 Share Posted July 8, 2013 Hi folks, Wonder if someone could help me please. I'm trying to set up WHMCS in such a way that a person receives a free domain when they signed up for a hosting account. I've set up my 3 hosting packages and altered the Free Domain area to house the correct TLDs. However, when I set up the domain pricing as 0.00 they don't appear in the drop down so a person cannot choose their domain. So, if I then give the domains a price, they appear on the checkout page with a cost associated, in other words, they aren't free. Ideally I'd like to skip anything to do with domain costing, so a person simply enters the domain and chooses the extension, then the site presents them with a "Congratulations" message but without the drop down to select duration to register, it simple leaves that out. Can anyone assist me or point me in a direction please? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 9, 2013 Share Posted July 9, 2013 Hi folks, Wonder if someone could help me please. I'm trying to set up WHMCS in such a way that a person receives a free domain when they signed up for a hosting account. I've set up my 3 hosting packages and altered the Free Domain area to house the correct TLDs. However, when I set up the domain pricing as 0.00 they don't appear in the drop down so a person cannot choose their domain. So, if I then give the domains a price, they appear on the checkout page with a cost associated, in other words, they aren't free. have you followed the steps shown at the link below? http://docs.whmcs.com/Common_Promotions I just setup a dummy product with free domain and it works fine. if you give the tld a price, it does show on the dropdown list - but if you choose a valid tld, then it is added to the cart as a free domain... in one way, this is good as it shows a domain costing x, but they're getting it free - but the fact that it shows a price at all at that stage of the ordering process, might put others off from progessing. personally, I think showing a price is a good thing, but can also see the other perspective. Ideally I'd like to skip anything to do with domain costing, so a person simply enters the domain and chooses the extension, then the site presents them with a "Congratulations" message but without the drop down to select duration to register, it simple leaves that out. there are two solutions I can think of to this... one would be, in domain pricing, remove the prices for more than 1 year (i.e set them to 0 for registrations and -1 for transfers)... you'd still get the dropdown, but it would only show the one year registration cost. the other way would be to edit your order form template file(s) to remove the dropdown - specifically domainoptions.tpl this might vary depending on your order form, but the dropdown is created from the line below... <div class="domainregperiod">{$LANG.cartregisterhowlong} <select name="domainsregperiod[{$domain}]" id="regperiod">{foreach key=period item=regoption from=$regoptions}{if $regoption.register}<option value="{$period}">{$period} {$LANG.orderyears} @ {$regoption.register}</option>{/if}{/foreach}</select></div> you could change that to... <input type="hidden" name="domainsregperiod[]" id="regperiod" value="1" /> that would remove the dropdown and fix the registration period to one year automatically. i've tested it on my cart and the above code seems to work fine. 0 Quote Link to comment Share on other sites More sharing options...
christopherm Posted July 9, 2013 Author Share Posted July 9, 2013 Hi @brian! Thank you very much for coming back to me with so much detail. I've managed to hide the drop down that appears so thank you for that. I ended up using a visibility:hidden because I couldn't locate the domainoptions.tpl file, I guess the template on my side uses a different file and this CSS tweak does the job. I also noticed that in the final cart, the domain is marked as free: http://i.imod.co.za/9x43 - strange because I can assure you that it wasn't like this yesterday. THANK YOU for your help, really impressed with the quick and detailed response. 0 Quote Link to comment Share on other sites More sharing options...
digitalization Posted January 27 Share Posted January 27 The free domain is only available when the product is bought with a one-time payment. However, the product is set up for monthly and yearly payments, meaning the conditions for the free domain cannot be fulfilled. Check out the details here : https://help.whmcs.com/m/troubleshooting/l/681555-troubleshooting-free-domains 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.