1.7.6 sort by price - low to high white page #15721
Labels
Bug
Type: Bug
Faceted search
Module: ps_facetedsearch
FO
Category: Front Office
No change required
Resolution: issue closed because expected as is
When sorting price from low too high a white page appears with no results.
The problems is caused by FacetedSearch.
By editing this file: lines 332-336 in modules/ps_facetedsearch/src/Adapter/MySQL.php
Replacing line 332-336 will solve this issue.
) {
$joinMapping = $filterToTableMapping[$orderField];
$orderField = $joinMapping['tableAlias'] . '.' . (isset($joinMapping['fieldName']) ? $joinMapping['fieldName'] : $orderField);
if ($orderField === 'price') {
$orderField = $this->getOrderDirection() === 'asc' ? 'price_min' : 'price_max';
}
After changing file, you need to clear browser history and cache from backoffice.
This fix does not work for multistore. Help is here needed!
The text was updated successfully, but these errors were encountered: