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

#   Display User ID

##

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

Less More

- Posts: 137
- Thank you received: 2
-
-

15 years 7 months ago [\#10809](#10809) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  *[Display User ID](/forum/4-how-to/10809-display-user-id#10809 "Hi!  I would like to display the customer ID = Hikashop UserID in the confirmation mail sent to the customer and also in the account administration on every order. How is this possible?  Best regards")* was created by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")*

Hi!

I would like to display the customer ID = Hikashop UserID in the confirmation mail sent to the customer and also in the account administration on every order. How is this possible?

Best regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwODA5LWRpc3BsYXktdXNlci1pZD90bXBsPW1hcmtkb3du) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

15 years 7 months ago -  15 years 7 months ago [\#10811](#10811) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Display User ID](/forum/4-how-to/10809-display-user-id#10811 "Hi!  I would like to display the customer ID = Hikashop UserID in the confirmation mail sent to the customer and also in the account administration on every order. How is this possible?  Best regards")*

You can edit the emails via the menu System-&gt;Emails, there you can add something like this:
&lt;?php echo "Your id: ".$data-&gt;order_user_id; ?&gt;

You can edit the file form of the view order via the menu Display-&gt;Views and add something like this:
&lt;?php echo "User id: ".$this-&gt;order-&gt;order_user_id; ?&gt;
It's strange that you're asking because this id is already displayed in the order details page on the back end...

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwODA5LWRpc3BsYXktdXNlci1pZD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 137
- Thank you received: 2
-
-

15 years 7 months ago [\#10820](#10820) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  Replied by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")* on topic *[Re: Display User ID](/forum/4-how-to/10809-display-user-id#10820 "Hi!  I would like to display the customer ID = Hikashop UserID in the confirmation mail sent to the customer and also in the account administration on every order. How is this possible?  Best regards")*

Because we would like that the customers knows his ID, if we have to handle problems with a product or a payment.

To help others: for the view its
Code:

&lt;?php echo "User id: ".$this-&gt;order-&gt;order_user_id; ?&gt;

and not
Code:

&lt;?php echo "User id: ".$this-&gt;order-&gt;customer-&gt;user_id; ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwODA5LWRpc3BsYXktdXNlci1pZD90bXBsPW1hcmtkb3du) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

15 years 7 months ago [\#10841](#10841) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Display User ID](/forum/4-how-to/10809-display-user-id#10841 "Hi!  I would like to display the customer ID = Hikashop UserID in the confirmation mail sent to the customer and also in the account administration on every order. How is this possible?  Best regards")*

I've changed the code in my message. Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwODA5LWRpc3BsYXktdXNlci1pZD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 137
- Thank you received: 2
-
-

15 years 7 months ago [\#11404](#11404) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  Replied by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")* on topic *[Re: Display User ID](/forum/4-how-to/10809-display-user-id#11404 "Hi!  I would like to display the customer ID = Hikashop UserID in the confirmation mail sent to the customer and also in the account administration on every order. How is this possible?  Best regards")*

Is it possible to start the internal hikashop user ID from 1000 and not from 1?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwODA5LWRpc3BsYXktdXNlci1pZD90bXBsPW1hcmtkb3du) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

15 years 7 months ago [\#11417](#11417) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Display User ID](/forum/4-how-to/10809-display-user-id#11417 "Hi!  I would like to display the customer ID = Hikashop UserID in the confirmation mail sent to the customer and also in the account administration on every order. How is this possible?  Best regards")*

Yes. You need to go in your phpmyadmin and change the auto increment value of the jos_hikashop_user table:
ALTER TABLE jos_hikashop_user AUTO_INCREMENT = 1000;

Then, new users will have their ID starting from 1000 and not 1

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEwODA5LWRpc3BsYXktdXNlci1pZD90bXBsPW1hcmtkb3du) or [Create an account](/register) 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.084 seconds

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