Skip to main content
added 1 character in body
Source Link
Qaisar Satti
  • 32.5k
  • 18
  • 87
  • 137

you can get min and max price from any collection

For any collection.

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

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

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

Reference

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

you can get min and max price from any collection

For any collection.

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

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

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

Reference

added 124 characters in body
Source Link
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

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();

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

added 232 characters in body
Source Link
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();

you can get min and max price from any collection

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

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();
Source Link
Qaisar Satti
  • 32.5k
  • 18
  • 87
  • 137
Loading