siomosp Posted December 16, 2020 Share Posted December 16, 2020 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); Link to comment Share on other sites More sharing options...
Guest Posted December 17, 2020 Share Posted December 17, 2020 PrestaShop version ? Link to comment Share on other sites More sharing options...
siomosp Posted December 17, 2020 Author Share Posted December 17, 2020 Oops, forgot to mention it 1.7.5.2 Link to comment Share on other sites More sharing options...
Guest Posted December 17, 2020 Share Posted December 17, 2020 ./src/PrestaShopBundle/Controller/Admin/CommonController.php find: $limitChoices = $request->attributes->get('limit_choices', [10, 20, 50, 100]); Link to comment Share on other sites More sharing options...
siomosp Posted December 17, 2020 Author Share Posted December 17, 2020 Hello, I made the changes at CommonController.php, but it is not working. $limitChoices = $request->attributes->get('limit_choices', array(10, 20, 50, 100, 150, 200)); I still have at BO orders list, the same entries Link to comment Share on other sites More sharing options...
Guest Posted December 17, 2020 Share Posted December 17, 2020 Clear Cache and recompile template. Link to comment Share on other sites More sharing options...
siomosp Posted December 17, 2020 Author Share Posted December 17, 2020 I can clear cache but how I can recompile template? Link to comment Share on other sites More sharing options...
Guest Posted December 17, 2020 Share Posted December 17, 2020 Link to comment Share on other sites More sharing options...
siomosp Posted December 20, 2020 Author Share Posted December 20, 2020 Thank you, but nothing is changed... Link to comment Share on other sites More sharing options...
Guest Posted December 20, 2020 Share Posted December 20, 2020 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 Link to comment Share on other sites More sharing options...
jat Posted June 7, 2021 Share Posted June 7, 2021 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 Hi, And export the page you are currently on? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now