- Posts: 5
- Thank you received: 0
Order History Information in Admin order notifcation
- savvygents
-
Topic Author
- Offline
Less
More
8 years 8 months ago #286522
by savvygents
Order History Information in Admin order notifcation was created by savvygents
-- HikaShop version -- : 3.2.2
Hi,
Is there a way to include order history information table into the admin order email notification?
Hi,
Is there a way to include order history information table into the admin order email notification?
Please Log in or Create an account to join the conversation.
8 years 8 months ago #286529
by nicolas
Replied by nicolas on topic Order History Information in Admin order notifcation
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>Emails and add custom code there.
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>Emails and add custom code there.
Please Log in or Create an account to join the conversation.
- savvygents
-
Topic Author
- Offline
Less
More
- Posts: 5
- Thank you received: 0
8 years 8 months ago #286676
by savvygents
Replied by savvygents on topic Order History Information in Admin order notifcation
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.
<?php
$userClass = hikashop_get('class.user');
foreach($this->order->history as $k => $history) {
echo $history->history_data;
}
?>
Am I not doing this correctly?
<?php
$userClass = hikashop_get('class.user');
foreach($this->order->history as $k => $history) {
echo $history->history_data;
}
?>
Am I not doing this correctly?
Please Log in or Create an account to join the conversation.
8 years 8 months ago #286679
by nicolas
Replied by nicolas on topic Order History Information in Admin order notifcation
Hi,
$this->order doesn't exist in the emails.
You need to replace it by $data->cart and that should work.
$this->order doesn't exist in the emails.
You need to replace it by $data->cart and that should work.
Please Log in or Create an account to join the conversation.
Time to create page: 0.180 seconds