R
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.
Thank you in advance.
- MSAnsweredHello,
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 - RAnsweredThanks 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.
- MSAnsweredHello,
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 - RAnsweredNo 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. - MSAnsweredNot 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.
- RAnsweredNice! Exactly what i needed. You da man!
- Login to Reply