I am trying to get final price for price slider but it is showing me wrong price.
See below images, Price should be 4000/- for right slider but it is showing me 2000.
Any Help Appreciated.
Code Where I get Maximum Price-
public function getCurrMaxPrice(){
if($this->_currMaxPrice > 0)
{
$max = $this->_currMaxPrice;
} else
{
$max = $this->_maxPrice;
}
$max;
return $max;
}
Best Answer
simple add this function in your
price model
in your
price block
get them like that
this will give maximum and minimum price for recent collection
this is model core class
Mage/Catalog/Model/Layer/Filter/Price.php
core block price
Mage/Catalog/Block/Layer/Filter/Price.php
Don't change in core files if you want to change them copy in
app/code/local