wrong Invoice number format derived from order

  • Posts: 114
  • Thank you received: 4
7 years 5 months ago #271602

-- HikaShop version -- : 3.1
-- Joomla version -- : 3.7
-- PHP version -- : 7.1

I followed the instructions for the "Order number format" at www.hikashop.com/19-documentation/hikash...hikashop-config.html but it gives unexpected results for the "Invoice Number format". My "Order number format" is:

{id size="7"}{date format="my"}
My "Invoice number format" is:
{order_id}i
That results in the expected 00000380617 for the order but in the unexpexcted 38i for the invoice. Why is it not taking the entire order_id into account?

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 5 months ago #271605

Hello,

I'm afraid the results are correct.
Please do not mix up "order id" and "order number".

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 114
  • Thank you received: 4
7 years 5 months ago #271652

Ok, so I mixed it up. Now how do I get the desired invoice number "00000380617i"? Thanks

EDIT: I tried

{order_number}i
but the variable order_number does not seem to exist.

Last edit: 7 years 5 months ago by peteo.

Please Log in or Create an account to join the conversation.

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
7 years 5 months ago #271662

Hi,

You need to use that format too for the invoice number format: {id size="7"}{date format="my"}

Now {order_number} should work too unless the order is being created as already confirmed and thus the order_number is not yet set when the invoice number is generated in that particular case.

Please Log in or Create an account to join the conversation.

Time to create page: 0.037 seconds
Powered by Kunena Forum