jon19797 Posted February 1, 2017 Share Posted February 1, 2017 (edited) 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. Edited February 1, 2017 by jon19797 (see edit history) Link to comment Share on other sites More sharing options...
JeredBolton Posted February 1, 2017 Share Posted February 1, 2017 There are two main things you'll need to do: 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. 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 More sharing options...
jon19797 Posted February 2, 2017 Author Share Posted February 2, 2017 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 More sharing options...
JeredBolton Posted February 2, 2017 Share Posted February 2, 2017 What version of Prestashop are you using? Link to comment Share on other sites More sharing options...
jon19797 Posted February 2, 2017 Author Share Posted February 2, 2017 Hi, its 1.6.1.4 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