+ Reply to Thread
Results 1 to 6 of 6

Thread: Similar listings plugin

  1. #1
    Senior Member
    Join Date
    Nov 2016
    Location
    USA
    Posts
    110

    Exclamation Similar listings plugin

    how can i show similar listings newest first,
    right now by default it show oldest first.

  2. #2
    Senior Member
    Join Date
    Nov 2016
    Location
    USA
    Posts
    110
    anybody can help with this one ???

  3. #3
    Quote Originally Posted by Samir Fakirane View Post
    how can i show similar listings newest first,
    right now by default it show oldest first.
    Hello Samir,

    By default you can configure the ordering by category and relevance only via admin panel.

    Or you change it harcoded in file: \plugins\similarListings\rlSimilarListings.class.p hp
    1. open it in 183 row:

    2. and try change it to following:
    Attached Images Attached Images
    Thank you, Curtis.
    @Flynax Company

  4. #4
    Senior Member
    Join Date
    Nov 2016
    Location
    USA
    Posts
    110
    Thank you very much, this works perfect

  5. #5
    Hello, how to sale to sale, rent to rent related for this plugin?

    Best Regards,

  6. #6
    That's better

    $sql .= "GROUP BY `T1`.`ID` ";
    }

    if( $config['sl_relevance_mode'] && $relevance_built )
    {
    $sql .= "ORDER BY `relevance` DESC , `T1`.`Date` DESC ";
    }
    else
    {
    $sql .= "ORDER BY RAND() ";
    }

    if( $config['sl_listings_in_box'] )


    Screenshot 2024-02-24 184915.png

+ Reply to Thread