Frontend edit: add order by price

  • Josh
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 10 months ago - 4 years 10 months 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
Code:
$query .= " OR a.ref like '%$keyword%'";
and add
Code:
$query .= " OR a.price like '%$keyword%'";
after that;

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

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

Best regards
Last edit: 4 years 10 months ago by Josh.

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

More
4 years 8 months 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