This commit is contained in:
rahulshukla-home 2020-07-24 12:51:50 +05:30
parent ecba982184
commit f472d7ec15
1 changed files with 5 additions and 2 deletions

View File

@ -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);
}