Jump to content

Dropdown list state

Recommended Posts



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.






Share this post

Link to post
Share on other sites



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>



from memory its in a couple of places, although the format may vary slightly in each, depending on whats there now










PS Notepad++ is great for searching inside tpl for text strings ;)

Share this post

Link to post
Share on other sites
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??



Share this post

Link to post
Share on other sites

and remember to keep a copy of the modified file as WHMCS might overwrite it during an update. 💡

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated