order number trimming in email template

  • Posts: 136
  • Thank you received: 1
10 years 1 month ago #173583

-- HikaShop version -- : 2.3.3
-- Joomla version -- : 3.3.3
-- PHP version -- : 5.5

Hi Guys,

Making some changes to my Hikashop email template for confirmation email.

when calling the order id (which I have configured with 8 character length) it comes up by trimming the zero's from the front of the order number, using $data->order_id

e.g. Order number is 00000010 and is displaying as 10.

how can I fix this?

Thanks!

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

  • Posts: 13201
  • Thank you received: 2322
10 years 1 month ago #173591

Hi,

Don't you have set the order number instead of the id ?

You should use the value of $data->order_number; ;)

The order id is an int, so it will always be trimmed.

The following user(s) said Thank You: jacorr27

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

Time to create page: 0.049 seconds
Powered by Kunena Forum