Questions tagged [sortby]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
15 views

Custom Sort options for Catalog Dropdown

I created: di.xml on app/code/Filter/Sorting/etc <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
0
votes
1answer
16 views

Add custom sort by options for magento 2 catalog

In magento 1, for my catalog Product List, in Toolbar.php already i added sorting class and in my catalog page - there was an option to sort products about these attributes: <?php class ...
0
votes
1answer
23 views

magento 2 sort by discount calculation category page

if($currentOrder == "discount"){ $subject->getCollection()->order('((price_index.price - price_index.final_price) / price_index.price)', 'DESC'); } how i get the discounted ...