Edit the country list

Started by davemarks, September 09, 2013, 07:15:45 PM

davemarks

Hello,

Is there a way to edit the country dropdown list used in HB? I need to remove some countries.

Thanks!

maxim

I think there was way to exclude some countries, but not sure if is it removed from list.
The way is check country by IP address. (Plugin module)
Maybe you can edit the template (javascript to remove), but really not sure with this solution.
Or you can create plugin module to remove country. (This is possible)

tallship

I don't know if you can edit the list. Do yo mean like, change one country from say, Czech Republic to Czechoslovakia?

I know you can block entire countries from the admin panel from accessing order pages, etc.
Bradley D. Thornton - Manager Network Services, NorthTech Computer   TEL: +1.310.388.9469 (US) | +44.203.318.2755 (UK) | +61.390.088.072 (AU) | +41.43.508.05.10 (CH)
Registered Linux User #190795 - "Ask Bill why the string in [MS-DOS] function 9 is terminated by a dollar sign. Ask him, because he can't answer. Only I know that." - Dr. Gary Kildall.

maxim

Quote from: tallship on September 12, 2013, 02:53:01 PM
I don't know if you can edit the list. Do yo mean like, change one country from say, Czech Republic to Czechoslovakia?

I know you can block entire countries from the admin panel from accessing order pages, etc.

Sorry, maybe me missunderstanding.
Anyway is it possible use javascript to remove country from list or change name.
You can add this code to design or use hooks.
I have custom modification done by some javascripts.
And is it possible add javascript to head by plugin of course too.
I think good thing on hostbill, but only for people who have enabled javascript. For me not :D

Example using JQ to remove option from #selectBox:

$("#selectBox option[value='option1']").remove();


PS: Czech rep. (official) can be Czechia and Slovak rep. can be Slovakia (official) :)

davemarks

What I mean is completely removing a country from the list so that it's no longer available in order form, client info editing, etc...

Similar to WHMCS where you can edit the countries.php file and remove/edit countries.

Doing this with JS isn't ideal and it won't be global across all country fields.

maxim

Quote from: davemarks on September 13, 2013, 01:56:21 AM
What I mean is completely removing a country from the list so that it's no longer available in order form, client info editing, etc...

Similar to WHMCS where you can edit the countries.php file and remove/edit countries.

Doing this with JS isn't ideal and it won't be global across all country fields.

I don't have on mind solution for this.
Maybe you can be lucky with request to developers, but i think no.

Fusionhost

I want to know the same but regarding states
fusionhost - www.fusionhost.co.uk
Leading British Cloud Web Hosting Provider

maxim

Quote from: Fusionhost on September 13, 2013, 09:29:10 PM
I want to know the same but regarding states

Yes, this can be helpful for many poeple.

I know only possibility to edit state list, but for contact purpose only. No restriction about this. Only the state will be hidden from list.
I don't have any information about this solution for countries.
In case edit/delete state from list is there php file, which can be edited.