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

#   Can I put name of product into order number format?

##

- **[paurray](/forum/user/46395-paurray "View paurray's Profile")**
- [![paurray's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar46395.png)](/forum/user/46395-paurray "View paurray's Profile") Topic Author
- [ Offline](/forum/user/46395-paurray)

Less More

- Posts: 139
- Thank you received: 10
-
-

8 years 10 months ago -  8 years 10 months ago [\#286110](#286110) by [paurray](/forum/user/46395-paurray "View paurray's Profile")  *[Can I put name of product into order number format?](/forum/35-orders-management/893498-can-i-put-name-of-product-into-order-number-format#286110 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : PHP 7.1.7 . -- Browser(s) name and version -- : opera -- Error-message(debug-mod must be tuned on) -- : N/A  Hi Hika Team  Following the instructions here:   www.hikashop.com/support/documentation/5...nfig.html#main&#95;order  I have managed to get from:  From numbers like this:  B6D0D1 B5D9B9  to numbers like this:  RE-00641/01/18 RE-00642/01/18  with the help of this:  I have looked at the documentation here:    php.net/manual/fr/function.date.php  But am still confused.  Is it possible to add my product name to the order:  eg  Here:  Hika Shop&gt;Products  Each product has a product ID  or  Hika Shop&gt;Products&gt;Product Name:Media Foundations X.1 (MFX.1) In the “Main options” section.  I have a product code: fcpx-media-foundations  In short is it possible to pull a name/label from the product and add it to the product code?  If so what is the syntax that I need to use?  kindly advise  Paul")* was created by *[paurray](/forum/user/46395-paurray "View paurray's Profile")*

-- HikaShop version -- : 3.2.2
-- Joomla version -- : 3.8.3
-- PHP version -- : PHP 7.1.7 .
-- Browser(s) name and version -- : opera
-- Error-message(debug-mod must be tuned on) -- : N/A

Hi Hika Team

Following the instructions here:
[ www.hikashop.com/support/documentation/5...nfig.html#main\_order](https://www.hikashop.com/support/documentation/54-hikashop-config.html#main_order)

> 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.
> If you need more formatting options for the date you can look at the PHP documentation: [ php.net/manual/fr/function.date.php](http://php.net/manual/fr/function.date.php)
> Note that the order number (and the order id) is generated when the order is created. So after you change the format here, only new orders will get their order number in the new format.

I have managed to get from:

From numbers like this:

B6D0D1
B5D9B9

to numbers like this:

RE-00641/01/18
RE-00642/01/18

with the help of this:

Code:

RE-{id size="5"}/{date format="m/y"}

I have looked at the documentation here:

[ php.net/manual/fr/function.date.php](http://php.net/manual/fr/function.date.php)

But am still confused.

Is it possible to add my product name to the order:

eg

Here:

Hika Shop&gt;Products

Each product has a product ID

or

Hika Shop&gt;Products&gt;Product Name:Media Foundations X.1 (MFX.1)
In the “Main options” section.

I have a product code: fcpx-media-foundations

In short is it possible to pull a name/label from the product and add it to the product code?

If so what is the syntax that I need to use?

kindly advise

Paul

Last edit: 8 years 10 months ago by [paurray](/forum/user/46395-paurray "View paurray's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

8 years 10 months ago [\#286111](#286111) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Can I put name of product into order number format?](/forum/35-orders-management/893498-can-i-put-name-of-product-into-order-number-format#286111 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : PHP 7.1.7 . -- Browser(s) name and version -- : opera -- Error-message(debug-mod must be tuned on) -- : N/A  Hi Hika Team  Following the instructions here:   www.hikashop.com/support/documentation/5...nfig.html#main&#95;order  I have managed to get from:  From numbers like this:  B6D0D1 B5D9B9  to numbers like this:  RE-00641/01/18 RE-00642/01/18  with the help of this:  I have looked at the documentation here:    php.net/manual/fr/function.date.php  But am still confused.  Is it possible to add my product name to the order:  eg  Here:  Hika Shop&gt;Products  Each product has a product ID  or  Hika Shop&gt;Products&gt;Product Name:Media Foundations X.1 (MFX.1) In the “Main options” section.  I have a product code: fcpx-media-foundations  In short is it possible to pull a name/label from the product and add it to the product code?  If so what is the syntax that I need to use?  kindly advise  Paul")*

Hello,

By default you can't ; since an order can have several products it's not possible to access to products via the order number generation tool.
Afterwards, if you have some development/php skills ; you can still see to create a custom plugin in your side and implement the " onBeforeOrderNumberGenerate($order, &amp;$result) " trigger.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [paurray](/forum/user/46395-paurray "View paurray's Profile")

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

- **[paurray](/forum/user/46395-paurray "View paurray's Profile")**
- [![paurray's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar46395.png)](/forum/user/46395-paurray "View paurray's Profile") Topic Author
- [ Offline](/forum/user/46395-paurray)

Less More

- Posts: 139
- Thank you received: 10
-
-

8 years 10 months ago [\#286127](#286127) by [paurray](/forum/user/46395-paurray "View paurray's Profile")  Replied by *[paurray](/forum/user/46395-paurray "View paurray's Profile")* on topic *[Can I put name of product into order number format?](/forum/35-orders-management/893498-can-i-put-name-of-product-into-order-number-format#286127 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : PHP 7.1.7 . -- Browser(s) name and version -- : opera -- Error-message(debug-mod must be tuned on) -- : N/A  Hi Hika Team  Following the instructions here:   www.hikashop.com/support/documentation/5...nfig.html#main&#95;order  I have managed to get from:  From numbers like this:  B6D0D1 B5D9B9  to numbers like this:  RE-00641/01/18 RE-00642/01/18  with the help of this:  I have looked at the documentation here:    php.net/manual/fr/function.date.php  But am still confused.  Is it possible to add my product name to the order:  eg  Here:  Hika Shop&gt;Products  Each product has a product ID  or  Hika Shop&gt;Products&gt;Product Name:Media Foundations X.1 (MFX.1) In the “Main options” section.  I have a product code: fcpx-media-foundations  In short is it possible to pull a name/label from the product and add it to the product code?  If so what is the syntax that I need to use?  kindly advise  Paul")*

Hi Jerome

ok thanks for this

best

Paul

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

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

Less More

- Posts: 198
- Thank you received: 4
-
-

8 years 9 months ago -  8 years 9 months ago [\#287045](#287045) by [arnask](/forum/user/6752-arnask "View arnask's Profile")  Replied by *[arnask](/forum/user/6752-arnask "View arnask's Profile")* on topic *[Can I put name of product into order number format?](/forum/35-orders-management/893498-can-i-put-name-of-product-into-order-number-format#287045 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : PHP 7.1.7 . -- Browser(s) name and version -- : opera -- Error-message(debug-mod must be tuned on) -- : N/A  Hi Hika Team  Following the instructions here:   www.hikashop.com/support/documentation/5...nfig.html#main&#95;order  I have managed to get from:  From numbers like this:  B6D0D1 B5D9B9  to numbers like this:  RE-00641/01/18 RE-00642/01/18  with the help of this:  I have looked at the documentation here:    php.net/manual/fr/function.date.php  But am still confused.  Is it possible to add my product name to the order:  eg  Here:  Hika Shop&gt;Products  Each product has a product ID  or  Hika Shop&gt;Products&gt;Product Name:Media Foundations X.1 (MFX.1) In the “Main options” section.  I have a product code: fcpx-media-foundations  In short is it possible to pull a name/label from the product and add it to the product code?  If so what is the syntax that I need to use?  kindly advise  Paul")*

Have you done such plugin and can share? I need it too.

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

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

- **[paurray](/forum/user/46395-paurray "View paurray's Profile")**
- [![paurray's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar46395.png)](/forum/user/46395-paurray "View paurray's Profile") Topic Author
- [ Offline](/forum/user/46395-paurray)

Less More

- Posts: 139
- Thank you received: 10
-
-

8 years 9 months ago [\#287061](#287061) by [paurray](/forum/user/46395-paurray "View paurray's Profile")  Replied by *[paurray](/forum/user/46395-paurray "View paurray's Profile")* on topic *[Can I put name of product into order number format?](/forum/35-orders-management/893498-can-i-put-name-of-product-into-order-number-format#287061 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : PHP 7.1.7 . -- Browser(s) name and version -- : opera -- Error-message(debug-mod must be tuned on) -- : N/A  Hi Hika Team  Following the instructions here:   www.hikashop.com/support/documentation/5...nfig.html#main&#95;order  I have managed to get from:  From numbers like this:  B6D0D1 B5D9B9  to numbers like this:  RE-00641/01/18 RE-00642/01/18  with the help of this:  I have looked at the documentation here:    php.net/manual/fr/function.date.php  But am still confused.  Is it possible to add my product name to the order:  eg  Here:  Hika Shop&gt;Products  Each product has a product ID  or  Hika Shop&gt;Products&gt;Product Name:Media Foundations X.1 (MFX.1) In the “Main options” section.  I have a product code: fcpx-media-foundations  In short is it possible to pull a name/label from the product and add it to the product code?  If so what is the syntax that I need to use?  kindly advise  Paul")*

Hi

> Have you done such plugin and can share? I need it too.

Nope but be sure to let me know if you figure this out :lol:

best

Paul

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

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

Less More

- Posts: 198
- Thank you received: 4
-
-

8 years 9 months ago [\#287065](#287065) by [arnask](/forum/user/6752-arnask "View arnask's Profile")  Replied by *[arnask](/forum/user/6752-arnask "View arnask's Profile")* on topic *[Can I put name of product into order number format?](/forum/35-orders-management/893498-can-i-put-name-of-product-into-order-number-format#287065 "-- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : PHP 7.1.7 . -- Browser(s) name and version -- : opera -- Error-message(debug-mod must be tuned on) -- : N/A  Hi Hika Team  Following the instructions here:   www.hikashop.com/support/documentation/5...nfig.html#main&#95;order  I have managed to get from:  From numbers like this:  B6D0D1 B5D9B9  to numbers like this:  RE-00641/01/18 RE-00642/01/18  with the help of this:  I have looked at the documentation here:    php.net/manual/fr/function.date.php  But am still confused.  Is it possible to add my product name to the order:  eg  Here:  Hika Shop&gt;Products  Each product has a product ID  or  Hika Shop&gt;Products&gt;Product Name:Media Foundations X.1 (MFX.1) In the “Main options” section.  I have a product code: fcpx-media-foundations  In short is it possible to pull a name/label from the product and add it to the product code?  If so what is the syntax that I need to use?  kindly advise  Paul")*

In this case i will need to ask some freelancer to make it. Are you willing to pay a half price of this?

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

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