Jump to content

How do I remove the NS1, NS2, and root password fields from the VPS ordering page?


Looper

Recommended Posts

We do not offer customizable nameserver or root password options to our users, so we want to remove those fields from the VPS order page specifically (only for VPS, not for dedicated servers).

I’ve tried several available methods, and while most successfully hide the fields, I still encounter issues such as the “This field is required” error or the fields being removed from the dedicated server order page as well.

Is there a reliable way to remove these fields without affecting the dedicated server or any other products? Thanks!

image.jpeg.87434e75977b7355ac5f85ca1fdee071.jpeg

Link to comment
Share on other sites

34 minutes ago, Mytihost said:

Can you not set as other and create a custom field for the product and label it Hostname

Yes, I also thought the same. But we provisioned the server automatically after payments. If I create a custom field for the hostname, how is the server going to use that hostname? I think we’ll need some coding work to achieve this

Link to comment
Share on other sites

7 hours ago, Looper said:

Yes, I also thought the same. But we provisioned the server automatically after payments. If I create a custom field for the hostname, how is the server going to use that hostname? I think we’ll need some coding work to achieve this

Yes, you'll need some coding work to achieve this. When you use product type "Other" with a custom Hostname field, WHMCS doesn't automatically pass that value to your provisioning module. You need a hook that maps the custom field to the domain field.

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