This is possible with a template customisation: http://docs.whmcs.com/Order_Form_Templates
To only hide a field for certain products then something along the lines of this could be used:
{if $productinfo.name eq 'Bronze'}<input type="hidden" name="ns1prefix" size="10" value="N/A" />
{else}
<input type="text" name="ns1prefix" size="10" value="{$server.ns1prefix}" />
{/if}
3 Comments
Login to post a comment.
[co]
[co]
[co]
Feature Request::: Improve the code formatting options, Cant indent the lines.
Edit note, I always get the in_array the wrong way around.. I have edited it to correct, should be in_array($needle, $haystack) i need to remember that.
As a final side note: Nameservers with a VPS are actually very valid, There are many people that want private name servers and a great many hostin providers that provide a VPS as a blank canvas. If you are not offering them setup yourself then for you they are not needed, but that doesnt affect many hosts who do infact use them.
To only hide a field for certain products then something along the lines of this could be used:
{if $productinfo.name eq 'Bronze'}<input type="hidden" name="ns1prefix" size="10" value="N/A" />
{else}
<input type="text" name="ns1prefix" size="10" value="{$server.ns1prefix}" />
{/if}