PDA

View Full Version : Order properties by price and with photo first by default



Ivan Amador
June 30, 2015, 03:18 PM
Hello!

How can I order the properties by price and with photos first by default?

I'm using realty_flatty. v4.4

Thanks!!

Viktor
July 1, 2015, 05:39 AM
Hello Ivan,

You can do it through ftp only.

Open file: ftp://includes>>classes>>rlListings.class.php

find method: getListings at line ~ 834 find code:


$sql .= ", `Pay_date` DESC ";

and change 'Pay_date' to other field.

Ivan Amador
July 1, 2015, 06:26 AM
Hello Viktor,

I'm using this code:


$sql .= ", `Photos_count` DESC ";

But I'm getting the same results, not order by photos count.

Do I need to change something else?

THanks,

Viktor
July 1, 2015, 06:29 AM
Hello Ivan,

Would you please show me path where do you want to see other sorting.

Ivan Amador
July 1, 2015, 06:36 AM
Hi,

Basically, every search results by default.

ie:
domain.com/properties/sale-rent:1/
domain.com/properties/sale-rent:2/
domain.com/properties/advanced-search/search-results.html
domain.com/properties/search-results.html
domain.com/properties/apartaments/

I need to order by ref_number and by Photos_count.

I'm using the ref_number because I see it is a random number. If it is ordered by date, as it is now, people will try to manipulate the system. They will remove and add again their properties to have them in the first position every day. Trust me, they will!

Viktor
July 2, 2015, 03:24 AM
Hello Ivan,

You can try to change order field to Pay_date :) and users will not manipulate the system because for manipulations they should pay money.

Ivan Amador
July 2, 2015, 03:34 AM
Hi Viktor,

The situation is that I'm given a listing package to agents and they can add and remove all their listing every time they want as long as they do not pass the limit of their package.

They are doing it right now in another page I manage. :*)

Ivan Amador
July 13, 2015, 10:33 PM
Any thought about this Viktor?

Thanks,