Jump to content
thirty bees forum

Recommended Posts

Posted

I noticed that the TB localization for UK doesn't include any of the UK counties which might be useful to some people. Below is a list of counties for England, Wales, Scotland and Northern Island that you can add to the gb.xml file on your server and then import into TB so you can offer it as a drop down list on your checkout for UK customers. I don't think it matters where in the xml file you add it, i just put it at the end and it seems to import fine. To import the counties you go to Localization > Localization and then pick United Kingdom (local) and make sure you set download pack data to No, So that it updates from your server and not from the TB site.

<states> <state name="Aberdeenshire" iso_code="ABD" country="GB" zone="Europe" /> <state name="Anglesey" iso_code="AGY" country="GB" zone="Europe" /> <state name="Alderney" iso_code="ALD" country="GB" zone="Europe" /> <state name="Angus" iso_code="ANS" country="GB" zone="Europe" /> <state name="Co. Antrim" iso_code="ANT" country="GB" zone="Europe" /> <state name="Argyllshire" iso_code="ARL" country="GB" zone="Europe" /> <state name="Co. Armagh" iso_code="ARM" country="GB" zone="Europe" /> <state name="Avon" iso_code="AVN" country="GB" zone="Europe" /> <state name="Ayrshire" iso_code="AYR" country="GB" zone="Europe" /> <state name="Banffshire" iso_code="BAN" country="GB" zone="Europe" /> <state name="Bedfordshire" iso_code="BDF" country="GB" zone="Europe" /> <state name="Berwickshire" iso_code="BEW" country="GB" zone="Europe" /> <state name="Buckinghamshire" iso_code="BKM" country="GB" zone="Europe" /> <state name="Borders" iso_code="BOR" country="GB" zone="Europe" /> <state name="Breconshire" iso_code="BRE" country="GB" zone="Europe" /> <state name="Berkshire" iso_code="BRK" country="GB" zone="Europe" /> <state name="Bute" iso_code="BUT" country="GB" zone="Europe" /> <state name="Caernarvonshire" iso_code="CAE" country="GB" zone="Europe" /> <state name="Caithness" iso_code="CAI" country="GB" zone="Europe" /> <state name="Cambridgeshire" iso_code="CAM" country="GB" zone="Europe" /> <state name="Co. Carlow" iso_code="CAR" country="GB" zone="Europe" /> <state name="Co. Cavan" iso_code="CAV" country="GB" zone="Europe" /> <state name="Central" iso_code="CEN" country="GB" zone="Europe" /> <state name="Cardiganshire" iso_code="CGN" country="GB" zone="Europe" /> <state name="Cheshire" iso_code="CHS" country="GB" zone="Europe" /> <state name="Co. Clare" iso_code="CLA" country="GB" zone="Europe" /> <state name="Clackmannanshire" iso_code="CLK" country="GB" zone="Europe" /> <state name="Cleveland" iso_code="CLV" country="GB" zone="Europe" /> <state name="Cumbria" iso_code="CMA" country="GB" zone="Europe" /> <state name="Carmarthenshire" iso_code="CMN" country="GB" zone="Europe" /> <state name="Cornwall" iso_code="CON" country="GB" zone="Europe" /> <state name="Co. Cork" iso_code="COR" country="GB" zone="Europe" /> <state name="Cumberland" iso_code="CUL" country="GB" zone="Europe" /> <state name="Clwyd" iso_code="CWD" country="GB" zone="Europe" /> <state name="Derbyshire" iso_code="DBY" country="GB" zone="Europe" /> <state name="Denbighshire" iso_code="DEN" country="GB" zone="Europe" /> <state name="Devon" iso_code="DEV" country="GB" zone="Europe" /> <state name="Dyfed" iso_code="DFD" country="GB" zone="Europe" /> <state name="Dumfries-shire" iso_code="DFS" country="GB" zone="Europe" /> <state name="Dumfries and Galloway" iso_code="DGY" country="GB" zone="Europe" /> <state name="Dunbartonshire" iso_code="DNB" country="GB" zone="Europe" /> <state name="Co. Donegal" iso_code="DON" country="GB" zone="Europe" /> <state name="Dorset" iso_code="DOR" country="GB" zone="Europe" /> <state name="Co. Down" iso_code="DOW" country="GB" zone="Europe" /> <state name="Co. Dublin" iso_code="DUB" country="GB" zone="Europe" /> <state name="Co. Durham" iso_code="DUR" country="GB" zone="Europe" /> <state name="East Lothian" iso_code="ELN" country="GB" zone="Europe" /> <state name="East Riding of Yorkshire" iso_code="ERY" country="GB" zone="Europe" /> <state name="Essex" iso_code="ESS" country="GB" zone="Europe" /> <state name="Co. Fermanagh" iso_code="FER" country="GB" zone="Europe" /> <state name="Fife" iso_code="FIF" country="GB" zone="Europe" /> <state name="Flintshire" iso_code="FLN" country="GB" zone="Europe" /> <state name="Co. Galway" iso_code="GAL" country="GB" zone="Europe" /> <state name="Glamorgan" iso_code="GLA" country="GB" zone="Europe" /> <state name="Gloucestershire" iso_code="GLS" country="GB" zone="Europe" /> <state name="Grampian" iso_code="GMP" country="GB" zone="Europe" /> <state name="Gwent" iso_code="GNT" country="GB" zone="Europe" /> <state name="Guernsey" iso_code="GSY" country="GB" zone="Europe" /> <state name="Greater Manchester" iso_code="GTM" country="GB" zone="Europe" /> <state name="Gwynedd" iso_code="GWN" country="GB" zone="Europe" /> <state name="Hampshire" iso_code="HAM" country="GB" zone="Europe" /> <state name="Herefordshire" iso_code="HEF" country="GB" zone="Europe" /> <state name="Highland" iso_code="HLD" country="GB" zone="Europe" /> <state name="Hertfordshire" iso_code="HRT" country="GB" zone="Europe" /> <state name="Humberside" iso_code="HUM" country="GB" zone="Europe" /> <state name="Huntingdonshire" iso_code="HUN" country="GB" zone="Europe" /> <state name="Hereford and Worcester" iso_code="HWR" country="GB" zone="Europe" /> <state name="Inverness-shire" iso_code="INV" country="GB" zone="Europe" /> <state name="Isle of Wight" iso_code="IOW" country="GB" zone="Europe" /> <state name="Jersey" iso_code="JSY" country="GB" zone="Europe" /> <state name="Kincardineshire" iso_code="KCD" country="GB" zone="Europe" /> <state name="Kent" iso_code="KEN" country="GB" zone="Europe" /> <state name="Co. Kerry" iso_code="KER" country="GB" zone="Europe" /> <state name="Co. Kildare" iso_code="KID" country="GB" zone="Europe" /> <state name="Co. Kilkenny" iso_code="KIK" country="GB" zone="Europe" /> <state name="Kirkcudbrightshire" iso_code="KKD" country="GB" zone="Europe" /> <state name="Kinross-shire" iso_code="KRS" country="GB" zone="Europe" /> <state name="Lancashire" iso_code="LAN" country="GB" zone="Europe" /> <state name="Co. Londonderry" iso_code="LDY" country="GB" zone="Europe" /> <state name="Leicestershire" iso_code="LEI" country="GB" zone="Europe" /> <state name="Co. Leitrim" iso_code="LET" country="GB" zone="Europe" /> <state name="Co. Laois" iso_code="LEX" country="GB" zone="Europe" /> <state name="Co. Limerick" iso_code="LIM" country="GB" zone="Europe" /> <state name="Lincolnshire" iso_code="LIN" country="GB" zone="Europe" /> <state name="Lanarkshire" iso_code="LKS" country="GB" zone="Europe" /> <state name="Co. Longford" iso_code="LOG" country="GB" zone="Europe" /> <state name="Co. Louth" iso_code="LOU" country="GB" zone="Europe" /> <state name="Lothian" iso_code="LTN" country="GB" zone="Europe" /> <state name="Co. Mayo" iso_code="MAY" country="GB" zone="Europe" /> <state name="Co. Meath" iso_code="MEA" country="GB" zone="Europe" /> <state name="Merionethshire" iso_code="MER" country="GB" zone="Europe" /> <state name="Mid Glamorgan" iso_code="MGM" country="GB" zone="Europe" /> <state name="Montgomeryshire" iso_code="MGY" country="GB" zone="Europe" /> <state name="Midlothian" iso_code="MLN" country="GB" zone="Europe" /> <state name="Co. Monaghan" iso_code="MOG" country="GB" zone="Europe" /> <state name="Monmouthshire" iso_code="MON" country="GB" zone="Europe" /> <state name="Morayshire" iso_code="MOR" country="GB" zone="Europe" /> <state name="Merseyside" iso_code="MSY" country="GB" zone="Europe" /> <state name="Nairn" iso_code="NAI" country="GB" zone="Europe" /> <state name="Northumberland" iso_code="NBL" country="GB" zone="Europe" /> <state name="Norfolk" iso_code="NFK" country="GB" zone="Europe" /> <state name="North Riding of Yorkshire" iso_code="NRY" country="GB" zone="Europe" /> <state name="Northamptonshire" iso_code="NTH" country="GB" zone="Europe" /> <state name="Nottinghamshire" iso_code="NTT" country="GB" zone="Europe" /> <state name="North Yorkshire" iso_code="NYK" country="GB" zone="Europe" /> <state name="Co. Offaly" iso_code="OFF" country="GB" zone="Europe" /> <state name="Orkney" iso_code="OKI" country="GB" zone="Europe" /> <state name="Oxfordshire" iso_code="OXF" country="GB" zone="Europe" /> <state name="Peebles-shire" iso_code="PEE" country="GB" zone="Europe" /> <state name="Pembrokeshire" iso_code="PEM" country="GB" zone="Europe" /> <state name="Perth" iso_code="PER" country="GB" zone="Europe" /> <state name="Powys" iso_code="POW" country="GB" zone="Europe" /> <state name="Radnorshire" iso_code="RAD" country="GB" zone="Europe" /> <state name="Renfrewshire" iso_code="RFW" country="GB" zone="Europe" /> <state name="Ross and Cromarty" iso_code="ROC" country="GB" zone="Europe" /> <state name="Co. Roscommon" iso_code="ROS" country="GB" zone="Europe" /> <state name="Roxburghshire" iso_code="ROX" country="GB" zone="Europe" /> <state name="Rutland" iso_code="RUT" country="GB" zone="Europe" /> <state name="Shropshire" iso_code="SAL" country="GB" zone="Europe" /> <state name="Selkirkshire" iso_code="SEL" country="GB" zone="Europe" /> <state name="Suffolk" iso_code="SFK" country="GB" zone="Europe" /> <state name="South Glamorgan" iso_code="SGM" country="GB" zone="Europe" /> <state name="Shetland" iso_code="SHI" country="GB" zone="Europe" /> <state name="Co. Sligo" iso_code="SLI" country="GB" zone="Europe" /> <state name="Somerset" iso_code="SOM" country="GB" zone="Europe" /> <state name="Sark" iso_code="SRK" country="GB" zone="Europe" /> <state name="Surrey" iso_code="SRY" country="GB" zone="Europe" /> <state name="Sussex" iso_code="SSX" country="GB" zone="Europe" /> <state name="Strathclyde" iso_code="STD" country="GB" zone="Europe" /> <state name="Stirlingshire" iso_code="STI" country="GB" zone="Europe" /> <state name="Staffordshire" iso_code="STS" country="GB" zone="Europe" /> <state name="Sutherland" iso_code="SUT" country="GB" zone="Europe" /> <state name="East Sussex" iso_code="SXE" country="GB" zone="Europe" /> <state name="West Sussex" iso_code="SXW" country="GB" zone="Europe" /> <state name="South Yorkshire" iso_code="SYK" country="GB" zone="Europe" /> <state name="Tayside" iso_code="TAY" country="GB" zone="Europe" /> <state name="Co. Tipperary" iso_code="TIP" country="GB" zone="Europe" /> <state name="Tyne and Wear" iso_code="TWR" country="GB" zone="Europe" /> <state name="Co. Tyrone" iso_code="TYR" country="GB" zone="Europe" /> <state name="Warwickshire" iso_code="WAR" country="GB" zone="Europe" /> <state name="Co. Waterford" iso_code="WAT" country="GB" zone="Europe" /> <state name="Co. Westmeath" iso_code="WEM" country="GB" zone="Europe" /> <state name="Westmorland" iso_code="WES" country="GB" zone="Europe" /> <state name="Co. Wexford" iso_code="WEX" country="GB" zone="Europe" /> <state name="West Glamorgan" iso_code="WGM" country="GB" zone="Europe" /> <state name="Co. Wicklow" iso_code="WIC" country="GB" zone="Europe" /> <state name="Wigtownshire" iso_code="WIG" country="GB" zone="Europe" /> <state name="Wiltshire" iso_code="WIL" country="GB" zone="Europe" /> <state name="Western Isles" iso_code="WIS" country="GB" zone="Europe" /> <state name="West Lothian" iso_code="WLN" country="GB" zone="Europe" /> <state name="West Midlands" iso_code="WMD" country="GB" zone="Europe" /> <state name="Worcestershire" iso_code="WOR" country="GB" zone="Europe" /> <state name="West Riding of Yorkshire" iso_code="WRY" country="GB" zone="Europe" /> <state name="West Yorkshire" iso_code="WYK" country="GB" zone="Europe" /> <state name="Yorkshire" iso_code="YKS" country="GB" zone="Europe" /> </states> After you have imported the counties you will need to change the UK country setting in Localizations > countries to 'contains states' and might need to add the states option to the address format for it to show for your customers.

