Jump to content

BO - Add Order - show address


qqlaw

Recommended Posts

Hello,

 

When I am in backoffice and try to add an order, I would like to show the customer's address in the little box.

 

 

in /themes/default/template/controllers/orders/form.tpl:

      function searchCustomers()
        {
..........................
                                     html += '<div class="panel-heading">'+this.company+' '+this.firstname+' '+this.lastname;
                                     html += '<span class="pull-right">#'+this.id_customer+'</span></div>';
                                     html += '<span>'+this.email+'</span><br/>';
                                     html += '<span>'+this.addresses+'</span><br/>';
But that just shows as "undefined"
so i think i need to add something in the controllers/admin/AdminCustomersController.php (searchCustomers) but i am not sure.
 
Can somebody tell me what code am i missing? 
 
I am using Prestashop 1.6.1.7
 
 
Thank you.
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...