Skip to content

Magento\SalesRule\Model\Plugin\QuoteConfigProductAttributes::afterGetProductAttributes getting triggered on all Cart Queries #40226

@senthilengg

Description

@senthilengg

Preconditions and environment

  • All Magento versions
  • salesrule_product_attributes table select getting triggered and salesrule attribute data retrieved from EAV eventhough collectTotals not fired

Steps to reproduce

  1. Add products to cart (collectTotals should have completed here)
  2. Enable DB Query Log
  3. Hit the cart page URL
  4. To confirm the query fired run , cat var/log/db.log | grep "salesrule_product_attribute" from magento root

Expected result

salesrule_product_attribute query should be fired only when collectTotal happening

Actual result

salesrule_product_attribute query fired always

Additional information

For large catalog and companies who run lot of promotions will get benefit out of it.

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

Labels

Issue: needs updateAdditional information is require, waiting for responseReported on 2.4.xIndicates original Magento version for the Issue report.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

Type

No type

Projects

Status

Needs Update

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions