citeglobe Posted February 22, 2009 Share Posted February 22, 2009 Hello, Where, how and wich template to modifiy to make a dropdown list menu for the state when a customer signup in WHMCS ? Because with the domain name .CA if a customer write state/Provice Alberta the registar accept only a two letter for the province (Alberta = AL). Each time the registration domain failure. Thanks, MD. 0 Quote Link to comment Share on other sites More sharing options...
Zorro67 Posted February 22, 2009 Share Posted February 22, 2009 http://forum.whmcs.com/showthread.php?t=3165 We target AU clients so our code is country specific <select name="state" value="{$clientstate}"> <option value="Select a State" {if $clientstate eq ""} selected {/if}>Select a State</option> <option value="ACT" {if $clientstate eq "ACT"} selected {/if}>Australian Capital Territory</option> <option value="NSW" {if $clientstate eq "NSW"} selected {/if}>New South Wales</option> <option value="NT" {if $clientstate eq "NT"} selected {/if}>Northern Territory</option> <option value="QLD" {if $clientstate eq "QLD"} selected {/if}>Queensland</option> <option value="SA" {if $clientstate eq "SA"} selected {/if}>South Australia</option> <option value="TAS" {if $clientstate eq "TAS"} selected {/if}>Tasmania</option> <option value="VIC" {if $clientstate eq "VIC"} selected {/if}>Victoria</option> <option value="WA" {if $clientstate eq "WA"} selected {/if}>Western Australia</option> <option value="OTH" {if $clientstate eq "Oth"} selected {/if}>Outside of Australia</option> </select> from memory its in a couple of places, although the format may vary slightly in each, depending on whats there now Try -clientarearegister.tpl -clientregister.tpl -clientareaaddcontact.tpl -clientareacontacts.tpl -clientareadetails.tpl -viewcart.tpl -creditcard.tpl PS Notepad++ is great for searching inside tpl for text strings 0 Quote Link to comment Share on other sites More sharing options...
Shobha Patwal Posted September 12, 2020 Share Posted September 12, 2020 I need to change the default value show in state dropdown, in which file it is?? 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted September 14, 2020 Share Posted September 14, 2020 On 9/12/2020 at 9:02 AM, Shobha Patwal said: I need to change the default value show in state dropdown, in which file it is?? /assets/js/StatesDropdown.js 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 14, 2020 Share Posted September 14, 2020 and remember to keep a copy of the modified file as WHMCS might overwrite it during an update. 💡 0 Quote Link to comment Share on other sites More sharing options...
Shobha Patwal Posted September 14, 2020 Share Posted September 14, 2020 Thanks ☺️ 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.