Open
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
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentA defect with this priority could have functionality issues which are not to expectations.May be fixed according to the position in the backlog.The issue has been reproduced on latest 2.3 releaseAffects non-critical data or functionality and does not force users to employ a workaround.Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
Type
Projects
Status
Pull Request In Progress