Skip to content

Configurable Options Not Working After Moving .price-box Outside of .product-info-main in Magento 2.4.7 #39134

Open
@Zwernemann

Description

@Zwernemann

Preconditions and environment

Magento Version: 2.4.7
Customizations: Modified catalog_product_view.xml layout file in Magento_Theme/Magento_Catalog/layout

Steps to reproduce

  1. Upgrade Magento to version 2.4.7.
  2. Modify the catalog_product_view.xml layout file by adding the following code (with this the price element will be added to a sticky footer)

image

  1. Ensure that the .price-box element is moved outside of the .product-info-main element and placed inside a sticky footer element.
  2. Attempt to select configurable options on the product page.

Expected result

  • Configurable options should be selectable and update the product price correctly, even after moving the .price-box outside of the .product-info-main element.
    image

Actual result

  • Configurable options do not work correctly. The dropdown for configurable options remains empty.

image

  • This issue occurs due to the change in priceHolderSelector, which was previously .price-box and is now .product-info-main [data-role=priceBox].

Additional information

  • The issue did not exist in Magento versions prior to 2.4.7. The change in /web/js/configurable.js priceHolderSelector seems to have affected installations where .price-box is moved outside of .product-info-main.
  • I was able to resolve the issue temporarily by reverting to the previous version of /web/js/configurable.js.
  • I added a comment at da20c4e that describes the error.

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: FrameworkComponent: ConfigurableProductIssue: 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.7Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchTriage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions