cancel
Showing results for 
Search instead for 
Did you mean: 

Products list, show highest price instead of lowest

Products list, show highest price instead of lowest

So, as the tile suggests when a user goes on the products list i want magento to show the HIGHEST price and not the lowest for the products with more prices (ex. a 1liter liquor bottle costs more than a 0.5l bottle, i want to show the price of the former).

I've already found the template file that gets involved with it, which is
 

/vendor/magento/module-configurable-product/view/base/templates/product/price/amount/default.phtml

and there i can see the '$block->getDisplayValue()'  which i suppose is what returns me the price of the product, the problem i have is that i can't find where this getDisplayValue() is and then how to override it in my template so i can get it to return the highest price. 

Hope my explanation was clear, thank you for your help.