1

How can i get "Sort By" method in this page, $productListToolbar doesnt include sort by position method.

0

You can do it like :

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$productList = $objectManager->create('Magento\Catalog\Block\Product\ProductList\Toolbar');
$order = $productList->getCurrentOrder();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.