OS Property support center

Quick Search module show "Call for price" property

  • Stefano
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 2 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
11 years 2 months ago #46761 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Quick Search module show "Call for price" property
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
11 years 2 months ago #46763 by Stefano
Right ;)

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

More
11 years 2 months ago #46768 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Quick Search module show "Call for price" property
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: Dang Thuc DamNguyen Phu Quan