Jump to content

[NOT A BUG] "Order Hosting Only" button still requires domain


Recommended Posts

Not sure if this is intended or not, but it's confusing.

 

On the domainchecker.php page There's 3 buttons: "Check Availability", "Transfer", and "Order Hosting Only." When clicking the "Order Hosting Only", the system is still requiring a domain name to be entered (*any* domain name works, I've tested it with a fake one). This is going to be confusing as all heck for potential clients, especially since all it does is forward to the hosting/cart page.

Link to comment
Share on other sites

This will be especially annoying to potential customers, since later on in the ordering process, the domain name is asked for again. It looks like the forms' text box prefilled/prepopulated text ("eg. yourdomain.com") is setting this off (if I type in "yourdomain.com" no error comes up).

 

The prepopulated line is in /lang/english.php line 1258. I removed the "eg. " but then get "yourdomain.com is already taken!" Though honestly, I think THAT error message is easier for a user to understand than having the other "eg. is not a proper TLD"

 

This is just a work around, the system really shouldn't be requiring any domain name when the user clicks the "Order Hosting Only" button (and again, the domain name is being requested again after the hosting package is chosen).

Link to comment
Share on other sites

  • WHMCS CEO

The idea is the customer enters the domain they are wanting to host, and then chooses the option they want - Register, Transfer or Hosting Only. The domain they entered is then pre-filled in the order process. No "purchase" is required.

Link to comment
Share on other sites

you could always do this if you want that button to go to the cart (without a domain)

 

open homepage.tpl and replace

 

       <form method="post" action="domainchecker.php">
       <input class="bigfield" name="domain" type="text" value="{$LANG.domaincheckerdomainexample}" onfocus="if(this.value=='{$LANG.domaincheckerdomainexample}')this.value=''" onblur="if(this.value=='')this.value='{$LANG.domaincheckerdomainexample}'" /><br /><br />
       <input type="submit" value="{$LANG.checkavailability}" class="btn primary large" /> <input type="submit" name="transfer" value="{$LANG.domainstransfer}" class="btn success large" /> <input type="submit" name="hosting" value="{$LANG.domaincheckerhostingonly}" class="btn large" />
       </form>

 

with

 

       <form method="post" action="domainchecker.php">
       <input class="bigfield" name="domain" type="text" value="{$LANG.domaincheckerdomainexample}" onfocus="if(this.value=='{$LANG.domaincheckerdomainexample}')this.value=''" onblur="if(this.value=='')this.value='{$LANG.domaincheckerdomainexample}'" /><br /><br />
       <input type="submit" value="{$LANG.checkavailability}" class="btn primary large" /> <input type="submit" name="transfer" value="{$LANG.domainstransfer}" class="btn success large" /> <a href="cart.php" class="btn large">{$LANG.domaincheckerhostingonly}</a></form>
       </form>

Edited by wwesn
Link to comment
Share on other sites

The idea is the customer enters the domain they are wanting to host, and then chooses the option they want - Register, Transfer or Hosting Only. The domain they entered is then pre-filled in the order process. No "purchase" is required.

 

Except that the domain name is requested *again*, later in the process. It's going to both confuse and annoy potential clients. "Order Hosting Only" should be as it states, just hosting.

Link to comment
Share on other sites

you could always do this if you want that button to go to the cart (without a domain)

 

open homepage.tpl and replace

 

       <form method="post" action="domainchecker.php">
       <input class="bigfield" name="domain" type="text" value="{$LANG.domaincheckerdomainexample}" onfocus="if(this.value=='{$LANG.domaincheckerdomainexample}')this.value=''" onblur="if(this.value=='')this.value='{$LANG.domaincheckerdomainexample}'" /><br /><br />
       <input type="submit" value="{$LANG.checkavailability}" class="btn primary large" /> <input type="submit" name="transfer" value="{$LANG.domainstransfer}" class="btn success large" /> <input type="submit" name="hosting" value="{$LANG.domaincheckerhostingonly}" class="btn large" />
       </form>

 

with

 

       <form method="post" action="domainchecker.php">
       <input class="bigfield" name="domain" type="text" value="{$LANG.domaincheckerdomainexample}" onfocus="if(this.value=='{$LANG.domaincheckerdomainexample}')this.value=''" onblur="if(this.value=='')this.value='{$LANG.domaincheckerdomainexample}'" /><br /><br />
       <input type="submit" value="{$LANG.checkavailability}" class="btn primary large" /> <input type="submit" name="transfer" value="{$LANG.domainstransfer}" class="btn success large" /> <a href="cart.php" class="btn large">{$LANG.domaincheckerhostingonly}</a></form>
       </form>

 

That's perfect, thank you!

Link to comment
Share on other sites

you could always do this if you want that button to go to the cart (without a domain)

 

open homepage.tpl and replace

 

       <form method="post" action="domainchecker.php">
       <input class="bigfield" name="domain" type="text" value="{$LANG.domaincheckerdomainexample}" onfocus="if(this.value=='{$LANG.domaincheckerdomainexample}')this.value=''" onblur="if(this.value=='')this.value='{$LANG.domaincheckerdomainexample}'" /><br /><br />
       <input type="submit" value="{$LANG.checkavailability}" class="btn primary large" /> <input type="submit" name="transfer" value="{$LANG.domainstransfer}" class="btn success large" /> <input type="submit" name="hosting" value="{$LANG.domaincheckerhostingonly}" class="btn large" />
       </form>

 

with

 

       <form method="post" action="domainchecker.php">
       <input class="bigfield" name="domain" type="text" value="{$LANG.domaincheckerdomainexample}" onfocus="if(this.value=='{$LANG.domaincheckerdomainexample}')this.value=''" onblur="if(this.value=='')this.value='{$LANG.domaincheckerdomainexample}'" /><br /><br />
       <input type="submit" value="{$LANG.checkavailability}" class="btn primary large" /> <input type="submit" name="transfer" value="{$LANG.domainstransfer}" class="btn success large" /> <a href="cart.php" class="btn large">{$LANG.domaincheckerhostingonly}</a></form>
       </form>

 

Just a suggestion (for anyone else looking for this**), it's better to stay with the input button than change it to a link ("a href"). There's a massive amount of CSS to recreate otherwise, and/or you'll run into CSS rule collisions for links.

 

<input type="button" class="btn large" onClick="parent.location='cart.php'" value="{$LANG.domaincheckerhostingonly}" />

 

** Maybe a moderator wants to move this to the "tips and tricks" section or ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated