Skip to main content
3 of 4
added 124 characters in body
Qaisar Satti
  • 32.5k
  • 18
  • 87
  • 137

you can get min and max price from any collection

For any collection.

$maxPrice = $porductCollection->getMaxPrice();
$minPrice = $porductCollection->getMinPrice();

Layer collection.Follow Magento\Catalog\Model\Layer\Filter\AbstractFilter.php

$this->getLayer()->getProductCollection()->getMaxPrice();
$this->getLayer()->getProductCollection()->getMinPrice();

Reference

Qaisar Satti
  • 32.5k
  • 18
  • 87
  • 137