You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With craftcms/cms version 5.5.10 and craftcms/commerce version 5.2.11, addresses can be encoded. Depending on the selected country, an additional field administrativeArea appears when required. When displayed, this field is usually mandatory.
In the generated list, the United Kingdom has a full list of administrativeAreas, meaning this field should be displayed when selecting the country.
However, when saving an address from the front end, the administrativeArea is not stored in the back end.
The reason appears to be that in the back end, when selecting the United Kingdom, the administrativeArea field does not appear, whereas it does for other countries such as UA, US, etc.
Steps to reproduce
Retrieve the list of administrative areas for all countries using craft.app.addresses.getSubdivisionRepository().getList([countryCode]).
Select the United Kingdom as the country when submitting an address from the front end.
Ensure that the administrativeArea field is visible and populated.
Save the address and check the stored data in the back end.
Expected behavior
The administrativeArea field should be displayed for the United Kingdom in the back end when selected.
The submitted administrativeArea should be correctly stored in the database.
Actual behavior
The administrativeArea field is not displayed in the back end for the United Kingdom.
The submitted administrativeArea from the front end is not saved.
Additional Information
Craft CMS version: 5.5.10
Craft Commerce version: 5.2.11
PHP version: 8.2.27
Database type & version: MySQL 8.0.40
Craft CMS version
5.5.10
PHP version
8.2.27
Database type and version
MySQL 8.0.40
The text was updated successfully, but these errors were encountered:
The addressing package (commerceguys/addressing) that we are are using doesn't consider the administrativeArea used by GB so by default is not showing it.
What happened?
Description
With
craftcms/cms
version5.5.10
andcraftcms/commerce
version5.2.11
, addresses can be encoded. Depending on the selected country, an additional fieldadministrativeArea
appears when required. When displayed, this field is usually mandatory.I retrieve the list of countries using:
And the list of
administrativeAreas
as follows:In the generated list, the United Kingdom has a full list of
administrativeAreas
, meaning this field should be displayed when selecting the country.However, when saving an address from the front end, the
administrativeArea
is not stored in the back end.The reason appears to be that in the back end, when selecting the United Kingdom, the
administrativeArea
field does not appear, whereas it does for other countries such asUA
,US
, etc.Steps to reproduce
craft.app.addresses.getSubdivisionRepository().getList([countryCode])
.administrativeArea
field is visible and populated.Expected behavior
administrativeArea
field should be displayed for the United Kingdom in the back end when selected.administrativeArea
should be correctly stored in the database.Actual behavior
administrativeArea
field is not displayed in the back end for the United Kingdom.administrativeArea
from the front end is not saved.Additional Information
5.5.10
5.2.11
8.2.27
MySQL 8.0.40
Craft CMS version
5.5.10
PHP version
8.2.27
Database type and version
MySQL 8.0.40
The text was updated successfully, but these errors were encountered: