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

#   How to get user name/id in order history

##

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

Less More

- Posts: 126
- Thank you received: 2
-
-

15 years 7 months ago -  15 years 7 months ago [\#9708](#9708) by [mett](/forum/user/1080-mett "View mett's Profile")  *[How to get user name/id in order history](/forum/4-how-to/9708-how-to-get-user-name-id-in-order-history#9708 "Hello,  I just bought business version and found a lot of interesting features in this version. What i can't find is how and where to get the user id or name of user who modified the status of an order. In my case, i'm just the administrator of website but orders are processed by other peoples (editors). Would be great to see this info (editors names) in orders history area instead of (or near) IP column for example.  Here is what i tried so far: in administrator/com&#95;hikashop/plg&#95;hikashop&#95;history/history.php i added in  function onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email){  $user =&amp; JFactory::getUser(); if ($user-&gt;get('id') &gt; 0) { $utilizator = $user-&gt;get('id'); } $history-&gt;history&#95;user = $utilizator;  i created a field history&#95;user in table but i dont' get the value in..  Thank you")* was created by *[mett](/forum/user/1080-mett "View mett's Profile")*

Hello,

I just bought business version and found a lot of interesting features in this version. What i can't find is how and where to get the user id or name of user who modified the status of an order. In my case, i'm just the administrator of website but orders are processed by other peoples (editors). Would be great to see this info (editors names) in orders history area instead of (or near) IP column for example.

Here is what i tried so far: in administrator/com_hikashop/plg_hikashop_history/history.php i added in

function onAfterOrderUpdate(&amp;$order,&amp;$send_email){

$user =&amp; JFactory::getUser();
if ($user-&gt;get('id') &gt; 0) {
$utilizator = $user-&gt;get('id');
}
$history-&gt;history_user = $utilizator;

i created a field history_user in table but i dont' get the value in..

Thank you

Last edit: 15 years 7 months ago by [mett](/forum/user/1080-mett "View mett's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzk3MDgtaG93LXRvLWdldC11c2VyLW5hbWUtaWQtaW4tb3JkZXItaGlzdG9yeT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

15 years 7 months ago [\#9719](#9719) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to get user name/id in order history](/forum/4-how-to/9708-how-to-get-user-name-id-in-order-history#9719 "Hello,  I just bought business version and found a lot of interesting features in this version. What i can't find is how and where to get the user id or name of user who modified the status of an order. In my case, i'm just the administrator of website but orders are processed by other peoples (editors). Would be great to see this info (editors names) in orders history area instead of (or near) IP column for example.  Here is what i tried so far: in administrator/com&#95;hikashop/plg&#95;hikashop&#95;history/history.php i added in  function onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email){  $user =&amp; JFactory::getUser(); if ($user-&gt;get('id') &gt; 0) { $utilizator = $user-&gt;get('id'); } $history-&gt;history&#95;user = $utilizator;  i created a field history&#95;user in table but i dont' get the value in..  Thank you")*

There is no $history variable. It should be:
$order-&gt;history-&gt;history_user = $utilizator;

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

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

Less More

- Posts: 126
- Thank you received: 2
-
-

15 years 7 months ago [\#9721](#9721) by [mett](/forum/user/1080-mett "View mett's Profile")  Replied by *[mett](/forum/user/1080-mett "View mett's Profile")* on topic *[Re: How to get user name/id in order history](/forum/4-how-to/9708-how-to-get-user-name-id-in-order-history#9721 "Hello,  I just bought business version and found a lot of interesting features in this version. What i can't find is how and where to get the user id or name of user who modified the status of an order. In my case, i'm just the administrator of website but orders are processed by other peoples (editors). Would be great to see this info (editors names) in orders history area instead of (or near) IP column for example.  Here is what i tried so far: in administrator/com&#95;hikashop/plg&#95;hikashop&#95;history/history.php i added in  function onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email){  $user =&amp; JFactory::getUser(); if ($user-&gt;get('id') &gt; 0) { $utilizator = $user-&gt;get('id'); } $history-&gt;history&#95;user = $utilizator;  i created a field history&#95;user in table but i dont' get the value in..  Thank you")*

i don't know what i'm doing wrong:

function onAfterOrderUpdate(&amp;$order,&amp;$send_email){
$user =&amp; JFactory::getUser();
if ($user-&gt;get('id') &gt; 0) {
$utilizator = $user-&gt;get('id');
}
$order-&gt;history-&gt;history_user = $utilizator;
if(!empty($order-&gt;order_id)){
....

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzk3MDgtaG93LXRvLWdldC11c2VyLW5hbWUtaWQtaW4tb3JkZXItaGlzdG9yeT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

15 years 7 months ago [\#9722](#9722) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to get user name/id in order history](/forum/4-how-to/9708-how-to-get-user-name-id-in-order-history#9722 "Hello,  I just bought business version and found a lot of interesting features in this version. What i can't find is how and where to get the user id or name of user who modified the status of an order. In my case, i'm just the administrator of website but orders are processed by other peoples (editors). Would be great to see this info (editors names) in orders history area instead of (or near) IP column for example.  Here is what i tried so far: in administrator/com&#95;hikashop/plg&#95;hikashop&#95;history/history.php i added in  function onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email){  $user =&amp; JFactory::getUser(); if ($user-&gt;get('id') &gt; 0) { $utilizator = $user-&gt;get('id'); } $history-&gt;history&#95;user = $utilizator;  i created a field history&#95;user in table but i dont' get the value in..  Thank you")*

You need to implement the function onBeforeOrderUpdate and not onAfterOrderUpdate so that the information is saved along the order. Also, you should have the history plugin published with an ordering greater than your plugin so that the information is already there when the history plugin saves the information.

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

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

Less More

- Posts: 126
- Thank you received: 2
-
-

15 years 7 months ago -  15 years 7 months ago [\#9728](#9728) by [mett](/forum/user/1080-mett "View mett's Profile")  Replied by *[mett](/forum/user/1080-mett "View mett's Profile")* on topic *[Re: How to get user name/id in order history](/forum/4-how-to/9708-how-to-get-user-name-id-in-order-history#9728 "Hello,  I just bought business version and found a lot of interesting features in this version. What i can't find is how and where to get the user id or name of user who modified the status of an order. In my case, i'm just the administrator of website but orders are processed by other peoples (editors). Would be great to see this info (editors names) in orders history area instead of (or near) IP column for example.  Here is what i tried so far: in administrator/com&#95;hikashop/plg&#95;hikashop&#95;history/history.php i added in  function onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email){  $user =&amp; JFactory::getUser(); if ($user-&gt;get('id') &gt; 0) { $utilizator = $user-&gt;get('id'); } $history-&gt;history&#95;user = $utilizator;  i created a field history&#95;user in table but i dont' get the value in..  Thank you")*

Nicolas, can you please take a look at attached plugin? It's my first plugin, so please be gentle ![:D](/bigsmile.gif ":D")

####  *This attachment is hidden for guests.
Please log in or register to see it.*

Last edit: 15 years 7 months ago by [mett](/forum/user/1080-mett "View mett's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzk3MDgtaG93LXRvLWdldC11c2VyLW5hbWUtaWQtaW4tb3JkZXItaGlzdG9yeT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

15 years 7 months ago [\#9732](#9732) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to get user name/id in order history](/forum/4-how-to/9708-how-to-get-user-name-id-in-order-history#9732 "Hello,  I just bought business version and found a lot of interesting features in this version. What i can't find is how and where to get the user id or name of user who modified the status of an order. In my case, i'm just the administrator of website but orders are processed by other peoples (editors). Would be great to see this info (editors names) in orders history area instead of (or near) IP column for example.  Here is what i tried so far: in administrator/com&#95;hikashop/plg&#95;hikashop&#95;history/history.php i added in  function onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email){  $user =&amp; JFactory::getUser(); if ($user-&gt;get('id') &gt; 0) { $utilizator = $user-&gt;get('id'); } $history-&gt;history&#95;user = $utilizator;  i created a field history&#95;user in table but i dont' get the value in..  Thank you")*

You will need to modify the history plugin and change the code:

$history-&gt;history_reason = @$order-&gt;history-&gt;history_reason;
$history-&gt;history_notified = @$order-&gt;history-&gt;history_notified;
$history-&gt;history_amount = @$order-&gt;history-&gt;history_amount;
$history-&gt;history_package_id = @$order-&gt;history-&gt;history_package_id;
$history-&gt;history_payment_id = @$order-&gt;history-&gt;history_payment_id;
$history-&gt;history_payment_method = @$order-&gt;history-&gt;history_payment_method;
$history-&gt;history_data = @$order-&gt;history-&gt;history_data;
$history-&gt;history_type = @$order-&gt;history-&gt;history_type;

to:

foreach(get_object_vars($order-&gt;history) as $k =&gt; $v){
$history-&gt;$k = $v;
}

so that the new columns are taken into account by the history plugin. We'll do the modification on our end too so that you won't have problems next time you update.

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

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

Less More

- Posts: 126
- Thank you received: 2
-
-

15 years 7 months ago -  15 years 7 months ago [\#9735](#9735) by [mett](/forum/user/1080-mett "View mett's Profile")  Replied by *[mett](/forum/user/1080-mett "View mett's Profile")* on topic *[Re: How to get user name/id in order history](/forum/4-how-to/9708-how-to-get-user-name-id-in-order-history#9735 "Hello,  I just bought business version and found a lot of interesting features in this version. What i can't find is how and where to get the user id or name of user who modified the status of an order. In my case, i'm just the administrator of website but orders are processed by other peoples (editors). Would be great to see this info (editors names) in orders history area instead of (or near) IP column for example.  Here is what i tried so far: in administrator/com&#95;hikashop/plg&#95;hikashop&#95;history/history.php i added in  function onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email){  $user =&amp; JFactory::getUser(); if ($user-&gt;get('id') &gt; 0) { $utilizator = $user-&gt;get('id'); } $history-&gt;history&#95;user = $utilizator;  i created a field history&#95;user in table but i dont' get the value in..  Thank you")*

I will wait for next update because i can't make it work, i modified the original history plugin but still don't get any value in history_user column. Please note that i created this column using phpmyadmin, not using custom fields option.

Last edit: 15 years 7 months ago by [mett](/forum/user/1080-mett "View mett's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzk3MDgtaG93LXRvLWdldC11c2VyLW5hbWUtaWQtaW4tb3JkZXItaGlzdG9yeT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

15 years 7 months ago [\#9736](#9736) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to get user name/id in order history](/forum/4-how-to/9708-how-to-get-user-name-id-in-order-history#9736 "Hello,  I just bought business version and found a lot of interesting features in this version. What i can't find is how and where to get the user id or name of user who modified the status of an order. In my case, i'm just the administrator of website but orders are processed by other peoples (editors). Would be great to see this info (editors names) in orders history area instead of (or near) IP column for example.  Here is what i tried so far: in administrator/com&#95;hikashop/plg&#95;hikashop&#95;history/history.php i added in  function onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email){  $user =&amp; JFactory::getUser(); if ($user-&gt;get('id') &gt; 0) { $utilizator = $user-&gt;get('id'); } $history-&gt;history&#95;user = $utilizator;  i created a field history&#95;user in table but i dont' get the value in..  Thank you")*

It will be faster for us to directly integrate that function without any plugin. It will be in next version.

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

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

Less More

- Posts: 126
- Thank you received: 2
-
-

15 years 7 months ago [\#9792](#9792) by [mett](/forum/user/1080-mett "View mett's Profile")  Replied by *[mett](/forum/user/1080-mett "View mett's Profile")* on topic *[Re: How to get user name/id in order history](/forum/4-how-to/9708-how-to-get-user-name-id-in-order-history#9792 "Hello,  I just bought business version and found a lot of interesting features in this version. What i can't find is how and where to get the user id or name of user who modified the status of an order. In my case, i'm just the administrator of website but orders are processed by other peoples (editors). Would be great to see this info (editors names) in orders history area instead of (or near) IP column for example.  Here is what i tried so far: in administrator/com&#95;hikashop/plg&#95;hikashop&#95;history/history.php i added in  function onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email){  $user =&amp; JFactory::getUser(); if ($user-&gt;get('id') &gt; 0) { $utilizator = $user-&gt;get('id'); } $history-&gt;history&#95;user = $utilizator;  i created a field history&#95;user in table but i dont' get the value in..  Thank you")*

May i ask when you will release a new update? We would like to start using hikashop but we can't without this option( i don't want to rush you, just asking for a time frame)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzk3MDgtaG93LXRvLWdldC11c2VyLW5hbWUtaWQtaW4tb3JkZXItaGlzdG9yeT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

15 years 7 months ago [\#9815](#9815) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to get user name/id in order history](/forum/4-how-to/9708-how-to-get-user-name-id-in-order-history#9815 "Hello,  I just bought business version and found a lot of interesting features in this version. What i can't find is how and where to get the user id or name of user who modified the status of an order. In my case, i'm just the administrator of website but orders are processed by other peoples (editors). Would be great to see this info (editors names) in orders history area instead of (or near) IP column for example.  Here is what i tried so far: in administrator/com&#95;hikashop/plg&#95;hikashop&#95;history/history.php i added in  function onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email){  $user =&amp; JFactory::getUser(); if ($user-&gt;get('id') &gt; 0) { $utilizator = $user-&gt;get('id'); } $history-&gt;history&#95;user = $utilizator;  i created a field history&#95;user in table but i dont' get the value in..  Thank you")*

We don't have a defined date yet. We however do a release every two weeks approximately and we did last release on sunday.

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

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

Less More

- Posts: 126
- Thank you received: 2
-
-

15 years 7 months ago [\#10819](#10819) by [mett](/forum/user/1080-mett "View mett's Profile")  Replied by *[mett](/forum/user/1080-mett "View mett's Profile")* on topic *[Re: How to get user name/id in order history](/forum/4-how-to/9708-how-to-get-user-name-id-in-order-history#10819 "Hello,  I just bought business version and found a lot of interesting features in this version. What i can't find is how and where to get the user id or name of user who modified the status of an order. In my case, i'm just the administrator of website but orders are processed by other peoples (editors). Would be great to see this info (editors names) in orders history area instead of (or near) IP column for example.  Here is what i tried so far: in administrator/com&#95;hikashop/plg&#95;hikashop&#95;history/history.php i added in  function onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email){  $user =&amp; JFactory::getUser(); if ($user-&gt;get('id') &gt; 0) { $utilizator = $user-&gt;get('id'); } $history-&gt;history&#95;user = $utilizator;  i created a field history&#95;user in table but i dont' get the value in..  Thank you")*

Hello Nicholas,

Any chance to get this update? We can't start our shop without this option available...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzk3MDgtaG93LXRvLWdldC11c2VyLW5hbWUtaWQtaW4tb3JkZXItaGlzdG9yeT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

15 years 7 months ago [\#10840](#10840) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to get user name/id in order history](/forum/4-how-to/9708-how-to-get-user-name-id-in-order-history#10840 "Hello,  I just bought business version and found a lot of interesting features in this version. What i can't find is how and where to get the user id or name of user who modified the status of an order. In my case, i'm just the administrator of website but orders are processed by other peoples (editors). Would be great to see this info (editors names) in orders history area instead of (or near) IP column for example.  Here is what i tried so far: in administrator/com&#95;hikashop/plg&#95;hikashop&#95;history/history.php i added in  function onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email){  $user =&amp; JFactory::getUser(); if ($user-&gt;get('id') &gt; 0) { $utilizator = $user-&gt;get('id'); } $history-&gt;history&#95;user = $utilizator;  i created a field history&#95;user in table but i dont' get the value in..  Thank you")*

We are still in the middle of the modifications to get next version out. In the mean time, we can propose you a pre version if you contact us via our contact form: [ www.hikashop.com/en/support/contact-us.html](http://www.hikashop.com/en/support/contact-us.html)

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

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

Less More

- Posts: 126
- Thank you received: 2
-
-

15 years 7 months ago [\#10904](#10904) by [mett](/forum/user/1080-mett "View mett's Profile")  Replied by *[mett](/forum/user/1080-mett "View mett's Profile")* on topic *[Re: How to get user name/id in order history](/forum/4-how-to/9708-how-to-get-user-name-id-in-order-history#10904 "Hello,  I just bought business version and found a lot of interesting features in this version. What i can't find is how and where to get the user id or name of user who modified the status of an order. In my case, i'm just the administrator of website but orders are processed by other peoples (editors). Would be great to see this info (editors names) in orders history area instead of (or near) IP column for example.  Here is what i tried so far: in administrator/com&#95;hikashop/plg&#95;hikashop&#95;history/history.php i added in  function onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email){  $user =&amp; JFactory::getUser(); if ($user-&gt;get('id') &gt; 0) { $utilizator = $user-&gt;get('id'); } $history-&gt;history&#95;user = $utilizator;  i created a field history&#95;user in table but i dont' get the value in..  Thank you")*

Nicholas, thank yout for sending me this pre version..unfortunately, i can't find this option available..where should i look? I don't see any new column in order history..

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzk3MDgtaG93LXRvLWdldC11c2VyLW5hbWUtaWQtaW4tb3JkZXItaGlzdG9yeT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

15 years 7 months ago [\#10912](#10912) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to get user name/id in order history](/forum/4-how-to/9708-how-to-get-user-name-id-in-order-history#10912 "Hello,  I just bought business version and found a lot of interesting features in this version. What i can't find is how and where to get the user id or name of user who modified the status of an order. In my case, i'm just the administrator of website but orders are processed by other peoples (editors). Would be great to see this info (editors names) in orders history area instead of (or near) IP column for example.  Here is what i tried so far: in administrator/com&#95;hikashop/plg&#95;hikashop&#95;history/history.php i added in  function onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email){  $user =&amp; JFactory::getUser(); if ($user-&gt;get('id') &gt; 0) { $utilizator = $user-&gt;get('id'); } $history-&gt;history&#95;user = $utilizator;  i created a field history&#95;user in table but i dont' get the value in..  Thank you")*

In the order history, instead of the column IP, you should now have a column user/IP with both information.

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

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

Less More

- Posts: 126
- Thank you received: 2
-
-

15 years 7 months ago [\#10913](#10913) by [mett](/forum/user/1080-mett "View mett's Profile")  Replied by *[mett](/forum/user/1080-mett "View mett's Profile")* on topic *[Re: How to get user name/id in order history](/forum/4-how-to/9708-how-to-get-user-name-id-in-order-history#10913 "Hello,  I just bought business version and found a lot of interesting features in this version. What i can't find is how and where to get the user id or name of user who modified the status of an order. In my case, i'm just the administrator of website but orders are processed by other peoples (editors). Would be great to see this info (editors names) in orders history area instead of (or near) IP column for example.  Here is what i tried so far: in administrator/com&#95;hikashop/plg&#95;hikashop&#95;history/history.php i added in  function onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email){  $user =&amp; JFactory::getUser(); if ($user-&gt;get('id') &gt; 0) { $utilizator = $user-&gt;get('id'); } $history-&gt;history&#95;user = $utilizator;  i created a field history&#95;user in table but i dont' get the value in..  Thank you")*

Nope, is not there; not even "reason" field is not recorded

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzk3MDgtaG93LXRvLWdldC11c2VyLW5hbWUtaWQtaW4tb3JkZXItaGlzdG9yeT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

15 years 7 months ago [\#10915](#10915) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to get user name/id in order history](/forum/4-how-to/9708-how-to-get-user-name-id-in-order-history#10915 "Hello,  I just bought business version and found a lot of interesting features in this version. What i can't find is how and where to get the user id or name of user who modified the status of an order. In my case, i'm just the administrator of website but orders are processed by other peoples (editors). Would be great to see this info (editors names) in orders history area instead of (or near) IP column for example.  Here is what i tried so far: in administrator/com&#95;hikashop/plg&#95;hikashop&#95;history/history.php i added in  function onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email){  $user =&amp; JFactory::getUser(); if ($user-&gt;get('id') &gt; 0) { $utilizator = $user-&gt;get('id'); } $history-&gt;history&#95;user = $utilizator;  i created a field history&#95;user in table but i dont' get the value in..  Thank you")*

Since we didn't change the version number in the package, the query to modify the history table wasn't run during the update process. Please runt he query below in your phpmyadmin and then try a new order:
ALTER TABLE &#96;jos_hikashop_history&#96; ADD &#96;history_user_id&#96; INT UNSIGNED DEFAULT 0

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

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

Less More

- Posts: 126
- Thank you received: 2
-
-

15 years 7 months ago [\#10916](#10916) by [mett](/forum/user/1080-mett "View mett's Profile")  Replied by *[mett](/forum/user/1080-mett "View mett's Profile")* on topic *[Re: How to get user name/id in order history](/forum/4-how-to/9708-how-to-get-user-name-id-in-order-history#10916 "Hello,  I just bought business version and found a lot of interesting features in this version. What i can't find is how and where to get the user id or name of user who modified the status of an order. In my case, i'm just the administrator of website but orders are processed by other peoples (editors). Would be great to see this info (editors names) in orders history area instead of (or near) IP column for example.  Here is what i tried so far: in administrator/com&#95;hikashop/plg&#95;hikashop&#95;history/history.php i added in  function onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email){  $user =&amp; JFactory::getUser(); if ($user-&gt;get('id') &gt; 0) { $utilizator = $user-&gt;get('id'); } $history-&gt;history&#95;user = $utilizator;  i created a field history&#95;user in table but i dont' get the value in..  Thank you")*

still not visibile in site, but is recorded in database..

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzk3MDgtaG93LXRvLWdldC11c2VyLW5hbWUtaWQtaW4tb3JkZXItaGlzdG9yeT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

15 years 7 months ago [\#10917](#10917) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to get user name/id in order history](/forum/4-how-to/9708-how-to-get-user-name-id-in-order-history#10917 "Hello,  I just bought business version and found a lot of interesting features in this version. What i can't find is how and where to get the user id or name of user who modified the status of an order. In my case, i'm just the administrator of website but orders are processed by other peoples (editors). Would be great to see this info (editors names) in orders history area instead of (or near) IP column for example.  Here is what i tried so far: in administrator/com&#95;hikashop/plg&#95;hikashop&#95;history/history.php i added in  function onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email){  $user =&amp; JFactory::getUser(); if ($user-&gt;get('id') &gt; 0) { $utilizator = $user-&gt;get('id'); } $history-&gt;history&#95;user = $utilizator;  i created a field history&#95;user in table but i dont' get the value in..  Thank you")*

If you customized the order view, you need to remove the customization since Hikashop does not remove your views customizations when you update it.

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

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

Less More

- Posts: 126
- Thank you received: 2
-
-

15 years 7 months ago [\#10919](#10919) by [mett](/forum/user/1080-mett "View mett's Profile")  Replied by *[mett](/forum/user/1080-mett "View mett's Profile")* on topic *[Re: How to get user name/id in order history](/forum/4-how-to/9708-how-to-get-user-name-id-in-order-history#10919 "Hello,  I just bought business version and found a lot of interesting features in this version. What i can't find is how and where to get the user id or name of user who modified the status of an order. In my case, i'm just the administrator of website but orders are processed by other peoples (editors). Would be great to see this info (editors names) in orders history area instead of (or near) IP column for example.  Here is what i tried so far: in administrator/com&#95;hikashop/plg&#95;hikashop&#95;history/history.php i added in  function onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email){  $user =&amp; JFactory::getUser(); if ($user-&gt;get('id') &gt; 0) { $utilizator = $user-&gt;get('id'); } $history-&gt;history&#95;user = $utilizator;  i created a field history&#95;user in table but i dont' get the value in..  Thank you")*

thank you, was a template problem ![:)](/media/kunena/emoticons/8.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzk3MDgtaG93LXRvLWdldC11c2VyLW5hbWUtaWQtaW4tb3JkZXItaGlzdG9yeT90bXBsPW1hcmtkb3du) 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.445 seconds

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

[](#top)
