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

#   customer number

##

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

Less More

- Posts: 30
- Thank you received: 0
-
-

8 years 9 months ago [\#287287](#287287) by [Oktavian](/forum/user/53709-oktavian "View Oktavian's Profile")  *[customer number](/forum/33-customers/893704-customer-number#287287 "-- HikaShop version -- : 3.2.2  Hello I need help  How can I give a customer number manually ? I have customers with customer numbers from another shop and I want to keep the customer numbers.  Greetings Oktavian")* was created by *[Oktavian](/forum/user/53709-oktavian "View Oktavian's Profile")*

-- HikaShop version -- : 3.2.2

Hello I need help

How can I give a customer number manually ?
I have customers with customer numbers from another shop and I want to keep the customer numbers.

Greetings Oktavian

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84OTM3MDQtY3VzdG9tZXItbnVtYmVyP3RtcGw9bWFya2Rvd24=) 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: 86556
- Thank you received: 14304
-
-

8 years 9 months ago [\#287294](#287294) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[customer number](/forum/33-customers/893704-customer-number#287294 "-- HikaShop version -- : 3.2.2  Hello I need help  How can I give a customer number manually ? I have customers with customer numbers from another shop and I want to keep the customer numbers.  Greetings Oktavian")*

Hi,

You could create a custom field of the table "user" via the menu Display&gt;Custom fields. That way, each user would have that field where you could fill in the customer number from your other shop.

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

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

Less More

- Posts: 30
- Thank you received: 0
-
-

8 years 9 months ago [\#287425](#287425) by [Oktavian](/forum/user/53709-oktavian "View Oktavian's Profile")  Replied by *[Oktavian](/forum/user/53709-oktavian "View Oktavian's Profile")* on topic *[customer number](/forum/33-customers/893704-customer-number#287425 "-- HikaShop version -- : 3.2.2  Hello I need help  How can I give a customer number manually ? I have customers with customer numbers from another shop and I want to keep the customer numbers.  Greetings Oktavian")*

Thanks next

How can I activate the automatic customer number assignment at Hilka Shop or how can I set the system to assign the customer number?

I have created the field and I can manually enter the numbers. Can the system automatically assign a customer number like other shops?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84OTM3MDQtY3VzdG9tZXItbnVtYmVyP3RtcGw9bWFya2Rvd24=) 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: 86556
- Thank you received: 14304
-
-

8 years 9 months ago [\#287430](#287430) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[customer number](/forum/33-customers/893704-customer-number#287430 "-- HikaShop version -- : 3.2.2  Hello I need help  How can I give a customer number manually ? I have customers with customer numbers from another shop and I want to keep the customer numbers.  Greetings Oktavian")*

Hi,

You could create a mass action of the type "user" with a trigger "after a user is created" with an action "update the values" where you would make the column of your custom field equal to the operation user_id (or some other kind of operation based on what you want).
You can configure mass actions via the menu System&gt;Mass actions:

[ www.hikashop.com/support/documentation/167-massaction-form.html](https://www.hikashop.com/support/documentation/167-massaction-form.html)

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

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

Less More

- Posts: 30
- Thank you received: 0
-
-

8 years 9 months ago [\#287519](#287519) by [Oktavian](/forum/user/53709-oktavian "View Oktavian's Profile")  Replied by *[Oktavian](/forum/user/53709-oktavian "View Oktavian's Profile")* on topic *[customer number](/forum/33-customers/893704-customer-number#287519 "-- HikaShop version -- : 3.2.2  Hello I need help  How can I give a customer number manually ? I have customers with customer numbers from another shop and I want to keep the customer numbers.  Greetings Oktavian")*

Thanks a question but I still have.

How do I get the customer number on an invoice ?

Best regards

Oktavian

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84OTM3MDQtY3VzdG9tZXItbnVtYmVyP3RtcGw9bWFya2Rvd24=) 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: 86556
- Thank you received: 14304
-
-

8 years 9 months ago [\#287525](#287525) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[customer number](/forum/33-customers/893704-customer-number#287525 "-- HikaShop version -- : 3.2.2  Hello I need help  How can I give a customer number manually ? I have customers with customer numbers from another shop and I want to keep the customer numbers.  Greetings Oktavian")*

Hi,

You can edit the file "invoice" of the view "order" via the menu Display&gt;Views and use such code:
&lt;?php $this-&gt;element-&gt;customer-&gt;XXX; ?&gt;
where XXX is the column name of your custom user field.

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

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

Less More

- Posts: 30
- Thank you received: 0
-
-

8 years 9 months ago -  8 years 9 months ago [\#287612](#287612) by [Oktavian](/forum/user/53709-oktavian "View Oktavian's Profile")  Replied by *[Oktavian](/forum/user/53709-oktavian "View Oktavian's Profile")* on topic *[customer number](/forum/33-customers/893704-customer-number#287612 "-- HikaShop version -- : 3.2.2  Hello I need help  How can I give a customer number manually ? I have customers with customer numbers from another shop and I want to keep the customer numbers.  Greetings Oktavian")*

Is this ok ?

&lt;fieldset class="hikashop_order_custom_fields_fieldset"&gt;
&lt;legend&gt;&lt;?php echo JText::_('ADDITIONAL_INFORMATION'); ?&gt;&lt;/legend&gt;
&lt;table class="hikashop_order_custom_fields_table adminlist" cellpadding="1" width="100%"&gt;
&lt;?php foreach($fields as $fieldName =&gt; $oneExtraField) {
?&gt;
&lt;tr class="hikashop_order_custom_field_&lt;?php echo $fieldName;?&gt;_line"&gt;
&lt;td class="key"&gt;
&lt;?php echo $this-&gt;fieldsClass-&gt;getFieldName($oneExtraField);?&gt;
**&lt;?php $this-&gt;element-&gt;customer-&gt;kundennummer; ?&gt;**
&lt;/td&gt;
&lt;td&gt;
&lt;?php echo $this-&gt;fieldsClass-&gt;show($oneExtraField,@$this-&gt;order-&gt;$fieldName); ?&gt;
&lt;/td&gt;

I can not I can not see the Customer Number field on the invoice

Last edit: 8 years 9 months ago by [Oktavian](/forum/user/53709-oktavian "View Oktavian's Profile").

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

8 years 9 months ago [\#287619](#287619) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[customer number](/forum/33-customers/893704-customer-number#287619 "-- HikaShop version -- : 3.2.2  Hello I need help  How can I give a customer number manually ? I have customers with customer numbers from another shop and I want to keep the customer numbers.  Greetings Oktavian")*

Hello,

Using that kind of code will be better to display it : Code:

&lt;?php echo $this-&gt;element-&gt;customer-&gt;kundennummer; ?&gt;

Instead of : Code:

&lt;?php $this-&gt;element-&gt;customer-&gt;kundennummer; ?&gt;

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

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

Less More

- Posts: 30
- Thank you received: 0
-
-

8 years 9 months ago -  8 years 9 months ago [\#287697](#287697) by [Oktavian](/forum/user/53709-oktavian "View Oktavian's Profile")  Replied by *[Oktavian](/forum/user/53709-oktavian "View Oktavian's Profile")* on topic *[customer number](/forum/33-customers/893704-customer-number#287697 "-- HikaShop version -- : 3.2.2  Hello I need help  How can I give a customer number manually ? I have customers with customer numbers from another shop and I want to keep the customer numbers.  Greetings Oktavian")*

Hello,
I'm too stupid, I entered the code in two places.
In this two files I find. have in line 49 &lt;?php echo $this-&gt;element-&gt;customer-&gt;kundennummer; ?&gt;

[ ![DateiInvoice.jpg](/forum/attachment/42577) ](/forum/attachment/42577 "DateiInvoice.jpg")

I still can not see the element kundennummer in the Invoice.

[ ![Rechnung.jpg](/forum/attachment/42578) ](/forum/attachment/42578 "Rechnung.jpg")

- [ ![DateiInvoice.jpg](/forum/attachment/42577) ](/forum/attachment/42577 "DateiInvoice.jpg") [ ](/forum/attachment/42577?download=1 "DateiInvoice.jpg")
- [ ![Rechnung.jpg](/forum/attachment/42578) ](/forum/attachment/42578 "Rechnung.jpg") [ ](/forum/attachment/42578?download=1 "Rechnung.jpg")

Last edit: 8 years 9 months ago by [Oktavian](/forum/user/53709-oktavian "View Oktavian's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84OTM3MDQtY3VzdG9tZXItbnVtYmVyP3RtcGw9bWFya2Rvd24=) 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: 86556
- Thank you received: 14304
-
-

8 years 9 months ago [\#287740](#287740) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[customer number](/forum/33-customers/893704-customer-number#287740 "-- HikaShop version -- : 3.2.2  Hello I need help  How can I give a customer number manually ? I have customers with customer numbers from another shop and I want to keep the customer numbers.  Greetings Oktavian")*

Hi,

If you've added your code like you explained in [ www.hikashop.com/forum/customers/893704-...r-number.html#287612](https://www.hikashop.com/forum/customers/893704-customer-number.html#287612)
then it means that your custom field will display for each custom order field of the order just after the label.
If you don't have any custom order field displaying in the invoice, then you won't see the value, it's normal.
You should put your code outside the "if" conditions of the view file or your risk your code to not run in some cases.
For example, try first adding it at the top of the file to make sure the code works.

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

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

Less More

- Posts: 30
- Thank you received: 0
-
-

8 years 9 months ago [\#287743](#287743) by [Oktavian](/forum/user/53709-oktavian "View Oktavian's Profile")  Replied by *[Oktavian](/forum/user/53709-oktavian "View Oktavian's Profile")* on topic *[customer number](/forum/33-customers/893704-customer-number#287743 "-- HikaShop version -- : 3.2.2  Hello I need help  How can I give a customer number manually ? I have customers with customer numbers from another shop and I want to keep the customer numbers.  Greetings Oktavian")*

That works fine.
how do i get the term customer number (Kundennummer) under invoice number (Rechnungsnummer)
The customer number is now next to the invoice number.

Where can I determine the look of the invoice number?

The invoice number is now But would have to be continuous because the last invoice number in the old shop was B00000893

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84OTM3MDQtY3VzdG9tZXItbnVtYmVyP3RtcGw9bWFya2Rvd24=) 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: 86556
- Thank you received: 14304
-
-

8 years 9 months ago [\#287748](#287748) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[customer number](/forum/33-customers/893704-customer-number#287748 "-- HikaShop version -- : 3.2.2  Hello I need help  How can I give a customer number manually ? I have customers with customer numbers from another shop and I want to keep the customer numbers.  Greetings Oktavian")*

Hi,

Just add a &lt;br/&gt; tag before your code so that it goes to the next line.

You can change the invoice number format with the setting of the same name in the HikaShop configuration:
[ www.hikashop.com/support/documentation/5...nfig.html#main\_order](https://www.hikashop.com/support/documentation/54-hikashop-config.html#main_order)

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

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

Less More

- Posts: 30
- Thank you received: 0
-
-

8 years 9 months ago [\#287821](#287821) by [Oktavian](/forum/user/53709-oktavian "View Oktavian's Profile")  Replied by *[Oktavian](/forum/user/53709-oktavian "View Oktavian's Profile")* on topic *[customer number](/forum/33-customers/893704-customer-number#287821 "-- HikaShop version -- : 3.2.2  Hello I need help  How can I give a customer number manually ? I have customers with customer numbers from another shop and I want to keep the customer numbers.  Greetings Oktavian")*

Thanks it works ![:-)](/media/kunena/emoticons/3.png ":-)")

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

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