Jump to content

Limit number of orders in BO Orders Tab


LukaM

Recommended Posts

Hi, is there possible to force BO orders tab to show only orders (for example) from last 30 days? With more than 600k orders waiting for list take like forever. Using date limit is helpful of course, and we are working only at limited number of orders at time, but waiting for this first list (without time limit as it is by default) is really annoying.

Edited by LukaM (see edit history)
Link to comment
Share on other sites

  • LukaM changed the title to Datepicker default value
  • LukaM changed the title to Limit number of orders in BO Orders Tab

Maybe not perfect solution but works for me fine, and maybe someone will need it in future:

 

In AdminOrdersControler.php

After:

IF(a.valid, 1, 0) badge_success';

Add:

if ($this->context->employee->id_profile == X)
{
$this->_where .= ' AND a.id_order > Y';
}

Where:
X - Id of Employee Profile
Y - Id (-1) of order where we want to setup a limit.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...