WHMCS - Nameserver field validation problem - Server order form

You may got the error when ordering a VPS or Dedicated server on a WHMCS system.

Please correct the following errors before continuing:

 You must enter a prefix for both nameservers

There is a simple solution for that issue.

 

Edit the file at /templates/orderforms/standard_cart/configureproduct.tpl

 

Find the line:

<input type="text" name="ns1prefix" class="form-control" id="inputNs1prefix" value="{$server.ns1prefix}" placeholder="ns1">

Replace the line with:

<input type="text" name="ns1prefix" class="form-control" id="inputNs1prefix" value="ns1">


Find the line:

<input type="text" name="ns2prefix" class="form-control" id="inputNs2prefix" value="{$server.ns2prefix}" placeholder="ns2">

Replace the line with:

<input type="text" name="ns2prefix" class="form-control" id="inputNs2prefix" value="ns2">




Post a Comment