Linked Questions
14 questions linked to/from Magento 2 How to add custom sort by option
7
votes
1
answer
13k
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
2
answers
2k
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
2
answers
4k
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 ...
1
vote
1
answer
2k
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
3
answers
2k
views
Custom Sorting option not working in Magetno 2.4 search
Custom Sorting option not working in Magetno 2.4 search
app/code/Arun/NewSorting/etc/di.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&...
4
votes
2
answers
2k
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 ...
0
votes
2
answers
1k
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
1
answer
1k
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
0
answers
1k
views
custom sorting is not working in magento 2.4.3 p1
enter code hereI am created a custom sorting in magento2.4.3p1 but it is not working in the frontend.
I am face issues is
We can't find products matching the selection.
Toolbar.php
<?php
namespace ...
1
vote
1
answer
813
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/...
2
votes
0
answers
512
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
1
answer
464
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 ...
6
votes
1
answer
232
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
1
answer
74
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 ?