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

#   order number trimming in email template

##

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

Less More

- Posts: 136
- Thank you received: 1
-
-

12 years 1 month ago [\#173583](#173583) by [jacorr27](/forum/user/626-jacorr27 "View jacorr27's Profile")  *[order number trimming in email template](/forum/35-orders-management/871946-order-number-trimming-in-email-template#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-&gt;order&#95;id  e.g. Order number is 00000010 and is displaying as 10.  how can I fix this?  Thanks!")* was created by *[jacorr27](/forum/user/626-jacorr27 "View jacorr27's Profile")*

-- 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-&gt;order_id

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

how can I fix this?

Thanks!

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 1 month ago [\#173591](#173591) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[order number trimming in email template](/forum/35-orders-management/871946-order-number-trimming-in-email-template#173591 "-- 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-&gt;order&#95;id  e.g. Order number is 00000010 and is displaying as 10.  how can I fix this?  Thanks!")*

Hi,

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

You should use the value of $data-&gt;order_number; ![;)](/media/kunena/emoticons/24.png ";)")

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

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

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

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