Skip to content

Region not visible on Checkout page #38440

Open
@schnere

Description

@schnere

Preconditions and environment

  • Magento version: 2.4.6-p3
  • Multistore Enivronment
  • Default Country for base store is set to DE, default country for substore is set to US
  • DE is set to hide the region field. US is set to require the region.

Steps to reproduce

Add a product in US substore to cart, go to checkout shipping page.

Expected result

For US substore the region field should be displayed in checkout because the field is required.

Actual result

The region field is hidden.

Additional information

The problem is that the options for both countries are set to is_default. The issue is caused in this line:

$defaultCountry[$defaultCountryConfig][] = $website->getId();

The region element then only checks the first country it finds with is_default set:

option = _.find(this.countryOptions, function (row) {

As DE is in alphabetical order before US this option will be used which causes the region field to be hidden.

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: OrderComponent: CheckoutIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: ready for devReported on 2.4.6-p3Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions