Display minium / lowest product price from current category in magento. get min price from current product collection. Fine the below code to get min price value.
Display maximum / Highest product price from current category in magento. get max price from current product collection. Fine the below code to get max price value.
echo $minPrice=Mage::getSingleton('catalog/layer')
->setCurrentCategory(Mage::registry('current_category'))
->getProductCollection()
->getMinPrice();
Display maximum / Highest product price from current category in magento. get max price from current product collection. Fine the below code to get max price value.
echo $maxPrice=Mage::getSingleton('catalog/layer')
->setCurrentCategory(Mage::registry('current_category'))
->getProductCollection()
->getMaxPrice();
0 comments:
Post a Comment