Closed
Description
Preconditions (*)
- Magento 2.4.1 and 2.4-develop
- PHP 7.4
Steps to reproduce (*)
- In General Settings configure Default Country that doesn't support States (eg. Czech Republic)
- In General Settings configure Allowed countries same as Default Country
- Make sure that your Default Country isn't selected in State is Required for field
- In General Settings configure Allow to Choose State if It is Optional for Country to NO
- Navigate to storefront as a guest and add product to cart.
- Go to Checkout page.
Expected result (*)
- Default Country is automatically selected in shipping address form and region field is hidden.
Actual result (*)
- Default Country is automatically selected in shipping address form but region input field is visible.
Additional info from Engcom
According to the documentation, when Allow to Choose State if It is Optional for Country is set to No - In countries where the state field is not required, omits the State field.
- In General Settings set country that doesn't support States for Default Country and Allowed countries settings (eg. Czech Republic)
- Make sure that your Default Country isn't selected in State is Required for field
- In General Settings set Allow to Choose State if It is Optional for Country to NO
- Navigate to storefront as a guest and add product to cart.
- Go to Checkout page.
Actual result
Default Country is automatically selected in shipping address form but region input field is visible.
Metadata
Metadata
Assignees
Labels
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmedA defect with this priority could have functionality issues which are not to expectations.The issue has been reproduced on latest 2.4-develop branchMajor restrictions or short-term circumventions are required until a fix is available.
Type
Projects
Status
Done