Change option, or price range slider

Questions and answers about change of functions, design, hosting etc.

Moderators: Koduc, Xpycm

Forum rules
Pay attention! Forum is not a means for guaranteed support of clients and users. An answer as well as a quick answer is not supposed on the forum. We post messages as soon as possible.

The message limit on the forum is 3 messages per day.
If you want to say "thank you" then use the function "Give good reputation point", which is a green icon "plus" under the nickname of the person, who answered the message.

Change option, or price range slider

Postby qaona » 11 Jun 2013, 08:21

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
qaona
Stranger
 
Posts: 24
Joined: 06 Jun 2013, 05:10
Reputation point: 0

Re: Change option, or price range slider

Postby Xpycm » 11 Jun 2013, 08:40

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']));
Dropbox
Open Real Estate CMS: FAQ | FAQ 2 | FAQ 3
Image
Xpycm
Web Developer
Web Developer
 
Posts: 281
Joined: 30 Dec 2011, 11:06
Reputation point: 2


Return to Questions and help for changes

Who is online

Users browsing this forum: No registered users and 38 guests

cron