After upgrade Magento 2 (2.2.8 to 2.3.5) i am getting some errors and bugs, one of those is on checkout payment page, the region name and city name is empty for guest users, for example:
URL /checkout/
and the result:
URL /checkout/#payment
for register users with the same values:
The variables used:
/web/template/billing-address/details.html
<span data-bind="html: currentShippingAddress().region"></span>,
<span data-bind="html: currentShippingAddress().city"></span>
Response:
Guest users:
{
"addressInformation": {
"billing_address": {
"city": "",
"countryId": "CO",
"customAttributes": {
"city_id": "362",
"document": "1234567890",
"document_type": "CC",
"shipping_instructions": ""
},
"extensionAttributes": {
"city_id": "362",
"document": "1234567890",
"document_type": "CC",
"shipping_instructions": ""
},
"firstname": "Diego",
"lastname": "Castro",
"postcode": null,
"region": "",
"regionId": "563",
"street": [
"Cra123"
],
"telephone": "3215649870"
},
"extension_attributes": {},
"shipping_address": {
"city": "",
"countryId": "CO",
"customAttributes": {
"city_id": "362",
"document": "1234567890",
"document_type": "CC",
"shipping_instructions": ""
},
"extensionAttributes": {
"city_id": "362",
"document": "1234567890",
"document_type": "CC",
"shipping_instructions": ""
},
"firstname": "Diego",
"lastname": "Castro",
"postcode": null,
"region": "",
"regionId": "563",
"saveInAddressBook": null,
"street": [
"Cra123"
],
"telephone": "3215649870"
},
"shipping_carrier_code": "freeshipping",
"shipping_method_code": "freeshipping"
}
}
Register users:
{
"addressInformation": {
"billing_address": {
"city": "Bogotá",
"company": null,
"countryId": "CO",
"customAttributes": {
"city_id": "362",
"document": "1234567890",
"document_type": "CC"
},
"customerAddressId": "5443932",
"customerId": "19666559",
"extensionAttributes": {
"city_id": "362",
"document": "1234567890",
"document_type": "CC"
},
"fax": null,
"firstname": "Diego",
"lastname": "Castro",
"middlename": null,
"postcode": null,
"prefix": null,
"region": "Bogotá",
"regionCode": null,
"regionId": "563",
"street": [
"Cra123"
],
"suffix": null,
"telephone": "3216548970",
"vatId": null
},
"extension_attributes": {},
"shipping_address": {
"city": "Bogotá",
"company": null,
"countryId": "CO",
"customAttributes": {
"city_id": "362",
"document": "1234567890",
"document_type": "CC"
},
"customerAddressId": "5443932",
"customerId": "19666559",
"extensionAttributes": {
"city_id": "362",
"document": "1234567890",
"document_type": "CC"
},
"fax": null,
"firstname": "Diego",
"lastname": "Castro",
"middlename": null,
"postcode": null,
"prefix": null,
"region": "Bogotá",
"regionCode": null,
"regionId": "563",
"saveInAddressBook": null,
"street": [
"Cra123"
],
"suffix": null,
"telephone": "3216548970",
"vatId": null
},
"shipping_carrier_code": "freeshipping",
"shipping_method_code": "freeshipping"
}
}
Thanks.
Grettings.