I created few orders and all had the same number: BE2021210.
{BE}{order->date_add:%4.4s}{order->id:%03d}
I think it is due to the fact that it is taking first three digits from the id_order because in my case id_orders are 2106003, 2106004, 2106005...
A test customer received three emails, all with an identical ref.: BE2021210. However me, as a merchant, I received order confirmation email sent via ps_emailalerts contained correct numbers: BE20212106003, BE20212106004... However, in database, I see BE2021210 next to each of those orders.
Is it possible to change it so it will take last three digits instead first three from the order ID? Since the reference cannot have more than 9 digits/letters, the only solution is to use last 3-4 numbers from the id_order.
I created few orders and all had the same number: BE2021210.
{BE}{order->date_add:%4.4s}{order->id:%03d}
I think it is due to the fact that it is taking first three digits from the id_order because in my case id_orders are 2106003, 2106004, 2106005... A test customer received three emails, all with an identical ref.: BE2021210. However me, as a merchant, I received order confirmation email sent via ps_emailalerts contained correct numbers: BE20212106003, BE20212106004... However, in database, I see BE2021210 next to each of those orders.Is it possible to change it so it will take last three digits instead first three from the order ID? Since the reference cannot have more than 9 digits/letters, the only solution is to use last 3-4 numbers from the id_order.