Change option, or price range slider
Posted:
11 Jun 2013, 08:21
by qaona
I want to change the price value that appears in the "slider" to the field "price" in the search form.
I want to put 50.000,00 (fifty thousand) minimum and 10.000.00,00 (ten million maximum)
Where could I set this up?
thank you
Re: Change option, or price range slider
Posted:
11 Jun 2013, 08:40
by Xpycm
protected/views/site/field-price-search.php file
instead of:
- Code: Select all
if(isFree()){
$priceMi = $priceAll['price_min'];
$priceMa = $priceAll['price_max'];
} else {
$priceMi = floor(Currency::convertFromDefault($priceAll['price_min']));
$priceMa = ceil(Currency::convertFromDefault($priceAll['price_max']));
}
write:
- Code: Select all
if(isFree()){
$priceMi = 50000;
$priceMa = 10000000;
} else {
$priceMi = floor(Currency::convertFromDefault($priceAll['price_min']));
$priceMa = ceil(Currency::convertFromDefault($priceAll['price_max']));
}