Frontend edit: add order by price

  • Josh
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
2 weeks 3 days ago - 2 weeks 3 days ago #124756 by Josh
Frontend edit: add order by price was created by Josh
Hi, I've noticed on the frontend property manager an "order by price" is missed, so I thought you could find it useful until the devs add it (and this is also a request for them):

Look for static function manageAllProperties($option) on /components/com_osproperty/classes/listing.php
Within it:
1) Look for
$query .= " OR a.ref like '%$keyword%'";
and add
$query .= " OR a.price like '%$keyword%'";
after that;

2) Again, look for
$query .= " OR a.ref like '%$keyword%'";
following the first one and add
$query .= " OR a.price like '%$keyword%'";
after that;

3) Then look for
$sortbyArr[] = JHTML::_('select.option','a.ref',JText::_('Ref #'));
and add
$sortbyArr[] = JHTML::_('select.option','a.price',JText::_('OS_PRICE'));

Best regards
Last edit: 2 weeks 3 days ago by Josh.

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

Moderators: Mr. Dam