EdEichman Posted November 13, 2015 Share Posted November 13, 2015 (edited) We've moved from a highly customized ecommerce platform to PrestaShop. One of the features that greatly helped our support was the ability to search for orders by a number of different criteria... orderID, shipmentID, tracking number, invoice number, email, phone number, etc. When someone called about an order, you could go to the order area, and search on any combination of the above listed parts. This was needed since users were frequently totally unprepared before calling. They might not have their invoice, or they may have it but can only find e.g. the invoice number, etc. Those of you who have done customer support know the types of problems I'm talking about ;-> Is there any simple way to do this in PresaShop without overriding? Thanks, Ed Edited November 13, 2015 by EdEichman (see edit history) Link to comment Share on other sites More sharing options...
kNife77 Posted February 2, 2016 Share Posted February 2, 2016 Hi, Had the same problem, didn't found an answer on the net and I modified the core. So go to the controllers/admin/AdminOrdersController.php and around line 109 you should find and just add this line (note, replace 'phone_mobile' with 'phone' if needed) And here is the result Now the Orders are searchable by phone number. Hope it helps 1 Link to comment Share on other sites More sharing options...
b.tsvetkov Posted June 10, 2016 Share Posted June 10, 2016 (edited) I tryed this but it doesn't work. Error - Your website is currently unable to process this query. I am using PrestaShop 1.6.1.5 Edited June 10, 2016 by b.tsvetkov (see edit history) Link to comment Share on other sites More sharing options...
EdEichman Posted October 5, 2016 Author Share Posted October 5, 2016 (edited) Hi, Had the same problem, didn't found an answer on the net and I modified the core. So go to the controllers/admin/AdminOrdersController.php and around line 109 you should find Thanks kNife77, that did work, but it changed the core code, which I hate to do (it makes upgrading to new versions a pain in the butt). However, it can be easily done doing an override... just calling the base class constructor, and adding your own fields afterwards. Works great, and is outline in detail in an article I wrote on the subject. Thanks! Ed Edited October 5, 2016 by EdEichman (see edit history) 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