Linked Questions

6
votes
1answer
9k views

Magento 2 Sort By Price: Low to High and High to Low [duplicate]

I want to custom sort by option in category Filter For price like this Price: Low to High & Price: High to Low. Please suggest me how to change sorting option in my site. i am using magento 2.1.2
3
votes
2answers
1k views

Sorting by product ID

I'd like to add product id as a new sorting option in frontend catalog pages. How can I do that? This attribute is not listed in product attributes configuration in magento backend. I guess that it ...
1
vote
1answer
764 views

How to change products sort order in magento 2?

In product list page I need to change the sorting order. I have a current order like: Description A-Z Price High To Low Price Low to High Description Z-A I need to change it to. Description A-Z ...
0
votes
2answers
592 views

Magento 2.4.1 sort by newest not working

I am using Magento 2.4.1 search engine is elasticsearch7 selected in catalog config. I wanted to add custom sorting options on the category page like sort by price low to high and newest etc. Now I am ...
2
votes
0answers
489 views

How to add new sorting option for product in Magento2?

By default Magento provide Position , Name and Price sorting option for products. But I want to add new sorting option Price high to low , Price low to high and Latest arrivals. So how can I add my ...
2
votes
1answer
353 views

Elastic Search: Custom sorting options not working after enable elastic search

I'm trying to add custom sorting options like newest products,price high-to-low & price low-to-high in category page using plugin. After creating plugin it's working good in category page and ...
2
votes
1answer
344 views

Help with Magento 2.3 custom product sort plugin

I have tried to implement a custom sorting plugin in Magento. Namely, with the options: Price (Low > High) Price (High > Low) Name (A - Z) Name (Z - A) Now, I have the plugin installed and ...
0
votes
1answer
314 views

Sort product collection by date in standart category view

I'm running Magento CE 2.3.3 with Porto theme. I want to sort the products in the category overview by the date they were added without using an extra extension. By default products in category view/...
6
votes
1answer
218 views

Add new options into sorter

In magento 2 project, it provides 3 options by default. Position Product Name Price I need to change these options to sort as, Most Popular Price high to low Price low to high I can add from ...
0
votes
0answers
194 views

Magento 2.4 Sort products by date

I've found topics about enabling sorting by date, this being one example but on 2.4 this does not work, even manually typing ?product_list_order=created_at in url does not get any results, is there ...
0
votes
1answer
43 views

how to align the custom order option in magento 2 in product list page sort by options

how to align the custom order option in magento 2 in product list page sort by options ? how to set the custom order in attributes using Short by options ?
0
votes
2answers
31 views

Sort products by date Magento 2.4.1

$this->_collection->addAttributeToSort('created_at', 'DESC'); // not working $this->_collection->setOrder('created_at', 'DESC'); // not working //$this->_collection->setOrder('...
0
votes
0answers
27 views

How can I Create custom product sorting on category view page without use of product attribute Magento 2.4.1

I'm trying this app/code/Vendore/Sorting/etc/di.xml <type name="Magento\Catalog\Model\Config"> <plugin name="config" type="Vendore\Sorting\Plugin\Catalog\Config&...