Logman Posted August 13, 2018 Share Posted August 13, 2018 (edited) On our VPS order form I'm getting this error on the first step: Quote Please correct the following errors before continuing: The nameserver prefix is invalid. This is when a client inputs: ns1.domain.com ns2.domain.com If they simply enter ns1 and ns2 the order proceeds just fine. In the past we've been able to enter ns1.domain.com and ns2.domain.com and that seems pretty natural. This is a problem that needs a solution. For now I'm adding text in configureproduct.tpl. Edited August 13, 2018 by WHMCS ChrisD Corrected issue with quote 0 Quote Link to comment Share on other sites More sharing options...
Logman Posted August 13, 2018 Author Share Posted August 13, 2018 my quote won't close after "invalid". Gave up trying to fix it. Hope you get the gist of the post. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted August 13, 2018 Share Posted August 13, 2018 @Logman What version of WHMCS are you running, which theme and which cart template? If custom have you switched to the "Six" theme and standard_cart and tested an order? 0 Quote Link to comment Share on other sites More sharing options...
Logman Posted August 13, 2018 Author Share Posted August 13, 2018 We use the Control Theme and use one of their order forms. It does happen with Standard Cart though. I don't have Six installed, must have removed it in a clean up. Can it be downloaded anywhere? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 13, 2018 Share Posted August 13, 2018 9 minutes ago, Logman said: Can it be downloaded anywhere? I assume the WHMCS GitHub site would be a safe location as any - though if you get your license from WHMCS, you can download the full WHMCS release from download.whmcs.com https://github.com/WHMCS/templates-six/releases 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted August 13, 2018 Share Posted August 13, 2018 14 minutes ago, Logman said: We use the Control Theme and use one of their order forms. It does happen with Standard Cart though. I don't have Six installed, must have removed it in a clean up. Can it be downloaded anywhere? Hey @Logman downloads.whmcs.com is the place to get the full release files from if you are using a version older than v7.3.1 then support can provide them 0 Quote Link to comment Share on other sites More sharing options...
Logman Posted August 13, 2018 Author Share Posted August 13, 2018 Thanks. So this happening with Six and Standard Cart too. Nameserver fields only accept "ns1" and not "ns1.domain.com". 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 17, 2018 Share Posted August 17, 2018 On 13/08/2018 at 10:47, Logman said: Thanks. So this happening with Six and Standard Cart too. Nameserver fields only accept "ns1" and not "ns1.domain.com". looks as though that's expected behaviour now.... 0 Quote Link to comment Share on other sites More sharing options...
Logman Posted August 17, 2018 Author Share Posted August 17, 2018 I put a notice on the order form to only input ns1/ns2. 0 Quote Link to comment Share on other sites More sharing options...
Bilal Sheikh Posted May 1, 2023 Share Posted May 1, 2023 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"> 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.