Jump to content

how can ı change selected of city and district file ?


nurcan

Recommended Posts

On 22/05/2020 at 09:34, nurcan said:

When ı want to join this page  ı must write this  information by self.But ı want to select them from  dropdownlist.How can ı do it or where can ı change them?

you can add to the list of valid states/provinces/regions of Turkey by editing the /assets/js/StatesDropdown.js file and adding the regions of Turkey..

states['TR'] = ["Adana","Adıyaman","end"];

AqIOmOq.png

there seems to be over 80 provinces - so the above list will need to be added to... but the last entry, must be "end"..

there's no in built way to do the same for cities/districts, so either you would have to custom write a solution for that, or add them into the above list... though that will create the need for hundreds of entries.

also, WHMCS will overwrite the above file during an update, so ensure that you keep a copy of it and update it after each WHMCS upgrade.

Link to comment
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.

Guest
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