Jump to content

Disable Name Server check in virtualizor


spartanza

Recommended Posts

Hi there.

I am using virtualizor module in order to have VPS products and services that automatically are deployed.

The issue that I am experiencing now is that during the shopping cart ordering process, there are fields that require name servers, name server 1 and name server 2, however, these fields are not required fro VPS.

I have managed, with the help of my template developer, to hide the name server name fields, however, I am experiencing an issue where the ordering process is still looking for the name servers, and displays the following error during the process:
 

Quote

 

Please correct the following errors before continuing:

    orderErrorServerNameserversInvalid

 

As you can see from above, and the attached image, the system is still looking for the nameserver fields before continuing.

Question: How can I disable that check altogether?

Thank you in advanced.

Screenshot_2018-12-12 Shopping Cart - Hostify co za.png

Link to comment
Share on other sites

I have solved the issue by changing the following code in the order template files from:

<div class="row hidden">
                                    <div class="col-sm-6">
                                        <div class="form-group">
                                            <label for="inputNs1prefix">{$LANG.serverns1prefix}</label>
                                            <input type="text" name="ns1prefix" class="form-control" id="inputNs1prefix" value="N/A" placeholder="ns1">
                                        </div>
                                    </div>
                                    <div class="col-sm-6">
                                        <div class="form-group">
                                            <label for="inputNs2prefix">{$LANG.serverns2prefix}</label>
                                            <input type="text" name="ns2prefix" class="form-control" id="inputNs2prefix" value="N/A" placeholder="ns2">
                                        </div>
                                    </div>
                                </div>

to

 <div class="col-sm-6">
                                        <div class="form-group">
                                            <label for="inputNs1prefix">{$LANG.serverns1prefix}</label>
                                            <input type="text" name="ns1prefix" class="form-control" id="inputNs1prefix" value="ns1" placeholder="ns1">
                                        </div>
                                    </div>
                                    <div class="col-sm-6">
                                        <div class="form-group">
                                            <label for="inputNs2prefix">{$LANG.serverns2prefix}</label>
                                            <input type="text" name="ns2prefix" class="form-control" id="inputNs2prefix" value="ns2" placeholder="ns2">
                                        </div>
                                    </div>

 

I changed the "value" from N/A to ns1 and ns2

 

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