Jump to content

BO Order list pagination


siomosp

Recommended Posts

Hello,

I want at BO, orders list, to add at the number of displayed orders' dropdown, some more numbers (150, 200 )

Where I have to add the numbers?

Adding them at classes\controller\AdminController.php and at classes\helper\HelperList.php have no effect

 /** @var array Number of results in list per page (used in select field) */
    protected $_pagination = array(20, 50, 100, 150, 200, 300, 1000);

pagination.jpg

Link to comment
Share on other sites

./src/PrestaShopBundle/Controller/Admin/CommonController.php

find:

$limitChoices = $request->attributes->get('limit_choices', [10, 20, 50, 100]);

 

Link to comment
Share on other sites

You only need to edit this one file.
If you have made other adjustments, eg in OrdersController, etc., you must undo the changes.
Now I have only modified one file and everything works properly.

./src/PrestaShopBundle/Controller/Admin/CommonController.php

obrazek.png.9ad6ef3661eed5f37dd617ac4a429c71.png

obrazek.thumb.png.1164ceebe7d0a765a8cdc34a9d3547aa.png

Link to comment
Share on other sites

  • 5 months later...
Le 20/12/2020 à 11:37 AM, Guest a dit :

You only need to edit this one file.
If you have made other adjustments, eg in OrdersController, etc., you must undo the changes.
Now I have only modified one file and everything works properly.

./src/PrestaShopBundle/Controller/Admin/CommonController.php

obrazek.png.9ad6ef3661eed5f37dd617ac4a429c71.png

obrazek.thumb.png.1164ceebe7d0a765a8cdc34a9d3547aa.png

Hi,
And export the page you are currently on?

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...