SolusIO WHMCS Module not bringing over password from signup form
When a guest buys a package on my site, WHMCS asks for a root password for the service but it does not "copy" that root password over to SolusIO to use. If it is not possible to use that password they entered, how can I disable it from showing up on the product signup form?
-
This field is a part of WHMCS standard Order submission form, it is managed by WHMCS core itself and cannot be hidden by means of solusiovps module.
I could find a template that is responsible for this page and here are the steps below to hide this field (for WHMCS 8):
- Create a backup of this template file templates/orderforms/standard_cart/configureproduct.tpl:
cp -a templates/orderforms/standard_cart/configureproduct.tpl{,.saved}
- Update the content inside:
# diff /var/www/vhosts/whmcs8-support.dev.solusvm.com/httpdocs/templates/orderforms/standard_cart/configureproduct.tpl.saved /var/www/vhosts/whmcs8-support.dev.solusvm.com/httpdocs/templates/orderforms/standard_cart/configureproduct.tpl
129,130c129,130
< <label for="inputRootpw">{$LANG.serverrootpw}</label>
< <input type="password" name="rootpw" class="form-control" id="inputRootpw" value="{$server.rootpw}">
---
> <!-- label for="inputRootpw">{$LANG.serverrootpw}</label-->
> <input type="hidden" name="rootpw" class="form-control" id="inputRootpw" value="{$server.rootpw|default:'==$*8yr#kSD=zS38gQ@2A2@sXLcNxAq5Hacyh5yLVv7ze?ye&PBKQEK!hc!PTHxH'}">There is a default dummy value for $server.rootpw variable set, otherwise error about empty password field arise.
Note that it was not tested on production environment, so it is better to verify this functionality on test lab first.
- Create a backup of this template file templates/orderforms/standard_cart/configureproduct.tpl:
Please sign in to leave a comment.
Comments
1 comment