Posted

Arrrrrgghhh ..Wish you had done this ages ago lolol ...Had to do it 1 at a time , But will still be useful for me to go though in-case I missed any and will be really helpful on my main site when it comes across to TB Thanks

Posted

Picked this to branch 1.0.x, together with a typo of mine: https://github.com/thirtybees/thirtybees/commit/965a66cded7a821e938eb6ac61b63d4e6dd4efc8

Thank you very much for the contribution!

Posted

Is the county actually needed? There is no place in thirty bees for counties, since they are a sub division of states, I can see this only causing problems.

Posted

One of the issues in the UK is not necessarily the counties, but postcodes. Most couriers have different delivery charges based on different postcodes. Probably not much of an issue for large value orders, but for small orders it is. A simple next day delivery for differnet postcodes can vary by as much as three times. So we need zones by postcode. Luckliy we have a module that I can now report works fine in 30bees Shipping Costs Based On Zipcodes Pro v3.0.0 - by ProQuality

  • Like 1
  • 11 months later...
Posted (edited)

https://github.com/thirtybees/thirtybees/issues/839 covers this too and I wrote something there, which agrees by saying that people in the UK do not need counties or states.

"might be useful to some people" means private couriers and  ecommerce delivery form-writers, I suppose, because the Post Office/ Royal Mail has a fixed price for all of the UK including the parts other beers cannot reach like the highlands of Scotland and Northern Ireland. Private couriers ask for a postcode before quoting, and might be slower or more expensive for postcodes in those areas. Anyone can check for examples on Parcel2go.co.uk that covers most couriers or MyHermes.co.uk or Collectplus.co.uk . If you check those you'll see just about every private courier and none wants to know a county or state.

The UK and republic of ireland are unusual in having no fixed address format. The name and first line are important; the last line is important. The middle lines are often verbose and whimsical. Even the UK post office / royal mail has a concept of a "post town" which is often your nearest sorting office in a small town but is the town name in the largest towns.

The Republic of Ireland is doubly-unusual in doing without postcodes until a year or two ago. Their postcodes look different to the UK ones, but have the same effect of choosing a part of a postal delivery round - maybe a dozen addresses or one larger postal user - rather than a larger number.

Edited by veganline

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...