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

#   Send Tracking number in order status notification

##

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

Less More

- Posts: 165
- Thank you received: 3
-
-

10 years 6 months ago -  10 years 6 months ago [\#236927](#236927) by [jschroeder](/forum/user/13561-jschroeder "View jschroeder's Profile")  *[Send Tracking number in order status notification](/forum/28-shipping-methods/883906-send-tracking-number-in-order-status-notification#236927 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5.1  Hi, I have read through this forum but I still cannot seem to get this to work. I have a custom field for my orders with a column name of tracking&#95;number. I got this to show up perfectly on the order page itself in the customer admin section of the site. However, I want to have the tracking number sent when I change the status to shipped on an order and have the tracking number displayed in the order status notification email. I have tried reading this below and using the below code but it does not work. The problem is this looks like something that goes into the text version of the email and I am using the HTML Version of the emails. How can I achieve using A UPS tracking number that is linkable to their site in the order status notification email using the HTML Version of the email?   www.hikashop.com/forum/shipping-methods/...ed-order-status.html  ")* was created by *[jschroeder](/forum/user/13561-jschroeder "View jschroeder's Profile")*

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.5.1

Hi, I have read through this forum but I still cannot seem to get this to work. I have a custom field for my orders with a column name of tracking_number. I got this to show up perfectly on the order page itself in the customer admin section of the site. However, I want to have the tracking number sent when I change the status to shipped on an order and have the tracking number displayed in the order status notification email. I have tried reading this below and using the below code but it does not work. The problem is this looks like something that goes into the text version of the email and I am using the HTML Version of the emails. How can I achieve using A UPS tracking number that is linkable to their site in the order status notification email using the HTML Version of the email?
[ www.hikashop.com/forum/shipping-methods/...ed-order-status.html](http://www.hikashop.com/forum/shipping-methods/869561-add-tracking-numbers-to-shipped-order-status.html)

&lt;?php
$shippingClass = hikashop_get('class.shipping');
$shipping_name = '';
if(!is_numeric($data-&gt;cart-&gt;order_shipping_id)){
$shipping_name=$shippingClass-&gt;getShippingName($data-&gt;cart-&gt;order_shipping_method,$data-&gt;cart-&gt;order_shipping_id);
}
if($shipping_name == 'shipped'){
echo '&lt;a href="[ wwwapps.ups.com/WebTracking/track?track=yes&amp;trackNums='.$data-](https://wwwapps.ups.com/WebTracking/track?track=yes&trackNums='.$data-)&gt;order-&gt;tracking_number.'&amp;P='.$data-&gt;order-&gt;zip_code.'" target="_blank"&gt;&lt;strong&gt;'.$data-&gt;order-&gt;tracking_number.'&lt;/strong&gt;&lt;/a&gt;';
}else{
echo 'You can track your shipment with ups, by clicking this url [ wwwapps.ups.com/WebTracking/track?track=yes&amp;trackNums='.$data-](https://wwwapps.ups.com/WebTracking/track?track=yes&trackNums='.$data-)&gt;order-&gt;tracking_number.'&lt;br/&gt;Your tracking number is '.$data-&gt;order-&gt;tracking_number;
}
?&gt;

Thanks,

Josh

Last edit: 10 years 6 months ago by [jschroeder](/forum/user/13561-jschroeder "View jschroeder's Profile").

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

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile")
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

10 years 6 months ago -  10 years 6 months ago [\#236940](#236940) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[Send Tracking number in order status notification](/forum/28-shipping-methods/883906-send-tracking-number-in-order-status-notification#236940 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5.1  Hi, I have read through this forum but I still cannot seem to get this to work. I have a custom field for my orders with a column name of tracking&#95;number. I got this to show up perfectly on the order page itself in the customer admin section of the site. However, I want to have the tracking number sent when I change the status to shipped on an order and have the tracking number displayed in the order status notification email. I have tried reading this below and using the below code but it does not work. The problem is this looks like something that goes into the text version of the email and I am using the HTML Version of the emails. How can I achieve using A UPS tracking number that is linkable to their site in the order status notification email using the HTML Version of the email?   www.hikashop.com/forum/shipping-methods/...ed-order-status.html  ")*

Hi,

To display tracking number or text in email notification I use this code which is added to HTML version:
Code:

&lt;?php if($data-&gt;order_status == 'shipped'){ ?&gt;&lt;?php echo JText::_( 'CUSTOM_SHIPPING_MESSAGE' ); ?&gt;&lt;br&gt;&lt;span style="color:#1c8faf !important;font-size:12px;font-weight:bold;"&gt;&lt;?php echo JText::_( 'CUSTOM_TRACKING_INFO_SUBJECT' ); ?&gt;&lt;/span&gt;&lt;a href="&lt;?php echo JText::_( 'CUSTOM_POST_HYPERLINK' ); ?&gt;{VAR:order.tracking_number}" target="_blank"&gt;{VAR:tracking_number}&lt;/a&gt;&lt;br&gt; &lt;span style="color:#1c8faf !important;font-size:12px;font-weight:bold;"&gt;&lt;?php echo JText::_( 'CUSTOM_POSTAGE_DATA' ); ?&gt;&lt;/span&gt;&lt;?php echo $data-&gt;cart-&gt;postage_date; } ?&gt;

Tracking number is displayed as hyperlink....
'CUSTOM_POST_HYPERLINK' = is joomla translation override, I added there my postage service tracking link, in your case it will be UPS
You can modify it to your needs.

Hope that helps.

Thanks

Last edit: 10 years 6 months ago by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgzOTA2LXNlbmQtdHJhY2tpbmctbnVtYmVyLWluLW9yZGVyLXN0YXR1cy1ub3RpZmljYXRpb24/dG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

10 years 6 months ago [\#236959](#236959) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Send Tracking number in order status notification](/forum/28-shipping-methods/883906-send-tracking-number-in-order-status-notification#236959 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5.1  Hi, I have read through this forum but I still cannot seem to get this to work. I have a custom field for my orders with a column name of tracking&#95;number. I got this to show up perfectly on the order page itself in the customer admin section of the site. However, I want to have the tracking number sent when I change the status to shipped on an order and have the tracking number displayed in the order status notification email. I have tried reading this below and using the below code but it does not work. The problem is this looks like something that goes into the text version of the email and I am using the HTML Version of the emails. How can I achieve using A UPS tracking number that is linkable to their site in the order status notification email using the HTML Version of the email?   www.hikashop.com/forum/shipping-methods/...ed-order-status.html  ")*

Hi,

Yes, that code is much better. Here is my take on that: Code:

&lt;?php if($data-&gt;cart-&gt;order_status=='shipped'){ echo 'Your tracking number is &lt;a href="wwwapps.ups.com/WebTracking/track?track=yes&amp;trackNums='.$data-&gt;cart-&gt;tracking_number.'&amp;P='.$data-&gt;cart-&gt;shipping_address-&gt;address_post_code.'" target="_blank"&gt;&lt;strong&gt;'.$data-&gt;cart-&gt;tracking_number.'&lt;/strong&gt;&lt;/a&gt;'; } ?&gt;

That code can be added in the HTML version, that's not a problem.

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

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

Less More

- Posts: 165
- Thank you received: 3
-
-

10 years 6 months ago [\#237849](#237849) by [jschroeder](/forum/user/13561-jschroeder "View jschroeder's Profile")  Replied by *[jschroeder](/forum/user/13561-jschroeder "View jschroeder's Profile")* on topic *[Send Tracking number in order status notification](/forum/28-shipping-methods/883906-send-tracking-number-in-order-status-notification#237849 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5.1  Hi, I have read through this forum but I still cannot seem to get this to work. I have a custom field for my orders with a column name of tracking&#95;number. I got this to show up perfectly on the order page itself in the customer admin section of the site. However, I want to have the tracking number sent when I change the status to shipped on an order and have the tracking number displayed in the order status notification email. I have tried reading this below and using the below code but it does not work. The problem is this looks like something that goes into the text version of the email and I am using the HTML Version of the emails. How can I achieve using A UPS tracking number that is linkable to their site in the order status notification email using the HTML Version of the email?   www.hikashop.com/forum/shipping-methods/...ed-order-status.html  ")*

> nicolas wrote: Hi,
>
> Yes, that code is much better. Here is my take on that:
>
> Code:
>
> &lt;?php if($data-&gt;cart-&gt;order_status=='shipped'){ echo 'Your tracking number is &lt;a href="wwwapps.ups.com/WebTracking/track?track=yes&amp;trackNums='.$data-&gt;cart-&gt;tracking_number.'&amp;P='.$data-&gt;cart-&gt;shipping_address-&gt;address_post_code.'" target="_blank"&gt;&lt;strong&gt;'.$data-&gt;cart-&gt;tracking_number.'&lt;/strong&gt;&lt;/a&gt;'; } ?&gt;
>
>
>
> That code can be added in the HTML version, that's not a problem.

Thank you so much it worked perfectly!

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

- **[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")**
- [![Lumiga's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31479.png)](/forum/user/31479-lumiga "View Lumiga's Profile")
- [ Offline](/forum/user/31479-lumiga)

Less More

- Posts: 637
- Thank you received: 26
-
-
-

10 years 5 months ago -  10 years 5 months ago [\#241123](#241123) by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")  Replied by *[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")* on topic *[Send Tracking number in order status notification](/forum/28-shipping-methods/883906-send-tracking-number-in-order-status-notification#241123 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5.1  Hi, I have read through this forum but I still cannot seem to get this to work. I have a custom field for my orders with a column name of tracking&#95;number. I got this to show up perfectly on the order page itself in the customer admin section of the site. However, I want to have the tracking number sent when I change the status to shipped on an order and have the tracking number displayed in the order status notification email. I have tried reading this below and using the below code but it does not work. The problem is this looks like something that goes into the text version of the email and I am using the HTML Version of the emails. How can I achieve using A UPS tracking number that is linkable to their site in the order status notification email using the HTML Version of the email?   www.hikashop.com/forum/shipping-methods/...ed-order-status.html  ")*

Hi Nicolas,

Am I correct that this code isn't working anymore in version 2.6.3 and higher
I see no UPS URL appear in the e-mail.

I only see the tracking number appear (on a new line with the name of the field), but that is because I set the custom field (type: order) Display to YES for Order Status notification. So since 2.6.3 it is automatically inserted in to the e-mail.

Unfortunately this tracking number is also displayed when you set order status back to to confirmed.
I only want to display it when you set it to shipped and not on a new line with the name of the field before it.
Just like you designed the code ![;-)](/media/kunena/emoticons/24.png ";-)")

I hope you can take a look at it.

Kind regards,
Lumiga

---

Kind regards,
Lumiga

Last edit: 10 years 5 months ago by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgzOTA2LXNlbmQtdHJhY2tpbmctbnVtYmVyLWluLW9yZGVyLXN0YXR1cy1ub3RpZmljYXRpb24/dG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

10 years 5 months ago [\#241219](#241219) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Send Tracking number in order status notification](/forum/28-shipping-methods/883906-send-tracking-number-in-order-status-notification#241219 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5.1  Hi, I have read through this forum but I still cannot seem to get this to work. I have a custom field for my orders with a column name of tracking&#95;number. I got this to show up perfectly on the order page itself in the customer admin section of the site. However, I want to have the tracking number sent when I change the status to shipped on an order and have the tracking number displayed in the order status notification email. I have tried reading this below and using the below code but it does not work. The problem is this looks like something that goes into the text version of the email and I am using the HTML Version of the emails. How can I achieve using A UPS tracking number that is linkable to their site in the order status notification email using the HTML Version of the email?   www.hikashop.com/forum/shipping-methods/...ed-order-status.html  ")*

Hi,

You should keep the display option in the email turned off since that code will do the display instead, and only for the shipped orders.

That code still works fine with the 2.6.3
If you don't see the tracking number text from that code, it's either that the status of the order is not "shipped", or that you didn't add the code to the correct email. That's all I can think of.

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

- **[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")**
- [![Lumiga's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31479.png)](/forum/user/31479-lumiga "View Lumiga's Profile")
- [ Offline](/forum/user/31479-lumiga)

Less More

- Posts: 637
- Thank you received: 26
-
-
-

10 years 5 months ago -  10 years 5 months ago [\#242459](#242459) by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")  Replied by *[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")* on topic *[Send Tracking number in order status notification](/forum/28-shipping-methods/883906-send-tracking-number-in-order-status-notification#242459 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5.1  Hi, I have read through this forum but I still cannot seem to get this to work. I have a custom field for my orders with a column name of tracking&#95;number. I got this to show up perfectly on the order page itself in the customer admin section of the site. However, I want to have the tracking number sent when I change the status to shipped on an order and have the tracking number displayed in the order status notification email. I have tried reading this below and using the below code but it does not work. The problem is this looks like something that goes into the text version of the email and I am using the HTML Version of the emails. How can I achieve using A UPS tracking number that is linkable to their site in the order status notification email using the HTML Version of the email?   www.hikashop.com/forum/shipping-methods/...ed-order-status.html  ")*

Hi Nicolas,

I think there is a bug. I have tested it over and over again.
This code only works when you set the display option from the tracking_number in the email turned on.
For me this is the only custom field I use for the table 'order'.

I have tested it with this simple code: Code:

&lt;?php { echo 'test'; } ?&gt;

I put this simple code at the end of this code: Code:

&lt;h1 style="color:#ac5d62 !important;font-size:16px;font-weight:bold;border-bottom:1px solid #ddd;padding-top:10px;padding-bottom:10px;"&gt; {TXT:ADDITIONAL_INFORMATION} &lt;/h1&gt;

Hopefully you can help me with this code.

See you on Saturday at Breda! ![;-)](/media/kunena/emoticons/24.png ";-)")

Kind regards,
Lumiga

---

Kind regards,
Lumiga

Last edit: 10 years 5 months ago by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgzOTA2LXNlbmQtdHJhY2tpbmctbnVtYmVyLWluLW9yZGVyLXN0YXR1cy1ub3RpZmljYXRpb24/dG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

10 years 5 months ago [\#242467](#242467) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Send Tracking number in order status notification](/forum/28-shipping-methods/883906-send-tracking-number-in-order-status-notification#242467 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5.1  Hi, I have read through this forum but I still cannot seem to get this to work. I have a custom field for my orders with a column name of tracking&#95;number. I got this to show up perfectly on the order page itself in the customer admin section of the site. However, I want to have the tracking number sent when I change the status to shipped on an order and have the tracking number displayed in the order status notification email. I have tried reading this below and using the below code but it does not work. The problem is this looks like something that goes into the text version of the email and I am using the HTML Version of the emails. How can I achieve using A UPS tracking number that is linkable to their site in the order status notification email using the HTML Version of the email?   www.hikashop.com/forum/shipping-methods/...ed-order-status.html  ")*

Hi,

That code does work. So either your order status is not "shipped", or your not editing the correct email, as I said in my previous email.
Bring your laptop and I'll have a look with you on Saturday.

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

- **[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")**
- [![Lumiga's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31479.png)](/forum/user/31479-lumiga "View Lumiga's Profile")
- [ Offline](/forum/user/31479-lumiga)

Less More

- Posts: 637
- Thank you received: 26
-
-
-

10 years 5 months ago [\#242981](#242981) by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")  Replied by *[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")* on topic *[Send Tracking number in order status notification](/forum/28-shipping-methods/883906-send-tracking-number-in-order-status-notification#242981 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5.1  Hi, I have read through this forum but I still cannot seem to get this to work. I have a custom field for my orders with a column name of tracking&#95;number. I got this to show up perfectly on the order page itself in the customer admin section of the site. However, I want to have the tracking number sent when I change the status to shipped on an order and have the tracking number displayed in the order status notification email. I have tried reading this below and using the below code but it does not work. The problem is this looks like something that goes into the text version of the email and I am using the HTML Version of the emails. How can I achieve using A UPS tracking number that is linkable to their site in the order status notification email using the HTML Version of the email?   www.hikashop.com/forum/shipping-methods/...ed-order-status.html  ")*

Hi Nicolas,

Thanks for your help in Breda! It was a nice day.

The code is fine now but the problem is that the status of the order must be shipped BEFORE Hikashop is sending this Track &amp; Trace information.

But, when your order is confirmed and you want to send the customer an email (from the orders list view: Component&gt;Hikashop&gt;Orders) to change the order status to shipped and notify customer to YES. Then Hikashop doesn't sent the Track &amp; Trace code.

But after that, every status change is getting the Track &amp; Trace code. Also refunded and that’s not to supposed to be.

So my conclusion is: The code works fine but it doesn't sent the Track &amp; Trace code on the right moment when your change you order from confirmed to shipping. So a workaround is to change the code with the status 'confirmed'. But in that case it's also sending Track &amp; Trace code if you change your order to cancelled or refunded.

So the question is:
Is there some sort of code that is will only sent this Track &amp; Trace code (regardless of the current status) when you change the status to shipped?

Second question: In none of above cases the Track &amp; Trace code is displayed (emailed) when you manually send the email from the single product order view. Is there a way to let this email also send the Track &amp; trace code?

Kind regards,
Lumiga

---

Kind regards,
Lumiga

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgzOTA2LXNlbmQtdHJhY2tpbmctbnVtYmVyLWluLW9yZGVyLXN0YXR1cy1ub3RpZmljYXRpb24/dG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

10 years 5 months ago [\#242997](#242997) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Send Tracking number in order status notification](/forum/28-shipping-methods/883906-send-tracking-number-in-order-status-notification#242997 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5.1  Hi, I have read through this forum but I still cannot seem to get this to work. I have a custom field for my orders with a column name of tracking&#95;number. I got this to show up perfectly on the order page itself in the customer admin section of the site. However, I want to have the tracking number sent when I change the status to shipped on an order and have the tracking number displayed in the order status notification email. I have tried reading this below and using the below code but it does not work. The problem is this looks like something that goes into the text version of the email and I am using the HTML Version of the emails. How can I achieve using A UPS tracking number that is linkable to their site in the order status notification email using the HTML Version of the email?   www.hikashop.com/forum/shipping-methods/...ed-order-status.html  ")*

Hi,

This issue is this:
When you change the status of the order from the order listing, it opens a popup and when you turn on the "notify customer" option there, it displays you the email that will be sent. The problem here is that the order status in the database hasn't been changed yet in the database.
To circumvent that, you have two solutions:
1. You change the status of the order from the order details page. There, the email content is loaded after the order status is changed in the database.
2. In your customized code, instead of :
if($data-&gt;cart-&gt;order_status=='shipped'){
use:
if(@$data-&gt;order_status=='shipped'){
and that should work fine regardless from where you send the email.

The following user(s) said Thank You: [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")

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

- **[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")**
- [![Lumiga's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31479.png)](/forum/user/31479-lumiga "View Lumiga's Profile")
- [ Offline](/forum/user/31479-lumiga)

Less More

- Posts: 637
- Thank you received: 26
-
-
-

10 years 4 months ago [\#243121](#243121) by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")  Replied by *[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")* on topic *[Send Tracking number in order status notification](/forum/28-shipping-methods/883906-send-tracking-number-in-order-status-notification#243121 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5.1  Hi, I have read through this forum but I still cannot seem to get this to work. I have a custom field for my orders with a column name of tracking&#95;number. I got this to show up perfectly on the order page itself in the customer admin section of the site. However, I want to have the tracking number sent when I change the status to shipped on an order and have the tracking number displayed in the order status notification email. I have tried reading this below and using the below code but it does not work. The problem is this looks like something that goes into the text version of the email and I am using the HTML Version of the emails. How can I achieve using A UPS tracking number that is linkable to their site in the order status notification email using the HTML Version of the email?   www.hikashop.com/forum/shipping-methods/...ed-order-status.html  ")*

Hi Nicolas,

Thanks for your answer. Everything works fine now. ![;)](/media/kunena/emoticons/24.png ";)")

But regarding point 1 and 2, in both situations there is no Track &amp; Trace code sent if you choose the Email button from the order details page on the top beside the invoice and shipping invoice button.

Can you please explain why this is?

[ ![Knipsel&#95;2016-06-15.jpg](/forum/attachment/32111) ](/forum/attachment/32111 "...2016-06-15.jpg")

Kind regards,
Lumiga

---

Kind regards,
Lumiga

- [ ![Knipsel&#95;2016-06-15.jpg](/forum/attachment/32111) ](/forum/attachment/32111 "...2016-06-15.jpg") [ ](/forum/attachment/32111?download=1 "...2016-06-15.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgzOTA2LXNlbmQtdHJhY2tpbmctbnVtYmVyLWluLW9yZGVyLXN0YXR1cy1ub3RpZmljYXRpb24/dG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

10 years 4 months ago [\#243143](#243143) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Send Tracking number in order status notification](/forum/28-shipping-methods/883906-send-tracking-number-in-order-status-notification#243143 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5.1  Hi, I have read through this forum but I still cannot seem to get this to work. I have a custom field for my orders with a column name of tracking&#95;number. I got this to show up perfectly on the order page itself in the customer admin section of the site. However, I want to have the tracking number sent when I change the status to shipped on an order and have the tracking number displayed in the order status notification email. I have tried reading this below and using the below code but it does not work. The problem is this looks like something that goes into the text version of the email and I am using the HTML Version of the emails. How can I achieve using A UPS tracking number that is linkable to their site in the order status notification email using the HTML Version of the email?   www.hikashop.com/forum/shipping-methods/...ed-order-status.html  ")*

Hi,

That's because it uses the "order notification" email, not the "order status notification" email.
You would have to edit that email code too.

The following user(s) said Thank You: [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")

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

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