Empty shipping address

Created on 28 May 2024, about 1 month ago
Updated 1 June 2024, 27 days ago

Problem/Motivation

We face a scenario when the shipping address is empty on the checkout review step even though a user entered a valid address.

The issue happens because Commerce API stores the shipping profile in the "shipping_information" base field. When the order is saved, the empty shipping profile stored there at this point is saved as well, overriding the saved non-empty profile.

Steps to reproduce

* Install Commerce Shipping and Commerce API module.
* On the checkout order information step, uncheck the "My billing information is the same as my shipping information" checkbox.
* Enter shipping address.
* Make sure the shipping rates are recalculated.
* Enter other data (like card data and billing address).
* Proceed to the checkout Review step.
* See the shipping address is empty.

Proposed resolution

The suggestion is to load the latest version of the order before saving it.

🐛 Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

🇨🇾Cyprus Alex Bukach

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024