Enhancing your Magento 2 store with a "Sort by Popularity" feature can significantly improve user experience by allowing customers to view top-rated products first. Here's a straightforward 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">popularity</argument>
</action>
</block>
For a more comprehensive sorting solution, consider using our Improved Sorting for Magento 2 extension, which provides enhanced sorting capabilities including popularity. With these instructions, you’ll improve the shopping experience and potentially increase conversions.
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