Skip to main content

Magento 2, get Min and Max price in Layered Navigation

I am trying to get Min & Max price in Layered Navigation and I am using a third party extension for layered navigation..

By using below script, I am trying to get Min & Max price for filter collection.

$priceArr = $filter->getResource()->loadPrices(10000000000);

But it says loadprice not a method. Can any please suggest to get Min & Max price

Ramesh
  • 986
  • 1
  • 14
  • 40