[Skip to main content](#vessel-content)

#   Show Joomla Username and ID on customer details

##

- **[KarenJohnson](/forum/user/42347-karenjohnson "View KarenJohnson's Profile")**
- [![KarenJohnson's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/42347-karenjohnson "View KarenJohnson's Profile") Topic Author
- [ Offline](/forum/user/42347-karenjohnson)

Less More

- Posts: 4
- Thank you received: 0
-
-

10 years 7 months ago [\#235679](#235679) by [KarenJohnson](/forum/user/42347-karenjohnson "View KarenJohnson's Profile")  *[Show Joomla Username and ID on customer details](/forum/35-orders-management/883666-show-joomla-username-and-id-on-customer-details#235679 "On the Order details page of the backend of HikaShop, it has the boxes Main Information, Additional Information, Customer, Billing address, shipping address. In the customer box it shows name, email...")* was created by *[KarenJohnson](/forum/user/42347-karenjohnson "View KarenJohnson's Profile")*

On the Order details page of the backend of HikaShop, it has the boxes Main Information, Additional Information, Customer, Billing address, shipping address. In the customer box it shows name, email and Id (this is the customerID in Hikashop).

I want to also see the Joomla username and Joomla ID. Is this possible? If so how? I can't work out which file in Display&gt;View relates to that customer display box.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MzY2Ni1zaG93LWpvb21sYS11c2VybmFtZS1hbmQtaWQtb24tY3VzdG9tZXItZGV0YWlscz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

10 years 7 months ago [\#235691](#235691) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Show Joomla Username and ID on customer details](/forum/35-orders-management/883666-show-joomla-username-and-id-on-customer-details#235691 "On the Order details page of the backend of HikaShop, it has the boxes Main Information, Additional Information, Customer, Billing address, shipping address. In the customer box it shows name, email...")*

Hi,

It's the file "show" of the view "order" that you can edit for your backend template via the menu Display&gt;views.
It's that code you're looking for in there:
[ take.ms/T8OU9](http://take.ms/T8OU9)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MzY2Ni1zaG93LWpvb21sYS11c2VybmFtZS1hbmQtaWQtb24tY3VzdG9tZXItZGV0YWlscz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[KarenJohnson](/forum/user/42347-karenjohnson "View KarenJohnson's Profile")**
- [![KarenJohnson's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/42347-karenjohnson "View KarenJohnson's Profile") Topic Author
- [ Offline](/forum/user/42347-karenjohnson)

Less More

- Posts: 4
- Thank you received: 0
-
-

10 years 7 months ago [\#235803](#235803) by [KarenJohnson](/forum/user/42347-karenjohnson "View KarenJohnson's Profile")  Replied by *[KarenJohnson](/forum/user/42347-karenjohnson "View KarenJohnson's Profile")* on topic *[Show Joomla Username and ID on customer details](/forum/35-orders-management/883666-show-joomla-username-and-id-on-customer-details#235803 "On the Order details page of the backend of HikaShop, it has the boxes Main Information, Additional Information, Customer, Billing address, shipping address. In the customer box it shows name, email...")*

That's great thank Nicholas.... but what code do I need to add? to show Joomla username and Joomla ID

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MzY2Ni1zaG93LWpvb21sYS11c2VybmFtZS1hbmQtaWQtb24tY3VzdG9tZXItZGV0YWlscz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[KarenJohnson](/forum/user/42347-karenjohnson "View KarenJohnson's Profile")**
- [![KarenJohnson's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/42347-karenjohnson "View KarenJohnson's Profile") Topic Author
- [ Offline](/forum/user/42347-karenjohnson)

Less More

- Posts: 4
- Thank you received: 0
-
-

10 years 7 months ago -  10 years 7 months ago [\#235829](#235829) by [KarenJohnson](/forum/user/42347-karenjohnson "View KarenJohnson's Profile")  Replied by *[KarenJohnson](/forum/user/42347-karenjohnson "View KarenJohnson's Profile")* on topic *[Show Joomla Username and ID on customer details](/forum/35-orders-management/883666-show-joomla-username-and-id-on-customer-details#235829 "On the Order details page of the backend of HikaShop, it has the boxes Main Information, Additional Information, Customer, Billing address, shipping address. In the customer box it shows name, email...")*

x

Last edit: 10 years 7 months ago by [KarenJohnson](/forum/user/42347-karenjohnson "View KarenJohnson's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MzY2Ni1zaG93LWpvb21sYS11c2VybmFtZS1hbmQtaWQtb24tY3VzdG9tZXItZGV0YWlscz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[korzo](/forum/user/34428-korzo "View korzo's Profile")**
- [![korzo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34428.png)](/forum/user/34428-korzo "View korzo's Profile")
- [ Offline](/forum/user/34428-korzo)

Less More

- Posts: 193
- Thank you received: 76
-
-

10 years 7 months ago [\#235893](#235893) by [korzo](/forum/user/34428-korzo "View korzo's Profile")  Replied by *[korzo](/forum/user/34428-korzo "View korzo's Profile")* on topic *[Show Joomla Username and ID on customer details](/forum/35-orders-management/883666-show-joomla-username-and-id-on-customer-details#235893 "On the Order details page of the backend of HikaShop, it has the boxes Main Information, Additional Information, Customer, Billing address, shipping address. In the customer box it shows name, email...")*

Here is code from my modification. It was done for Hikashop 2.6.1 but I think it should work also in Hikashop 2.6.2.
Add it at the very top of the file, right after defined('_JEXEC') or die('Restricted access');
Code:

if (!empty($this-&gt;order-&gt;customer-&gt;user_cms_id)) { $u = new JUser((int)$this-&gt;order-&gt;customer-&gt;user_cms_id); $this-&gt;extra_data['user'][] = array( 'title' =&gt; 'Username', 'data' =&gt; $u-&gt;username ); $this-&gt;extra_data['user'][] = array( 'title' =&gt; 'Joomla user ID', 'data' =&gt; '&lt;a href="index.php?option=com_users&amp;view=user&amp;layout=edit&amp;id='.$u-&gt;id.'"&gt;'.$u-&gt;id.'&lt;/a&gt;' ); }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MzY2Ni1zaG93LWpvb21sYS11c2VybmFtZS1hbmQtaWQtb24tY3VzdG9tZXItZGV0YWlscz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

10 years 7 months ago [\#235804](#235804) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Show Joomla Username and ID on customer details](/forum/35-orders-management/883666-show-joomla-username-and-id-on-customer-details#235804 "On the Order details page of the backend of HikaShop, it has the boxes Main Information, Additional Information, Customer, Billing address, shipping address. In the customer box it shows name, email...")*

Hi,

Well, it's quite simple.
As you can see there, this displays the name of the user: Code:

&lt;?php echo @$this-&gt;order-&gt;customer-&gt;name; ?&gt;

So to display the username it's: Code:

&lt;?php echo @$this-&gt;order-&gt;customer-&gt;username; ?&gt;

And for the id: Code:

&lt;?php echo @$this-&gt;order-&gt;customer-&gt;id; ?&gt;

The following user(s) said Thank You: [KarenJohnson](/forum/user/42347-karenjohnson "View KarenJohnson's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MzY2Ni1zaG93LWpvb21sYS11c2VybmFtZS1hbmQtaWQtb24tY3VzdG9tZXItZGV0YWlscz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[KarenJohnson](/forum/user/42347-karenjohnson "View KarenJohnson's Profile")**
- [![KarenJohnson's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/42347-karenjohnson "View KarenJohnson's Profile") Topic Author
- [ Offline](/forum/user/42347-karenjohnson)

Less More

- Posts: 4
- Thank you received: 0
-
-

10 years 7 months ago [\#237692](#237692) by [KarenJohnson](/forum/user/42347-karenjohnson "View KarenJohnson's Profile")  Replied by *[KarenJohnson](/forum/user/42347-karenjohnson "View KarenJohnson's Profile")* on topic *[Show Joomla Username and ID on customer details](/forum/35-orders-management/883666-show-joomla-username-and-id-on-customer-details#237692 "On the Order details page of the backend of HikaShop, it has the boxes Main Information, Additional Information, Customer, Billing address, shipping address. In the customer box it shows name, email...")*

It worked! Thanks so much

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MzY2Ni1zaG93LWpvb21sYS11c2VybmFtZS1hbmQtaWQtb24tY3VzdG9tZXItZGV0YWlscz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.063 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
