How do i change so at the dealers page the dealers get sorted alphabetical as standard?
Right now it's sorted by date as default.
How do i change so at the dealers page the dealers get sorted alphabetical as standard?
Right now it's sorted by date as default.
Last edited by Peter Jonsson; January 6, 2014 at 01:05 PM.
Hello Peter,
Go to ftp://includes>>classes>>rlAccount.class.php find method: searchDealers
and code:
and replace toPHP Code:
Only registered members can view the code.
save and check again.PHP Code:
Only registered members can view the code.
WARNING: If you write incorrect field you will see mysql error on your site. That's why you should write correct field name from DB->fl_accounts table.
Viktor,
Flynax technical department,
Best wishes.
Tried it and it don't seem to work. Nothing is changing.
Hello Peter,
If you want I can check it on your site. Please send ftp access to my PM and I will change it on your site.
Viktor,
Flynax technical department,
Best wishes.
Hello Viktor,
I'm trying to sort dealers by "Listing_count" in Dealers page, but your suggested modification isn't working for me.
I used this code:
Can you help me out with this?Code:Only registered members can view the code.
Thanks!
Where did you implement it? would you please send me a file or part of the code. I think you did something wrong.
Viktor,
Flynax technical department,
Best wishes.
Hello Viktor,
I'm using this code in ftp://includes>>classes>>rlAccount.class.php:
Code:Only registered members can view the code.
Last edited by Ivan Amador; April 21, 2019 at 03:15 PM.
Hello Viktor,
Do you know what should I edit to have the Dealers sorted by Listings_count by default?
Thanks!
Implement the same line to another method: getDealersByChar located in the same class.
Viktor,
Flynax technical department,
Best wishes.
Perfect!
I replaced this code:
with this code:Code:Only registered members can view the code.
Thanks!Code:Only registered members can view the code.