commercelayer-react-checkout icon indicating copy to clipboard operation
commercelayer-react-checkout copied to clipboard

Do no automatically set single Customer Address for billing section if market requires billing info

Open malessani opened this issue 2 years ago • 0 comments

Description

If a Customer Address has a single Customer Address with no billing info but the market linked to the order requires billing info we should avoid autoselecting it.

Steps to Reproduce

  1. Create a single Customer Address without billing info
  2. Add requires billing info to a market
  3. Checkout an order with the customer and the market with required billing info
  4. The Customer Address should not be automatically linked to the order

Expected Result

The expected result was to not have the Customer Address without billing info linked to the order as soon as the user lands on the checkout. Customer Addresse (unless a country code shipping lock is present) should be available on the shipping section.

Actual Results

The actual result was to have the Customer Address linked to the order even without bililng info while the market requires it.

malessani avatar Nov 07 '22 11:11 malessani