Adjust sorting of search result within concept 'events'
This commit is contained in:
@@ -193,9 +193,12 @@ class SearchResultService implements SingletonInterface
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sort products by minprice within concept sections
|
// Sort products by minprice within concept sections except for 'event' concept
|
||||||
foreach ($data as $conceptUid => &$section)
|
foreach ($data as &$section) {
|
||||||
{
|
if ('evt' === $section['concept']['code']) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
uasort($section['items'], function ($a, $b) {
|
uasort($section['items'], function ($a, $b) {
|
||||||
return strcmp($a['minPrice'], $b['minPrice']);
|
return strcmp($a['minPrice'], $b['minPrice']);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user