Jump to content

[SOLVED] Add Delivery Address and Delivery Receiver Name to Admin Order List


Jagotic

Recommended Posts

Try to add this to the column named 'cname" (that is the country name) in AdminOrdersController.php
'callback'    => 'getDeliveryAddress',

Then create a function like this

 

public function getDeliveryAddress($a, $order)
    {
        $address = new Address($order['id_address_delivery']);
        return AddressFormat::generateAddress($address, [], '<br />', ' ');

    }

You also need to get that id_address_delivery from the main query, same file.

I will make a video tutorial for it next week.

  • Thanks 1
Link to comment
Share on other sites

  • 2 weeks later...

I have solved this with added following codes in AdminOrdersController.php

Added 

CONCAT(ad.`firstname`, \' \', ad.`lastname`) AS `shipping_customer_full_name`,
ad.phone_mobile as shipping_phone_mobile,

this 2 line after line 65

And added

LEFT JOIN `'._DB_PREFIX_.'address` as ad ON id_address_delivery= ad.id_address

after line 76

 

NOW i can see Delivery person name & phone number on order list

SOLVED!

Link to comment
Share on other sites

  • 1 year later...
On 2/20/2019 at 2:44 PM, NemoPS said:

Try to add this to the column named 'cname" (that is the country name) in AdminOrdersController.php
'callback'    => 'getDeliveryAddress',

Then create a function like this

 

public function getDeliveryAddress($a, $order)
    {
        $address = new Address($order['id_address_delivery']);
        return AddressFormat::generateAddress($address, [], '<br />', ' ');

    }

You also need to get that id_address_delivery from the main query, same file.

I will make a video tutorial for it next week.

Hi NemoPS!

Did you made the video tutorial? I need to see delivery address in Order´s list (address, zip code, city and contact phone) but I don´t know how to user your code in AdminOrdersController.php

It would be great if you can detail how to insert your code or the tutorial 😃

Thank you for your help!

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