Skip to main content

How to fix common issues

This section describes the most common problems that customers report and how they can be resolved.

Sorting criterion is not visible in selector

For example, you have noticed some sorting criteria are missing in a dropdown selector in a category. This can happen when sorting criteria are not assigned in category settings.

To resolve it, navigate to Catalog -> Categories, find issued category and expand Display Settings section. Check whether required criteria are selected in the Available product listing sort by configuration.

Also, you can set default sorting for this category. Please use the Default product listing sort by configuration.


Ranking factor is not available when creating sorting criterion

When creating a sorting criterion you discover that ranking factor is missing in the selector. This issue can occur when you created a ranking factor but not indexed it.

To fix it, execute partial reindex for a ranking factor through ranking factor edit menu clicking the Reindex button, or run full reindex.


Sorting by attribute shows incorrect results

Sorting by sorting criterion based on the attribute may cause unexpected order of results. This may be caused by ambiguities in the processing of attribute values.

To sort by complicated attributes correctly, create a ranking factor based on an attribute, set the mapping (desired weight parameters) and use this ranking factor in sorting criterion.


Criteria names translation

Improved Sorting extension does not have a configuration in admin where you would set translation of criteria names for different store views.
Sorting criteria names could be added to translation files (i18n), usually placed in vendor/mirasvit/module-sorting/src/Sorting/i18n/.
Create a separate file for your language (en_US.csv, de_DE.csv). The names for all languages can be found via this command:

php -f bin/magento info:language:list

Override the strings in your dictionary file: Original line , Translated line.
Run the following commands to see the changes:

php -f bin/magento setup:static-content:deploy
php -f bin/magento cache:flush

The custom themes will be displayed instead of the default for your language.


Applying sorting criteria has no effect

If you encounter the issue when applying different sorting criteria has no effect and product collection remains static, check whether you are using multiple ranking factors as global. Try to limit the number of globals and set two or three. Then, validate the sorting as described on the how to verify sorting results page.