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

#   Future Request

##

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

Less More

- Posts: 610
- Thank you received: 13
-

15 years 7 months ago [\#10162](#10162) by [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")  *[Future Request](/forum/2-general-talk-about-hikashop/10162-future-request#10162 "Hi, Would it be possible to add a box in 'Customer Account' 'View My Orders' 'Order' so a hyperlink to the shipping tracking / number can be added?  thanks")* was created by *[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")*

Hi, Would it be possible to add a box in 'Customer Account' 'View My Orders' 'Order' so a hyperlink to the shipping tracking / number can be added?

thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzEwMTYyLWZ1dHVyZS1yZXF1ZXN0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

15 years 7 months ago [\#10175](#10175) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Future Request](/forum/2-general-talk-about-hikashop/10162-future-request#10175 "Hi, Would it be possible to add a box in 'Customer Account' 'View My Orders' 'Order' so a hyperlink to the shipping tracking / number can be added?  thanks")*

If you have always one package per order, it should be quite easy to add a tracking URL.

First, create a custom order field via the menu Display-&gt;Custom fields and have it show only on the form of the backend. That will enable you to enter a tracking number in the back end for your orders.

Then, you can modify the file show of the view order of the front end via the menu Display-&gt;Views and add some code like this (supposing that the column name of your custom field is order_tracking_number ) :

&lt;?php
if(!empty($this-&gt;element-&gt;order_tracking_number)){
echo ' Track your item: &lt;a href="http://URL_OF_TRACKING_SERVICE'.$this-&gt;element-&gt;order_tracking_number.'"&gt;'.$this-&gt;element-&gt;order_tracking_number.'&lt;/a&gt;';
}
?&gt;

For example, for USPS the tracking URL is this: [ trkcnfrm1.smi.usps.com/PTSInternetWeb/In...rigTrackNum=00000000](http://trkcnfrm1.smi.usps.com/PTSInternetWeb/InterLabelInquiry.do?origTrackNum=00000000)
So you would have the code:

&lt;?php
if(!empty($this-&gt;element-&gt;order_tracking_number)){
echo ' Track your item: &lt;a href="[ trkcnfrm1.smi.usps.com/PTSInternetWeb/In...rigTrackNum='.$this-](http://trkcnfrm1.smi.usps.com/PTSInternetWeb/InterLabelInquiry.do?origTrackNum='.$this-)&gt;element-&gt;order_tracking_number.'"&gt;'.$this-&gt;element-&gt;order_tracking_number.'&lt;/a&gt;';
}
?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzEwMTYyLWZ1dHVyZS1yZXF1ZXN0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 610
- Thank you received: 13
-

15 years 7 months ago [\#10184](#10184) by [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")  Replied by *[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")* on topic *[Re: Future Request](/forum/2-general-talk-about-hikashop/10162-future-request#10184 "Hi, Would it be possible to add a box in 'Customer Account' 'View My Orders' 'Order' so a hyperlink to the shipping tracking / number can be added?  thanks")*

Hi, tried this in various positions but cannot get it to show in the customer account order page? can you advise the position in order-show please.

thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzEwMTYyLWZ1dHVyZS1yZXF1ZXN0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

15 years 7 months ago [\#10185](#10185) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Future Request](/forum/2-general-talk-about-hikashop/10162-future-request#10185 "Hi, Would it be possible to add a box in 'Customer Account' 'View My Orders' 'Order' so a hyperlink to the shipping tracking / number can be added?  thanks")*

After the order number seems like a good place. So after that code:
&lt;?php if($this-&gt;invoice_type=='order'){
echo JText::_('HIKASHOP_ORDER');
}else{
echo JText::_(strtoupper($this-&gt;invoice_type));
}
echo ': '.@$this-&gt;element-&gt;order_number;
?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzEwMTYyLWZ1dHVyZS1yZXF1ZXN0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 610
- Thank you received: 13
-

15 years 7 months ago [\#10196](#10196) by [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")  Replied by *[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")* on topic *[Re: Future Request](/forum/2-general-talk-about-hikashop/10162-future-request#10196 "Hi, Would it be possible to add a box in 'Customer Account' 'View My Orders' 'Order' so a hyperlink to the shipping tracking / number can be added?  thanks")*

sorted thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzEwMTYyLWZ1dHVyZS1yZXF1ZXN0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.085 seconds

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