nieloveyou Posted July 1, 2016 Share Posted July 1, 2016 Hello guys, I need your help, I want this to creating random passwords for my customers and uneditable text field: /whmcs/templates/orderforms/standard_cart/configureproduct.tpl <input type="password" name="rootpw" class="form-control" id="inputRootpw" value="{$server.rootpw}"> Thank you so much, God bless us. 0 Quote Link to comment Share on other sites More sharing options...
twhiting9275 Posted July 1, 2016 Share Posted July 1, 2016 You can absolutely do this through smarty and hooks actually. Take a look at Templates and Custom Variables documentation #1: Create a function to generate your passsword . Something like this will do #2: Create a hook that's called only on order pages #3: Assign the password created in step 1 to a smarty variable #4: Edit the configureproduct.tpl template, change the input type of 'password' to hidden. Make sure to mail them the password 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.