Feature Requested: List Product Sort by Date Added

List Product Sort by Date Added

Hi, i would be really grateful if you can add sort by date added for Product List. It would make my life so much easier, everything neater and i am sure many customers would appreciate this.

R

Rain

Requested
Hi, i would be really grateful if you can add sort by date added for Product List. It would make my life so much easier, everything neater and i am sure many customers would appreciate this.

Thank you in advance.
  • MS

    Mian Saleem

    Answered
    Hello,

    I am sorry as there is no such option at this moment. You will need to modify the `aaSorting` property for datatables of `themes/default/admin/views/products/index.php` by changing it from

    ```
    "aaSorting": [[2, "asc"], [3, "asc"]],
    ```

    to
    ```
    "aaSorting": [[0, "desc"]],
    ```

    Thank you
  • R

    Rain

    Answered
    Thanks somewhat what i want but how do i make it from NEW > OLD. Its now OLD > NEW. Tried changing desc to asc but no changes.
  • MS

    Mian Saleem

    Answered
    Hello,

    You are sorting the products by id and `asc` & `desc` should work. If you frequently need to change, then you can add Id column to datatables. The documentation has general guide.

    > Please be informed that we don't offer support for modifications and modified versions. You are allowed to do it at your own risk as per license.

    Thank you
  • R

    Rain

    Answered
    No im not frequently changing just want the default sorting to show newest to oldest product when i click "List Product" tab. Changing to the code given "aaSorting": [[0, "desc"]], is showing oldest to newest product added.

    I tried changing desc to asc but still its listing oldest to newest product.
  • MS

    Mian Saleem

    Answered
    Not sure but guessing, it might be due to `bSortable` You can remove it from first object of `aoColumns` where `mRender` is `checkbox` in the same file.
  • R

    Rain

    Answered
    Nice! Exactly what i needed. You da man!
  • Login to Reply