- Posts: 27
- Thank you received: 0
Show customer name in order overview
11 years 3 months ago #205513
by rouben618
Show customer name in order overview was created by rouben618
-- url of the page with the problem -- : nature2u.co.nz/
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.2.2
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : Mozilla/5.0
-- Error-message(debug-mod must be tuned on) -- : Not show name on order view
Hi,
Currently the order history only show the Serial number Order Number Date Order Status Total in the order overview.
I am wondering whether we can add the customer name to the order view, so the customers can tell the orders from the overview rather than click the order number to check the details. For example Show the shipping addressee.
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.2.2
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : Mozilla/5.0
-- Error-message(debug-mod must be tuned on) -- : Not show name on order view
Hi,
Currently the order history only show the Serial number Order Number Date Order Status Total in the order overview.
I am wondering whether we can add the customer name to the order view, so the customers can tell the orders from the overview rather than click the order number to check the details. For example Show the shipping addressee.
Please Log in or Create an account to join the conversation.
11 years 3 months ago #205516
by nicolas
Replied by nicolas on topic Show customer name in order overview
Hi,
There is no option for that.
You would have to edit the file "listing" of the view "order" via the menu Display>Views and add custom code to the view for that.
There is no option for that.
You would have to edit the file "listing" of the view "order" via the menu Display>Views and add custom code to the view for that.
Please Log in or Create an account to join the conversation.
11 years 3 months ago - 11 years 3 months ago #205660
by rouben618
Replied by rouben618 on topic Show customer name in order overview
Last edit: 11 years 3 months ago by rouben618.
Please Log in or Create an account to join the conversation.
11 years 3 months ago #205731
by Xavier
Replied by Xavier on topic Show customer name in order overview
Hi,
You can use that code in the foreach:
You can use that code in the foreach:
Code:
$addressClass = hikashop_get('class.address');
$address = $addressClass->get($row->order_shipping_address_id);
if(isset($address->address_lastname)){
echo $address->address_lastname." ".$address->address_firstname;
}
The following user(s) said Thank You: rouben618
Please Log in or Create an account to join the conversation.
11 years 3 months ago #205814
by rouben618
Replied by rouben618 on topic Show customer name in order overview
Thank you so much! All sorted! you are a star!!
Please Log in or Create an account to join the conversation.
Time to create page: 0.178 seconds