Skip to content

Wrong price is synced in data exporter for bundle products #39697

Open
@zhovnirigor

Description

@zhovnirigor

Preconditions and environment

  • Magento version 2.4.7-p4
  • Bundle product is created with variation price set on both default and website level. Prices on default and website level must differ.

Steps to reproduce

  1. Run a catalog_data_exporter_products reindex.
  2. Debug a query composed in \Magento\BundleProductDataExporter\Model\Query\BundleProductOptionValuesQuery::getQuery

Expected result

  1. price_value for the variation of the bundle product in the result is taken from the website level if set, not default level. This means it is taken from catalog_product_bundle_selection_price table. The price set only on default level is taken from the default level (= from catalog_product_bundle_selection table).

Actual result

  1. price_value for the variation of the bundle product in the result is always taken from the default level, not website level - even if set on website level. This means it is always taken from catalog_product_bundle_selection table, never from catalog_product_bundle_selection_price table.

Additional information

Patch fixes this problem (patch assumes the installation is done in 'vendor' folder).

bundle.patch.zip

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

    Adobe CommerceThe issue related to the Adobe Commerce(EE) or B2B functionalityArea: CatalogComponent: BundleImportExportIssue: 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.Reported on 2.4.7-p4Indicates 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

    Status

    Ready for Development

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions