We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dcf1d7f + ee0e7b5 commit 4ad81e1Copy full SHA for 4ad81e1
app/code/Magento/Catalog/Block/Product/ProductList/Toolbar.php
@@ -689,7 +689,7 @@ public function getWidgetOptionsJson(array $customOptions = [])
689
'limit' => ToolbarModel::LIMIT_PARAM_NAME,
690
'modeDefault' => $defaultMode,
691
'directionDefault' => $this->_direction ?: ProductList::DEFAULT_SORT_DIRECTION,
692
- 'orderDefault' => $this->_productListHelper->getDefaultSortField(),
+ 'orderDefault' => $this->getOrderField(),
693
'limitDefault' => $this->_productListHelper->getDefaultLimitPerPageValue($defaultMode),
694
'url' => $this->getPagerUrl(),
695
];
0 commit comments