OS Property support center

Quick Search module show "Call for price" property

  • Stefano
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 10 months ago #46756 by Stefano
Hello!

I've set some price filters in OS Property Quick Search module.

Anyway, if I search by lower price, in search results I can see also the "Call for price" properties but I don't want that they're displayed.

What can I do for hiding these properties from Quick Search module research?
Is it possible to create a "Price range" filter that can select only "Call for price" properties?

Thanks

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #46761 by Mr. Dam
Hi Stefano,
You mean you only want to search properties that have price > 0. And the search function won't return the properties that have "Call for price" option, right?
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • Stefano
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 10 months ago #46763 by Stefano
Right ;)

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #46768 by Mr. Dam
OK, please follow this step
open file: components > com_osproperty > classes > listing.php
find
if($min_price > 0){
$where .= " AND a.price >= '$min_price'";
}
and change to

$where .= " AND a.price_call = '0'";
if($min_price > 0){
$where .= " AND a.price >= '$min_price'";
}

Good luck
Dam

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan