cancel
Showing results for 
Search instead for 
Did you mean: 

Why index catalog_product_price excludes disabled products?

Why index catalog_product_price excludes disabled products?

Hello,

 

I'm trying to figure out why the prices index excludes Disabled products. The thing is that sorting by price in the admin product grid produces a wrong result set because it's missing all the Disabled product not previously included in the index.

 

The issue is explained here: https://github.com/magento/magento2/issues/7522. And the line of code where this limitation is set is this one: https://github.com/magento/magento2/blob/2.3-develop/app/code/Magento/Catalog/Model/ResourceModel/Pr...

 

Before to propose a fix at Github, or even to take any action in order to "fix" it in my projects, I want to understand why this design decision has been taken at the first place.

 

Thank you in advance.

1 REPLY 1

Re: Why index catalog_product_price excludes disabled products?

sir how did you fix this?