-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Component: ConfigurableProductComponent: EavComponent: IndexerComponent: PricingEvent: Global-Contribution-DayIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentIssue: needs updateAdditional information is require, waiting for responseAdditional information is require, waiting for responsePriority: P2A defect with this priority could have functionality issues which are not to expectations.A defect with this priority could have functionality issues which are not to expectations.Priority: P3May be fixed according to the position in the backlog.May be fixed according to the position in the backlog.Progress: PR in progressReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseThe issue has been reproduced on latest 2.3 releaseSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.Affects non-critical data or functionality and does not force users to employ a workaround.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject itIssue related to Developer Experience and needs help with Triage to Confirm or Reject it
Description
Preconditions (*)
magento 2.3
Steps to reproduce (*)
- Edit
price
orspecial_price
on configurable product from mass action grid or saving attribute via resource model$this->productResource->saveAttribute($product, 'price');
or
$this->productResource->saveAttribute($product, 'special_price');
- Run reindex from cron (mb. CLI reindex as well)
- See the price from attributes appeared on product grid
- See the price from attributes in columns
price
andfinal_price
in the tablecatalog_product_index_price
- Then save configurable product from admin edit page
- See
null
value saved for price attribute incatalog_product_entity_decimal
- Wait for price reindex from cron (mb. CLI reindex as well)
- Repeat step 4 and see
0
saved in columnsprice
andfinal_price
for edited configurable product
to find prices saved for configurable product use this SQL
SELECT decimal2.*
FROM catalog_product_entity
inner join catalog_product_entity_decimal decimal2 on catalog_product_entity.entity_id = decimal2.entity_id and
attribute_id in (SELECT attribute_id
from eav_attribute
where attribute_code in
('price', 'special_price'))
where type_id = 'configurable';
Expected result (*)
- Price never saved for a configurable product in
catalog_product_entity_decimal
table from any save point e.g.resource model
,repository
- Price indexed correctly in
catalog_product_index_price
(data for composite products should be calculated based on child products) e.g. final_price = min_price, price = max_price attribute values fromcatalog_product_entity_decimal
should be ignored
Actual result (*)
- Still possible to save
price
andspecial_price
for configurable/composite product incatalog_product_entity_decimal
table - Wrong calculation of columns
price
andfinal_price
in thecatalog_product_index_price
table
Metadata
Metadata
Assignees
Labels
Component: ConfigurableProductComponent: EavComponent: IndexerComponent: PricingEvent: Global-Contribution-DayIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentIssue: needs updateAdditional information is require, waiting for responseAdditional information is require, waiting for responsePriority: P2A defect with this priority could have functionality issues which are not to expectations.A defect with this priority could have functionality issues which are not to expectations.Priority: P3May be fixed according to the position in the backlog.May be fixed according to the position in the backlog.Progress: PR in progressReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseThe issue has been reproduced on latest 2.3 releaseSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.Affects non-critical data or functionality and does not force users to employ a workaround.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject itIssue related to Developer Experience and needs help with Triage to Confirm or Reject it