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

#   Order History Information in Admin order notifcation

##

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

Less More

- Posts: 5
- Thank you received: 0
-
-

8 years 10 months ago [\#286522](#286522) by [savvygents](/forum/user/49684-savvygents "View savvygents's Profile")  *[Order History Information in Admin order notifcation](/forum/36-reports-statistics/893576-order-history-information-in-admin-order-notifcation#286522 "-- HikaShop version -- : 3.2.2  Hi,  Is there a way to include order history information table into the admin order email notification?")* was created by *[savvygents](/forum/user/49684-savvygents "View savvygents's Profile")*

-- HikaShop version -- : 3.2.2

Hi,

Is there a way to include order history information table into the admin order email notification?

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

8 years 10 months ago [\#286529](#286529) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order History Information in Admin order notifcation](/forum/36-reports-statistics/893576-order-history-information-in-admin-order-notifcation#286529 "-- HikaShop version -- : 3.2.2  Hi,  Is there a way to include order history information table into the admin order email notification?")*

Hi,

There is no easy way.
However, the admin order notification is sent when the order is created, so there will always be only one line in the history table at that point without much information besides the fact that the order status is "created" and the IP of the customer.

Nevertheless, if you want to do that, you'll have to edit the email via the menu System&gt;Emails and add custom code there.

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

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

Less More

- Posts: 5
- Thank you received: 0
-
-

8 years 10 months ago [\#286676](#286676) by [savvygents](/forum/user/49684-savvygents "View savvygents's Profile")  Replied by *[savvygents](/forum/user/49684-savvygents "View savvygents's Profile")* on topic *[Order History Information in Admin order notifcation](/forum/36-reports-statistics/893576-order-history-information-in-admin-order-notifcation#286676 "-- HikaShop version -- : 3.2.2  Hi,  Is there a way to include order history information table into the admin order email notification?")*

Thanks. Here are some more details. We are storing a Purchase Order number in the history_data field in the database. I have tried this in the notification email and it has not worked.

&lt;?php
$userClass = hikashop_get('class.user');
foreach($this-&gt;order-&gt;history as $k =&gt; $history) {
echo $history-&gt;history_data;
}
?&gt;
Am I not doing this correctly?

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

8 years 10 months ago [\#286679](#286679) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order History Information in Admin order notifcation](/forum/36-reports-statistics/893576-order-history-information-in-admin-order-notifcation#286679 "-- HikaShop version -- : 3.2.2  Hi,  Is there a way to include order history information table into the admin order email notification?")*

Hi,

$this-&gt;order doesn't exist in the emails.
You need to replace it by $data-&gt;cart and that should work.

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

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