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.
- MSAnswered
Hello,
I am sorry as there is no such option at this moment. You will need to modify the
aaSorting
property for datatables ofthemes/default/admin/views/products/index.php
by changing it from"aaSorting": [[2, "asc"], [3, "asc"]],
to
"aaSorting": [[0, "desc"]],
Thank you
- RAnswered
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.
- MSAnswered
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
- RAnswered
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.
- MSAnswered
Not sure but guessing, it might be due to
bSortable
You can remove it from first object ofaoColumns
wheremRender
ischeckbox
in the same file. - RAnswered
Nice! Exactly what i needed. You da man!
- Login to Reply