OS Property support center

Price Filtering

  • Gerry Na
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
2 days 13 hours ago #177100 by Gerry Na
Price Filtering was created by Gerry Na
In previous versions of OS Property, if I left the Min Price on Slider and Max Price on Slider fields blank in the "Price range" slider, the minimum and maximum values ​​of the properties on the site would be displayed.

In this latest version, however, the slider doesn't work.

I believe this simple change in classes/listing.php should be included in the next version.

if($min_price == 0)
{
  $db->setQuery("Select price from #__osrs_properties order by price asc limit 1");
  $min_price = $db->loadResult()
}
if($max_price == 0)
{
  $db->setQuery("Select price from #__osrs_properties order by price desc limit 1");
  $max_price = $db->loadResult()
}

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

More
1 day 10 hours ago #177116 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Price Filtering
Hi Gerry,
Thank you for your suggestion
Dam

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

Moderators: Dang Thuc DamNguyen Phu Quan