Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Default Sort In Orders View Rate Topic   - - - - -

 
  • odarg
  • Newbie
  • Trial users
  • Join Date: 05-May 18
  • 1 posts

Posted 05 May 2018 - 12:48 PM #1

Is it possible to, by default, sort orders by oldest first? Colleagues often forget to do this, it results in orders staying at the bottom of the queue as they're constantly processing newest first. If we could set a default sort per saved search that would be even better.



 
  • soft-solid
  • Junior Member
  • Members
  • Join Date: 19-Apr 10
  • 448 posts

Posted 11 May 2018 - 01:17 PM #2

Hello.

 

Maybe you would like to use our addon:

https://cs-cart.pl/m...en&currency=USD

 

Best regards

Robert.


Team of SoftSolid
cs-cart.pl

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 18173 posts

Posted 14 May 2018 - 06:24 AM #3

Is it possible to, by default, sort orders by oldest first? Colleagues often forget to do this, it results in orders staying at the bottom of the queue as they're constantly processing newest first. If we could set a default sort per saved search that would be even better.

 

app/functions/fn.cart.php

 

replace

$sorting = db_sort($params, $sortings, 'date', 'desc');

with

$sorting = db_sort($params, $sortings, 'date', 'asc');

If you are familiar with hooks, use My changes module and hooks in the fn_get_orders function


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.