Adding a "Sort by Position" functionality to your Magento 2 store can enhance the shopping experience by allowing customers to view products in a preferred order. Here's a simple guide to implementing this feature.
<block class="Magento\Catalog\Block\Product\ProductList\Toolbar" name="product_list_toolbar">
<action method="setDefaultOrder">
<argument name="order" xsi:type="string">position</argument>
</action>
</block>
If you're looking for a more advanced sorting solution, consider using our Improved Sorting for Magento 2 extension, which provides additional sorting options and enhanced functionality.
By incorporating these steps, you’ll improve your store’s usability and potentially boost conversion rates, creating a seamless experience for your customers.
We use cookies to help improve our services, make personal offers, and enhance your experience. If you do not accept optional cookies below, your experience may be affected. If you want to know more, please read the Cookie Policy
Please select and accept your Cookies Group
Cookie Name | Cookie Provider | Cookie Description | Cookie Lifetime | Cookie Type |
---|---|---|---|---|
Login and Registration Form