OS Property support center

[SOLVED!!!] sortby Bedroom instead of Feature

  • Ng Hong Tien
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 4 months ago - 11 years 4 months ago #44084 by Ng Hong Tien
[SOLVED!!!] sortby Bedroom instead of Feature was created by Ng Hong Tien
Hi

where to modify sortby Feature to Bedroom ?
Last edit: 11 years 4 months ago by Ng Hong Tien.

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

More
11 years 4 months ago #44087 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic sortby Bedroom instead of Feature
Hi Tien,
When you add new Joomla menu to layout: OS Property > Property listing layout. You are able to select the default sorting.
With advanced search, at the configuration page > Tab search. You will see the option to setup default sorting at the result page too.
Thanks
Dam

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

  • Ng Hong Tien
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 4 months ago #44090 by Ng Hong Tien
Replied by Ng Hong Tien on topic sortby Bedroom instead of Feature
Hi Dam
i do not want to select a default sorting
i do not want to show features on property detail page
therefore
would like to replace feature sorting with Bedroom sorting

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

More
11 years 4 months ago #44138 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic sortby Bedroom instead of Feature
Hi Tien,
I am not sure with your request, but you can hack into source code of OS Property to change the Featured sorting to Bedroom sorting.
With normal list of properties page, you can hack into function : listProperties
with Advanced search, you can hack into function: advSearch
Both 2 above functions are in file
components > com_osproperty > classes > listing.php
Good luck
Dam

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

  • Ng Hong Tien
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 4 months ago - 11 years 4 months ago #44145 by Ng Hong Tien
Replied by Ng Hong Tien on topic sortby Bedroom instead of Feature
Thanks Dam
Found
is at listing.php

//order by, order type
$sortBy[] = JHTML::_('select.option','a.pro_name',JText::_('OS_TITLE'));
$sortBy[] = JHTML::_('select.option','a.id',JText::_('OS_LIST_DATE'));
$sortBy[] = JHTML::_('select.option','a.price',JText::_('OS_PRICE'));
$sortBy[] = JHTML::_('select.option','a.bed_room',JText::_('OS_BEDROOMS'));
Last edit: 11 years 4 months ago by Ng Hong Tien.

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

Moderators: Dang Thuc DamNguyen Phu Quan