Jump to content

Search orders by invoice, shipment, zip code or phone number


EdEichman

Recommended Posts

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 by EdEichman (see edit history)
Link to comment
Share on other sites

  • 2 months later...

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 

 

ObEand0.jpg
 
and just add this line (note, replace 'phone_mobile' with 'phone' if needed)
 
LcBF6bx.jpg
 
And here is the result 
 
MhqJs1F.jpg
 
Now the Orders are searchable by phone number.
 
Hope it helps ;)
  • Like 1
Link to comment
Share on other sites

  • 4 months later...
  • 3 months later...

 

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 by EdEichman (see edit history)
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...