magento2: Magento 2.2.4 Product sorting list by price on category page wrong when configurable product has special price set by mass action.

Preconditions

  1. Magento 2.2.4

Steps to reproduce

  1. Add a special price to configurable product using mass action.
  2. Re-index price

Expected result

  1. It is expected that catalog category page show products sorted by price correctly, taking account that special price of the configurable product should not make difference to price indexer process

Actual result

  1. Indexer process is using configurable product special price to update catalog_product_index_price letting the category page sorting products in the wrong way. issue_magento

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Reactions: 2
  • Comments: 19 (6 by maintainers)

Most upvoted comments

Making product price updates via massaction leeds to a problem: If configurable product was selected, the price for it will be updated - it is wrong behaviour since in Magento 2 there is no way to update price in configurable product (unlike in 1.9).

Then it leeds to generating price indexes for configurable product with prices from itself and not from it’s associated products.

We’ve managed to fix that issue by blocking price updates from massacion and implementing 4 additional fields inside configurable product (price, special price, special from, special to) which update all associated products.