cancel
Showing results for 
Search instead for 
Did you mean: 

Problems sorting products by price

Problems sorting products by price

Hi !

On website Magento 2.4.3-p2

When sorting products by increasing/decreasing price within a category, products with a promotional price are not sorted correctly.

Capture d'écran 2023-12-20 124346.png
Capture d'écran 2023-12-20 124203.png

To debug this we have tried to check the 3rd party extensions to check overrides of related sorting classes but no overrides found.

 

Tried to apply the custom filter in the Block class Magento\Catalog\Block\Product\ListProduct.php which returns the collection of products but

not worked

 

Tried to create the plugin to modify the function afterAfterSetCollection of class Magento\Catalog\Block\Product\ProductList\Toolbar.php but
still the changes are not getting applied.

 

It has come to our attention that certain Amasty modules have extended or customized core/default Magento functionalities to modify product collections on category pages, specifically affecting features such as Product Filters and Sorting.

 

So we asked Amasty to take a look at this problem, and here's what they did:

- During the investigation, the dev team downloaded the database dump and disabled all of Amasty modules there
- Then, they ran all the necessary commands, performed reindexing, and switched to Luma theme.
- As a result, the sorting by price was not functioning correctly still
- Therefore, we concluded that the issue doesn't stem from our modules

 

All things considered, we recommend contacting Magento support, as deactivating our modules and third-party modules, as well as switching to the Luma theme, didn't solve the price sorting problem. The problem seems to lie with Magento.

Would you have a solution for us to solve this problem please?

 

 

 

1 REPLY 1

Re: Problems sorting products by price

Magento Open Source doesn't really have free support. Adobe Commerce does.

 

You'll need to find yourself some experienced dev agency to look into your specific codebase and figure out what's causing your issue. 

 

When you say "promotional price", what do you exactly mean? Special price on product? Catalog price rule? Something else?

Founder at https://agency418.com