Sepp Posted June 21, 2015 Share Posted June 21, 2015 Hello, if it is possible to disable some countries on whmcs order page? If yes, how we could do that? 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted June 21, 2015 Share Posted June 21, 2015 what you is to remove specific countries from the signup / order page drop-down list, or prevent these countries from ordering / accessing your website? 0 Quote Link to comment Share on other sites More sharing options...
Sepp Posted June 21, 2015 Author Share Posted June 21, 2015 Hello we only want remove specific country from signup / order page drop down list. Hope thats possible. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted June 21, 2015 Share Posted June 21, 2015 it is possible to remove specific countries from /path/to/whmcs/includes/countries.php 0 Quote Link to comment Share on other sites More sharing options...
Sepp Posted June 21, 2015 Author Share Posted June 21, 2015 Hello, thank you. If it is also possible to hide field Staat/Region from order and register process? 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted June 21, 2015 Share Posted June 21, 2015 yes you can define a default a value for each field and change it's type from "text" to "hidden", so basically hide instead of delete them. http://docs.whmcs.com/Order_Form_Templates#Remove_Fields_From_Order_Form 0 Quote Link to comment Share on other sites More sharing options...
Sepp Posted June 21, 2015 Author Share Posted June 21, 2015 Hello thanks for that information. Could you let me know how I can hide this field: "Staat" ? I will hide from register and order process... 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted June 21, 2015 Share Posted June 21, 2015 for example i will edit /path/to/whmcs/templates/default/clientregister.tpl file I will define value to "State" field then hide it using CSS This <div class="control-group"> <label class="control-label" for="state">{$LANG.clientareastate}</label> <div class="controls"> <input type="text" name="state" id="state" value="{$clientstate}"{if in_array('state',$uneditablefields)} disabled="" class="disabled"{/if} /> </div> </div> will become like this <div class="control-group" style="display:none;"> <label class="control-label" for="state">{$LANG.clientareastate}</label> <div class="controls"> <input type="text" name="state" id="state" value="N/A"{if in_array('state',$uneditablefields)} disabled="" class="disabled"{/if} /> </div> </div> or simply like this <input type="text" name="state" id="state" value="N/A"> 0 Quote Link to comment Share on other sites More sharing options...
Sepp Posted June 21, 2015 Author Share Posted June 21, 2015 Hllo, Ok thats easy I know, but if I try press submit / register. Than I get a error that I should input the value for state. So may I need disable this value also on another place? 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.