Frontend edit: add order by price

  • Josh
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
3 months 2 weeks ago - 3 months 2 weeks 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: 3 months 2 weeks ago by Josh.

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

More
1 month 2 days ago #126813 by Mr. Dam
Replied by Mr. Dam on topic Frontend edit: add order by price
Hi,
I will add this change in next OS Property version.
Thanks
Dam

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

Moderators: Mr. Dam