vb543 Posted October 17, 2016 Share Posted October 17, 2016 I'd like to randomly generate a password for new SolusVM VPS orders. From what I've researched, the best way to accomplish this would be by editing the order forms template. However, this is where I get stuck. I reached out to SolusVM and they indicated that I could simply remove the password field altogether and the module would automatically generate the random password and email it to the client. This would be my preferred method. Could anyone point me in the right direction? Thanks! 0 Quote Link to comment Share on other sites More sharing options...
dimitrifrom31 Posted October 19, 2016 Share Posted October 19, 2016 It did not work when I tried that suggestion as I had an error about password being required. But you can try the following in your order form configureproduct.tpl: {if $productinfo.type eq "server"} <h3>{$LANG.cartconfigserver}</h3> <div class="serverconfig"> <table width="100%" cellspacing="0" cellpadding="0" class="configtable"> <input type="hidden" name="hostname" size="1" value="whatever.com" /> <input type="hidden" name="ns1prefix" size="1" value="NA" /> <input type="hidden" name="ns2prefix" size="1" value="NA" /> <input type="hidden" name="rootpw" size="20" value="" /> </table> </div> {/if} 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.