how can change Sort order to Name in Magento Search Result page?
Thanks for help.
To change the product sorting, navigate to Catalog > Categories and choose the Store View that you want to change. Then select the needed category, open the Products in Category tab, and edit the Position column. Save the changes.
Reorder Magento 2 Categories Using the Drag and Drop Feature To manage categories in the Magento admin go to Catalog -> Manage Categories. On the left, you will see a category tree. To view all parent categories and subcategories, click 'Expand All'. To rearrange the position of a category, drag it to a new position.
In your theme (for example /app/design/frontend/{your-interface}/{your-theme}/layout/
) create a file local.xml
with the following contents:
<?xml version="1.0" encoding="UTF-8"?>
<layout>
<catalogsearch_result_index>
<reference name="search_result_list">
<action method="setDefaultDirection"><param>asc</param></action>
<action method="setSortBy"><param>name</param></action>
</reference>
</catalogsearch_result_index>
<catalogsearch_advanced_result>
<reference name="search_result_list">
<action method="setDefaultDirection"><param>asc</param></action>
<action method="setSortBy"><param>name</param></action>
</reference>
</catalogsearch_advanced_result>
</layout>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With