skegyuk Posted December 12, 2011 Share Posted December 12, 2011 Hi, Is there anyway to remove this from the order form? I have seen that you can use the hidden function but can't seem to get it working. Thanks, Danny 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted December 12, 2011 Share Posted December 12, 2011 Heres some basic instructions. Open up templates/orderforms/YOURTEMPLATE/configuredomains.tpl. Locate the following code block: {if $atleastonenohosting} <h2>{$LANG.domainnameservers}</h2> <div id="domainconfig"> {$LANG.cartnameserversdesc} <table align="center"> <tr><td width="120">{$LANG.domainnameserver1}:</td><td><input type="text" name="domainns1" size="40" value="{$domainns1}" /></td></tr> <tr><td>{$LANG.domainnameserver2}:</td><td><input type="text" name="domainns2" size="40" value="{$domainns2}" /></td></tr> <tr><td>{$LANG.domainnameserver3}:</td><td><input type="text" name="domainns3" size="40" value="{$domainns3}" /></td></tr> <tr><td>{$LANG.domainnameserver4}:</td><td><input type="text" name="domainns4" size="40" value="{$domainns4}" /></td></tr> <tr><td>{$LANG.domainnameserver5}:</td><td><input type="text" name="domainns5" size="40" value="{$domainns5}" /></td></tr> </table> </div> {/if} Replace it with this: {if $atleastonenohosting} <input type="hidden" name="domainns1" value="ns1" /> <input type="hidden" name="domainns2" value="ns2" /> <input type="hidden" name="domainns3" value="ns3" /> <input type="hidden" name="domainns4" value="ns4" /> <input type="hidden" name="domainns5" value="ns5" /> {/if} This should fix it for you, though I have not tested it. Also, your template code may be a bit different. The important thing is to replace the text between the {if $atleastonenohosting} smarty conditional. 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.