Questions tagged [sort-by-options]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
22 views

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.
1
vote
1answer
12 views

Get “Sort by” method in catalog page

How can i get "Sort By" method in this page, $productListToolbar doesnt include sort by position method.
0
votes
0answers
22 views

Magento2:How to sort by Product Name A -Z in listing page?

I have used to Magneto2.3.1 and I have to create custom plugin for sort by option there Product Name A -Z not working on it getting error like below: 2 exception(s): Exception #0 (...
1
vote
1answer
361 views

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" : "...
0
votes
0answers
13 views

Magento 2: Category Pages custom sortby: getCollection()->order(…) not taking effect

So I have a bit of an issue. I am trying to create a custom sort order in the magneto 2 catalogue pages using a calculation between two price fields. I am currently editing Magento\Catalog\Block\...
0
votes
0answers
46 views

Magento 2 | getAttributesUsedForSortBy() doesn't return “Position”

I used this module from GIT to improve my "Sort By" dropdown (https://github.com/springimport/magento2-module-catalog-dropdown-sort), however, i have an issue. The "Position" attribute from the "...
0
votes
2answers
43 views

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"> <...
1
vote
1answer
250 views

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. https://devdocs.magento.com/swagger/ Any have idea how to get ...