Davidsweden Posted March 21, 2014 Share Posted March 21, 2014 Is there a way to restrict the use of a certain subdomain? I only want a small number of people to use the free subdomain when they order hosting. Example: Today I have ".myhomepage.com" as an alternative when ordering hosting. Users can create a free subdomain with that name. But, I also have a domain that is for people living in my town. Like ".mytownsname.com". I dont want everybody to use that town domain. Only users that know about it. I can annonuce in my towns facebook for example: "Hey! You can now get a free .mytownsname.com at my website. Just type in this code and you can set it up." Something like that. Hope you understand 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted March 21, 2014 Share Posted March 21, 2014 Not built-in but there are several 'workarounds' like adding the code to add the extra subdomain option if logged in and if town matches your town for example Requires you to do some work with the TPL and PHP ... 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 21, 2014 Share Posted March 21, 2014 I think if you just wanted to offer one hosting product that had the option of using .mytownsname.com subdomains, the easiest solution would be to make it a hidden product... http://docs.whmcs.com/Products_and_Services#Details_Tab hidden products are not directly accessible through the order forms, but can be shared via direct links which you could use in your email / facebook posts etc... http://docs.whmcs.com/Linking_to_WHMCS cart.php?a=add&pid=35 I think your idea of using a promotion code to do this would be difficult to achieve - it could possibly work, but would require template modifications to check to see if a specific code was being used and if so, to give .mytownsname as another subdomain option. however, if you can do what you want to do using hidden product(s), that would be far easier and quicker for you to setup. 0 Quote Link to comment Share on other sites More sharing options...
Davidsweden Posted March 21, 2014 Author Share Posted March 21, 2014 Thanks! I think I go with hidden products for now. It sounds ok with what I want to do. 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.