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

#   Setting next order and invoice numbers

##

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

Less More

- Posts: 79
- Thank you received: 3
-
-

3 years 5 months ago [\#352415](#352415) by [studiocurci](/forum/user/67327-studiocurci "View studiocurci's Profile")  *[Setting next order and invoice numbers](/forum/35-orders-management/906541-setting-next-order-and-invoice-numbers#352415 "-- HikaShop version -- : 4.7.3 -- Joomla version -- : 4.2.9 -- PHP version -- : 8  Hi, please in configuration how can I set next order number, for example 100 (incremental, then 101 and so on) and next incremental invoice number, for example 50? I suppose I have to fill in some way the fields Order number format and the field Invoice number format but I don't know the syntax. Thank you Francesco")* was created by *[studiocurci](/forum/user/67327-studiocurci "View studiocurci's Profile")*

-- HikaShop version -- : 4.7.3
-- Joomla version -- : 4.2.9
-- PHP version -- : 8

Hi,
please in configuration how can I set next order number, for example 100 (incremental, then 101 and so on) and next incremental invoice number, for example 50?
I suppose I have to fill in some way the fields Order number format and the field Invoice number format but I don't know the syntax.
Thank you
Francesco

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

3 years 5 months ago [\#352418](#352418) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Setting next order and invoice numbers](/forum/35-orders-management/906541-setting-next-order-and-invoice-numbers#352418 "-- HikaShop version -- : 4.7.3 -- Joomla version -- : 4.2.9 -- PHP version -- : 8  Hi, please in configuration how can I set next order number, for example 100 (incremental, then 101 and so on) and next incremental invoice number, for example 50? I suppose I have to fill in some way the fields Order number format and the field Invoice number format but I don't know the syntax. Thank you Francesco")*

Hi,

So, first, you should configure the order / invoice number formats.
For the order number format, set it to {order_id}
For the invoice number format, set it to {order_invoice_id}

Then, if you want the next order number to be 100, you need to set the auto_increment value of the hikashop_order table to 100 in your PHPMyAdmin: [ www.hikashop.com/forum/orders-management...et-order-number.html](https://www.hikashop.com/forum/orders-management/905755-reset-order-number.html)

For the invoice number, if you want the next number to be 50 you need to open the hikashop_order table in your PHPMyAdmin, edit an old order, and change the order_invoice_id to be 49.

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

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

Less More

- Posts: 79
- Thank you received: 3
-
-

3 years 5 months ago [\#352456](#352456) by [studiocurci](/forum/user/67327-studiocurci "View studiocurci's Profile")  Replied by *[studiocurci](/forum/user/67327-studiocurci "View studiocurci's Profile")* on topic *[Setting next order and invoice numbers](/forum/35-orders-management/906541-setting-next-order-and-invoice-numbers#352456 "-- HikaShop version -- : 4.7.3 -- Joomla version -- : 4.2.9 -- PHP version -- : 8  Hi, please in configuration how can I set next order number, for example 100 (incremental, then 101 and so on) and next incremental invoice number, for example 50? I suppose I have to fill in some way the fields Order number format and the field Invoice number format but I don't know the syntax. Thank you Francesco")*

Hi I did it, thank you.
It could be nice in the next hikashop version to add a simple feature in Joomla backend.
Something like a field for the next invoice number.
Thank you, regards
Francesco

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

3 years 5 months ago [\#352482](#352482) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Setting next order and invoice numbers](/forum/35-orders-management/906541-setting-next-order-and-invoice-numbers#352482 "-- HikaShop version -- : 4.7.3 -- Joomla version -- : 4.2.9 -- PHP version -- : 8  Hi, please in configuration how can I set next order number, for example 100 (incremental, then 101 and so on) and next incremental invoice number, for example 50? I suppose I have to fill in some way the fields Order number format and the field Invoice number format but I don't know the syntax. Thank you Francesco")*

Hi,

Thank you for your feedback.

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

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