This module allows to setup the sort direction options in the storefront catalog view.
Magento 2 Open Source or Commerce edition is required.
Run the following composer command:
composer require opengento/module-catalog-sort-order
Run the following magento command:
bin/magento setup:upgrade
If you are in production mode, do not forget to recompile and redeploy the static resources.
Enable advanced catalog list sort by feature.
Setup the sort options, add the attributes for sort by based on the scope (global/website/store view).
You can also override the sort option and define if the direction must be included in the label or not.
If you choose to not include the direction, then the default direction is ascending.
You can also set the position of the orders in the sort by.
Settings are available at:
Stores > Configuration > Catalog > Catalog > Storefront > Advanced Sort By
Stores > Configuration > Catalog > Catalog > Storefront > Product Listing Sort Options
Raise a new request to the issue tracker.
This project is licensed under the MIT License - see the LICENSE details.
That's all folks!