Chris74 Posted December 18, 2017 Share Posted December 18, 2017 (edited) Since I read this thread over two years ago... You'd have thought WHMCS would have done something about the completely incorrect list of UK counties in the StatesDropdown.js file. Having just updated WHMCS to version 7, I note that nothing has been done about this. It might be of interest to people here that someone has been maintaining an accurate list since last year (last updated May 2017) which can be found here... https://www.jamesharding.net/a-list-of-uk-counties-2016/ I'll paste them in here in case the website disappears... A List of Counties in the UK 2017 A list of counties in England Bath and North East Somerset Bedfordshire Berkshire Bristol Buckinghamshire Cambridgeshire Cheshire Cornwall County Durham Cumbria Derbyshire Devon Dorset East Riding of Yorkshire East Sussex Essex Gloucestershire Greater London Greater Manchester Hampshire Herefordshire Hertfordshire Isle of Wight Isles of Scilly Kent Lancashire Leicestershire Lincolnshire Merseyside Norfolk North Somerset North Yorkshire Northamptonshire Northumberland Nottinghamshire Oxfordshire Rutland Shropshire Somerset South Gloucestershire South Yorkshire Staffordshire Suffolk Surrey Tyne & Wear Warwickshire West Midlands West Sussex West Yorkshire Wiltshire Worcestershire A list of counties in Scotland Aberdeenshire Angus Argyll & Bute Ayrshire Banffshire Berwickshire Borders Caithness Clackmannanshire Dumfries & Galloway Dunbartonshire East Ayrshire East Dunbartonshire East Lothian East Renfrewshire Fife Highland Inverclyde Kincardineshire Lanarkshire Midlothian Moray North Ayrshire North Lanarkshire Orkney Perth & Kinross Renfrewshire Shetland South Ayrshire South Lanarkshire Stirlingshire West Dunbartonshire West Lothian Western Isles List of Counties in Wales Blaenau Gwent Bridgend Caerphilly Cardiff Carmarthenshire Ceredigion Conwy Denbighshire Flintshire Gwynedd Isle of Anglesey Merthyr Tydfil Monmouthshire Neath Port Talbot Newport Pembrokeshire Powys Rhondda Cynon Taff Swansea Torfaen Vale of Glamorgan Wrexham List of Northern Ireland Counties Antrim Armagh Down Fermanagh Londonderry Tyrone Edited December 18, 2017 by Chris74 Link to comment Share on other sites More sharing options...
Chris74 Posted December 21, 2017 Author Share Posted December 21, 2017 (edited) Here's the formatted list that can be pasted directly into the statesdropdown.js file. Note: I've added "Channel Islands" to my list in order to set up a VAT rule as they are tax exempt. Note: I've not added "co. " to the Northern Ireland counties. Just my preference. Up to you if you want to change that. Note: I've replaced "&" with "and" - again just my preference. states['GB'] = ["Aberdeenshire","Angus","Antrim","Argyll and Bute","Armagh","Ayrshire","Banffshire","Bath and North East Somerset","Bedfordshire","Berkshire","Berwickshire","Blaenau Gwent","Borders","Bridgend","Bristol","Buckinghamshire","Caerphilly","Caithness","Cambridgeshire","Cardiff","Carmarthenshire","Ceredigion","Channel Islands","Cheshire","Clackmannanshire","Conwy","Cornwall","County Durham","Cumbria","Denbighshire","Derbyshire","Devon","Dorset","Down","Dumfries and Galloway","Dunbartonshire","East Ayrshire","East Dunbartonshire","East Lothian","East Renfrewshire","East Sussex","Essex","Fermanagh","Fife","Flintshire","Gloucestershire","Greater London","Greater Manchester","Gwynedd","Hampshire","Herefordshire","Hertfordshire","Highland","Inverclyde","Isle of Anglesey","Isle of Wight","Isles of Scilly","Kent","Kincardineshire","Lanarkshire","Lancashire","Leicestershire","Lincolnshire","Londonderry","Merseyside","Merthyr Tydfil","Midlothian","Monmouthshire","Moray","Neath Port Talbot","Newport","Norfolk","Northamptonshire","North Ayrshire","North Lanarkshire","North Somerset","Northumberland","North Yorkshire","Nottinghamshire","Orkney","Oxfordshire","Pembrokeshire","Perth and Kinross","Powys","Renfrewshire","Rhondda Cynon Taff","Rutland","Shetland","Shropshire","Somerset","South Ayrshire","South Gloucestershire","South Lanarkshire","South Yorkshire","Staffordshire","Stirlingshire","Suffolk","Surrey","Swansea","Torfaen","Tyne and Wear","Tyrone","Vale of Glamorgan","Warwickshire","West Dunbartonshire","Western Isles","West Lothian","West Midlands","West Sussex","West Yorkshire","Wiltshire","Worcestershire","Wrexham","end"]; Edited December 21, 2017 by Chris74 Link to comment Share on other sites More sharing options...
Chris74 Posted December 21, 2017 Author Share Posted December 21, 2017 (edited) "East Riding of Yorkshire" is missing from the above for some reason. states['GB'] = ["Aberdeenshire","Angus","Antrim","Argyll and Bute","Armagh","Ayrshire","Banffshire","Bath and North East Somerset","Bedfordshire","Berkshire","Berwickshire","Blaenau Gwent","Borders","Bridgend","Bristol","Buckinghamshire","Caerphilly","Caithness","Cambridgeshire","Cardiff","Carmarthenshire","Ceredigion","Channel Islands","Cheshire","Clackmannanshire","Conwy","Cornwall","County Durham","Cumbria","Denbighshire","Derbyshire","Devon","Dorset","Down","Dumfries and Galloway","Dunbartonshire","East Ayrshire","East Dunbartonshire","East Lothian","East Renfrewshire","East Riding of Yorkshire","East Sussex","Essex","Fermanagh","Fife","Flintshire","Gloucestershire","Greater London","Greater Manchester","Gwynedd","Hampshire","Herefordshire","Hertfordshire","Highland","Inverclyde","Isle of Anglesey","Isle of Wight","Isles of Scilly","Kent","Kincardineshire","Lanarkshire","Lancashire","Leicestershire","Lincolnshire","Londonderry","Merseyside","Merthyr Tydfil","Midlothian","Monmouthshire","Moray","Neath Port Talbot","Newport","Norfolk","Northamptonshire","North Ayrshire","North Lanarkshire","North Somerset","Northumberland","North Yorkshire","Nottinghamshire","Orkney","Oxfordshire","Pembrokeshire","Perth and Kinross","Powys","Renfrewshire","Rhondda Cynon Taff","Rutland","Shetland","Shropshire","Somerset","South Ayrshire","South Gloucestershire","South Lanarkshire","South Yorkshire","Staffordshire","Stirlingshire","Suffolk","Surrey","Swansea","Torfaen","Tyne and Wear","Tyrone","Vale of Glamorgan","Warwickshire","West Dunbartonshire","Western Isles","West Lothian","West Midlands","West Sussex","West Yorkshire","Wiltshire","Worcestershire","Wrexham","end"]; Edited December 21, 2017 by Chris74 Link to comment Share on other sites More sharing options...
Recommended Posts