Issue #3562 fixed
This commit is contained in:
parent
ecba982184
commit
f472d7ec15
|
|
@ -456,8 +456,11 @@ class ProductRepository extends Repository
|
|||
* @return array
|
||||
*/
|
||||
private function getDefaultSortByOption()
|
||||
{
|
||||
$config = core()->getConfigData('catalog.products.storefront.sort_by');
|
||||
{
|
||||
$value = core()->getConfigData('catalog.products.storefront.sort_by');
|
||||
|
||||
$config = $value ? $value : 'name-desc';
|
||||
|
||||
return explode('-', $config);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue