-- 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
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
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:
RE-{id size="5"}/{date format="m/y"}
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>Products
Each product has a product ID
or
Hika Shop>Products>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