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

#   order number in confirmation email

##

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

Less More

- Posts: 30
- Thank you received: 1
-
- [](http://www.digisys.sk)
-

13 years 5 months ago [\#107416](#107416) by [adambako](/forum/user/8139-adambako "View adambako's Profile")  *[order number in confirmation email](/forum/2-general-talk-about-hikashop/83267-order-number-in-confirmation-email#107416 "hi. i want to ask how i can get only order number to email template.  im trying  but it dont work.  thanks")* was created by *[adambako](/forum/user/8139-adambako "View adambako's Profile")*

hi. i want to ask how i can get only **order number** to email template.

im trying Code:

&lt;?php $url = $data-&gt;order_number; ?&gt;

but it dont work.

thanks

---

[ www.digisys.sk](http://www.digisys.sk)

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 5 months ago [\#107441](#107441) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[order number in confirmation email](/forum/2-general-talk-about-hikashop/83267-order-number-in-confirmation-email#107441 "hi. i want to ask how i can get only order number to email template.  im trying  but it dont work.  thanks")*

Hi there,

Try with this: Code:

$item-&gt;order_number

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

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

Less More

- Posts: 30
- Thank you received: 1
-
- [](http://www.digisys.sk)
-

13 years 5 months ago [\#107444](#107444) by [adambako](/forum/user/8139-adambako "View adambako's Profile")  Replied by *[adambako](/forum/user/8139-adambako "View adambako's Profile")* on topic *[order number in confirmation email](/forum/2-general-talk-about-hikashop/83267-order-number-in-confirmation-email#107444 "hi. i want to ask how i can get only order number to email template.  im trying  but it dont work.  thanks")*

hi eliot..

thanks for your reply but this code still dont work..

i cant uderstand it because the order number is at the top of the email, i just need to copy it to the bottom.

this is the code from where come also order id but with other stuff.. i need just the order id
Code:

&lt;?php $colspan = 4; $url = $data-&gt;order_number; $config =&amp; hikashop_config(); if($config-&gt;get('simplified_registration',0)!=2){ $url = '&lt;a href="'.$data-&gt;order_url.'"&gt;'. $url.'&lt;/a&gt;'; } echo JText::sprintf('ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE',$url,HIKASHOP_LIVE, hikashop_getDate(time(),'%d %B %Y'), hikashop_getDate(time(),'%H:%M'));?&gt;

any other ideas?
thanks

---

[ www.digisys.sk](http://www.digisys.sk)

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 5 months ago -  13 years 5 months ago [\#107461](#107461) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[order number in confirmation email](/forum/2-general-talk-about-hikashop/83267-order-number-in-confirmation-email#107461 "hi. i want to ask how i can get only order number to email template.  im trying  but it dont work.  thanks")*

Could you show me what you did to display the order number?
I guess you know you have to use echo $data-&gt;order_number; in order to display it.

You can also do a var_dump($data) to see if the information you need is inside this variable.

Last edit: 13 years 5 months ago by [Eliot](/forum/user/1824-eliot "View Eliot's Profile").

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

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

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

Less More

- Posts: 30
- Thank you received: 1
-
- [](http://www.digisys.sk)
-

13 years 5 months ago [\#107463](#107463) by [adambako](/forum/user/8139-adambako "View adambako's Profile")  Replied by *[adambako](/forum/user/8139-adambako "View adambako's Profile")* on topic *[order number in confirmation email](/forum/2-general-talk-about-hikashop/83267-order-number-in-confirmation-email#107463 "hi. i want to ask how i can get only order number to email template.  im trying  but it dont work.  thanks")*

im sorry, i wasnt know that.. im not php coder :ohmy:

now its working

thanks a lot ![;)](/media/kunena/emoticons/24.png ";)")

---

[ www.digisys.sk](http://www.digisys.sk)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzMjY3LW9yZGVyLW51bWJlci1pbi1jb25maXJtYXRpb24tZW1haWw/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.051 seconds

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