Questions tagged [sort-by-options]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer

Magento 2 Sort by new from date and price ascending

I want to sort the product collections with new from date and low to high price within a loaded collections. For eg, low to high price should to be displayed to the new products (new from date) first ...
Mahikam's user avatar
  • 31
0 votes
0 answers

From where magento2 fetches result when we select any option from 'sort by' dropdown on product listing page?

From where magento2 fetches result when we select any option from 'sort by' dropdown on product listing page? Does Magento reassign order for the items instantly or it displays result from cached/...
Satya P's user avatar
0 votes
1 answer

How to use custom product attribute in sorting option with search criteria builder for magento 2?

I have created one custom product attribute(bestseller). Now I want to sort by custom product attribute(bestseller) using search criteria builder sort by option but it's not working for custom product ...
Jitendra Patel's user avatar
0 votes
1 answer

Magento2 Add Custom Sort By Option ( Special Price Low - High)

I Want to Add New Sort By Option Like (Special Price From Low To High). Does any one know how i can do this ?
Sanjay Shiyal's user avatar
0 votes
1 answer

Category Products - Sort By Newest

Since upgrading to Magento 2.4x and having to use ElasticSearch as default, I am unable to find a way to sort category products by newest (created_at). I have tried enabling used_in_sort_by for ...
Chris Oliver's user avatar
0 votes
0 answers

Default sorting option not working in magento 2.2.7?

I am using the default sorting option as product name but when the page loads for first time it is not working. It's only working when selecting an option from the sorting dropdown.
Arul's user avatar
  • 309
1 vote
1 answer

Get "Sort by" method in catalog page

How can i get "Sort By" method in this page, $productListToolbar doesnt include sort by position method.
Mikel's user avatar
  • 109
2 votes
3 answers

Magento 2.3.3 main.ERROR: {"error":{"root_cause":[{"type":"query_shard_exception","reason":" No mapping found for ['attribute'] in order to sort on

I have just upgraded to Magento ver. 2.3.3 (from 2.2.8) with Elasticsearch and I am having an issue with my custom module regarding the sort by options. Elasticsearch information: { "name" : "...
Greg's user avatar
  • 2,919
0 votes
2 answers

Magento 2.3.2: Sort by Bestselling Minimal results

I am using custom code to implement sort by Best selling on the category page, I have created an around plugin for <type name="Magento\Catalog\Block\Product\ProductList\Toolbar"> <...
Nagamani's user avatar
  • 133
2 votes
1 answer

Magento 2: get "Sort By" filter options in Rest API

Need to get Sort By List of Options category products list page using Rest API. I have checked default REST API but can't get the same. Any have idea how to get ...
Kirti Nariya's user avatar
  • 3,421
2 votes
2 answers

Best seller sort by option in Magento 2.3.4

I am trying to implement Best seller sort by in category list page. Followed below link, but that is not working in Magento 2.3.4. Magento 2 add Sort By Best Sellers Option on category products ...
Jafar Pinjar's user avatar
  • 1,929