+ Reply to Thread
Results 1 to 10 of 10

Thread: sort dealers by alphabetical order

  1. #1

    sort dealers by alphabetical order

    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.

  2. #2
    Hello Peter,

    Go to ftp://includes>>classes>>rlAccount.class.php find method: searchDealers

    and code:

    PHP Code:
    Only registered members can view the code
    and replace to
    PHP Code:
    Only registered members can view the code
    save and check again.
    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.

  3. #3
    Tried it and it don't seem to work. Nothing is changing.

  4. #4
    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.

  5. #5
    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:

    Code:
    Only registered members can view the code.
    Can you help me out with this?

    Thanks!

  6. #6
    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.

  7. #7
    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.

  8. #8
    Hello Viktor,

    Do you know what should I edit to have the Dealers sorted by Listings_count by default?

    Thanks!

  9. #9
    Implement the same line to another method: getDealersByChar located in the same class.
    Viktor,
    Flynax technical department,
    Best wishes.

  10. #10
    Perfect!

    I replaced this code:

    Code:
    Only registered members can view the code.
    with this code:

    Code:
    Only registered members can view the code.
    Thanks!

+ Reply to Thread