hellykun Posted November 2, 2016 Share Posted November 2, 2016 Hello, I would like to limit the resources needed for the Orders list. I have knowledge for the AdminOrder Controller, I would like to only show orders from a specific date before until today. Any help/hint on this? Thanks a lot in advance. Link to comment Share on other sites More sharing options...
Knowband Plugins Posted November 2, 2016 Share Posted November 2, 2016 In /controllers/admin/AdminOrdersController.php file you will see the query to fetch orders in __construct() function. Try adding the following line of code: $this->_where = 'AND a.date_add > "2016-09-16"'; // You can replace the date to any desired date After $this->_use_found_rows = true; Link to comment Share on other sites More sharing options...
hellykun Posted November 3, 2016 Author Share Posted November 3, 2016 Dear Knowbad, thank you very much for your reply. It works with no problems but I need it to be effective only if the user has not given any queries (such as order id, or dates). Any hints? 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