List Product Sort by Date Added

0

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.

Request Undecided For: Stock Manager Advance with Point of Sale Module 0 Votes 6 Replies 508 Views
Requested by Rain 3 years ago

0

Replied by Mian Saleem 3 years ago

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

0

Replied by Rain 3 years ago

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.

0

Replied by Mian Saleem 3 years ago

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

0

Replied by Rain 3 years ago

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.

0

Replied by Mian Saleem 3 years ago

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.

0

Replied by Rain 3 years ago

Nice! Exactly what i needed. You da man!

We use Cookies

We use cookies to ensure that we give you the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies.