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

#   Ordernumber

##

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

Less More

- Posts: 14
- Thank you received: 0
-
-

12 years 6 days ago [\#176353](#176353) by [cms4biz](/forum/user/34150-cms4biz "View cms4biz's Profile")  *[Ordernumber](/forum/35-orders-management/872470-ordernumber#176353 "I want to have a ordernumber like this YYYYMMDD&#91;id order&#93;  for example : 20141021001 Y = 2014 MM = 10 DD = 21 ID order -= 001")* was created by *[cms4biz](/forum/user/34150-cms4biz "View cms4biz's Profile")*

I want to have a ordernumber like this
YYYYMMDD[id order]

for example : 20141021001
Y = 2014
MM = 10
DD = 21
ID order -= 001

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

12 years 6 days ago -  12 years 6 days ago [\#176359](#176359) 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 *[Ordernumber](/forum/35-orders-management/872470-ordernumber#176359 "I want to have a ordernumber like this YYYYMMDD&#91;id order&#93;  for example : 20141021001 Y = 2014 MM = 10 DD = 21 ID order -= 001")*

Hello,
The solution will be to directly use the "Order number format" option through "Hikashop-&gt;System-&gt;Configuration-&gt;Main", as it's said on the documentation :

> Order number format : This option enables you to set the format of order numbers. It is only available in commercial versions of HikaShop. By default, the order number uses letters and numbers interleaved together. this is represented here with the tag {automatic\_code}. If you want to use the order number directly, you can use the tag {id}. In the tag id, you can specify the number of numbers with the size attribute. For example, {id size="5"} will result in 00123 for the order with the id 123. You can also use the date tag in order to insert date information. For example, {date format="m/Y"} will result in 02/11 for an order made in February 2011. You can combine them to generate pretty advanced order numbers like the format RE-{id size="5"}/{date format="m/Y"} used for German accounting which will result in RE-00123/02/11 for the order 123 made on February 2011.

Last edit: 12 years 6 days ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

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

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

Less More

- Posts: 14
- Thank you received: 0
-
-

12 years 5 days ago [\#176433](#176433) by [cms4biz](/forum/user/34150-cms4biz "View cms4biz's Profile")  Replied by *[cms4biz](/forum/user/34150-cms4biz "View cms4biz's Profile")* on topic *[Ordernumber](/forum/35-orders-management/872470-ordernumber#176433 "I want to have a ordernumber like this YYYYMMDD&#91;id order&#93;  for example : 20141021001 Y = 2014 MM = 10 DD = 21 ID order -= 001")*

I already read the documentation before i posted this question:

I already tried several codes.
{date format="m"}
{date format="d"}
{date format="d/m/y"}
{date format="y/m/d"}

These codes doesn't work.
How can i print the ordernumber "YYYMMDD" where
YYYY = current year
MM = cuurent month
DD = current day

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 5 days ago [\#176457](#176457) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Ordernumber](/forum/35-orders-management/872470-ordernumber#176457 "I want to have a ordernumber like this YYYYMMDD&#91;id order&#93;  for example : 20141021001 Y = 2014 MM = 10 DD = 21 ID order -= 001")*

Hi,

Are you using only this code ? Only the date or you have id too ?

If only the date, that can't work because many orders will have the same order number.
You have to use the id too.

> {id}-{date format="Ymd"}

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

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

[](#top)
