Jump to content

Question - How to add first line of address when adding new order (admin page)


Recommended Posts

Hi,

quick question (i hope i got the right forum)

How do I add it so that the first line of customers address appears when you search for a customer on the add new order page?

 

Currently it only shows email address and customer number. If it had the first line of the address, it would help with our telephone orders.

 

I've attached a screenshot of what i'm on about.

Many thanks for your time.

 

post-1185293-0-51076900-1485943980_thumb.jpg

Edited by jon19797 (see edit history)
Link to comment
Share on other sites

There are two main things you'll need to do:

 

  1. Override the ajaxProcessSearchCustomers function in controllers/admin/AdminCustomersController.php so that it includes the first line of the customer's address in its return value.
     
  2. Override themes/default/template/controllers/orders/form.tpl so that you can modify the searchCustomers function to make it display the first line of the address.

 

Using overrides means you can update Prestashop without losing your modifications.

Link to comment
Share on other sites

Hi, thanks for your reply. I've taken a look at the files to modify, but hate to say it, I'm not sure what code to add. (still learning the ropes!)

Could you point me in the right direction of the correct code to put in?

Sorry to be a pain!

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