Skip to content

Adding tier_price to product comparison will crash the page #35244

Closed
@Tjitse-E

Description

@Tjitse-E

Preconditions (*)

  1. Magento 2.4.2-p1
  2. PHP 7.4

Steps to reproduce (*)

  1. Go to the Magento 2 admin panel
  2. Go to stores > attributes > product
  3. Search for 'tier_price'
  4. Open the tier price attribute and go to the 'Storefront properties' tab.
  5. Set 'Comparable on storefront' on 'yes'
  6. Go to the frontend
  7. Add two products to the products comparison
  8. View the product comparison

Expected result (*)

  1. See the product comparison, no errors

Actual result (*)

  1. The page will crash:

1 exception(s):
Exception #0 (Exception): Notice: Array to string conversion in vendor/magento/module-catalog/Block/Product/Compare> > /ListCompare.php on line 208


Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • 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: ProductComponent: FrontendIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneReported on 2.4.2-p1Indicates 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

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions