3
votes
Accepted
Grouped product (simple product sorting on price) Magento 2
Override public function getAssociatedProducts($product) of this file:
vendor/magento/module-grouped-product/Model/Product/Type/Grouped.php
in this function you have to remove setPositionOrder() ...
2
votes
Magento2 - catalog product listing collection sort by price with dynamic price calculation
I assume, In Category page you are trying to sort by the price and not getting the correct order while you want your prices to be displayed as well as used in sorting.
etc/frontend/di.xml
<?xml ...
1
vote
Accepted
Magento 2 Set Order not working
I found that in another(in afterSetCollection()) file following code was given
$collection->getSelect()->reset(\Zend_Db_Select::ORDER);
Due this it was not working.
Removing above line has ...
1
vote
How can I remove %26 and %3D from url?
change this echo __('price&product_list_dir=asc') to this echo 'price&product_list_dir=asc'
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
price-sorting × 11magento2 × 6
product-sorting × 4
product-collection × 3
custom-options × 2
magento-2.2.5 × 2
sorting × 2
product-listing × 2
magento-1.9 × 1
product × 1
category × 1
adminhtml × 1
price × 1
filter × 1
catalogsearch × 1
grouped-products × 1
magento-1.9.2.1 × 1
tiered-pricing × 1