Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Known issues
Placing postal code in the Shipping Preview of the cart is duplicating address options for recurring customers
Placing postal code in the Shipping Preview of the cart is duplicating address options for recurring customers
ID: 956338
Backlog
Published on 12/20/2023
Last update on 12/20/2023

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

  1. Use a user that already made some purchases and whose profile has some address for delivery.
  2. Add some items to the cart, then go to the checkout.
  3. In the cart use the Shipping Preview to place a postal code of one in your profile.
  4. Try to review the orderForm, and search for the shippingData.availableAddresses
  5. The address in your profile will be listed with a key detail, the address has already the number of the street (shippingData.availableAddresses.[].number)
  6. The new option in the array that generates the problem doesn’t have the number, which converts it into an incomplete address option.
  7. 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).

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback