Summary
We have some problems when it comes to placing postal codes in the Shipping Preview module in the cart, some of them are described in these KIs:
- Ref. 1: [KI] Pasting postal code in shipping preview cart sometimes returns null API result
- Ref. 2: [KI] Shipping preview's postal code input field is not hidden
In this case, what happens is that for customers who already have addresses registered in their profile (recurring buyers), when placing a postal code in the Shipping Preview already used in a past purchase, in the API An additional delivery address option is being placed (shippingData.availableAddresses
), when advancing through the Checkout steps and reaching the address selection (/checkout/#/shipping
), it turns out that instead of selecting the address corresponding to said postal code, it opens a new incomplete selection option, and in some cases hidden, forcing the client to select one in the list or complement the "new one" to get to the next step.
Simulation
- Use a user that already made some purchases and whose profile has some address for delivery.
- Add some items to the cart, then go to the checkout.
- In the cart use the Shipping Preview to place a postal code of one in your profile.
- Try to review the
orderForm
, and search for theshippingData.availableAddresses
- The address in your profile will be listed with a key detail, the address has already the number of the street (
shippingData.availableAddresses.[].number
) - The new option in the array that generates the problem doesn’t have the
number
, which converts it into an incomplete address option. - Try to go to the shipping step of the checkout (
/checkout/#/shipping
) and you will see that you cannot pass to the payment step if you do not complete de address selected, or select another one of the options.
Workaround
In the shipping step of the checkout, try to select the desired listed address (force select one of the previous ones of the client).