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

#   Customer Order History &amp; Tracking Numbers

##

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

Less More

- Posts: 21
- Thank you received: 2
-
-

12 years 7 months ago -  12 years 7 months ago [\#148724](#148724) by [Scott](/forum/user/31695-scott "View Scott's Profile")  *[Customer Order History &amp; Tracking Numbers](/forum/33-customers/866736-customer-order-history-tracking-numbers#148724 "-- url of the page with the problem -- : -- HikaShop version -- : 2.3.0 -- Joomla version -- :3.2 -- PHP version -- : 5.4  Is there a way to add tracking information in the customers order history so they can log in and access their tracking number?  Thanks :)")* was created by *[Scott](/forum/user/31695-scott "View Scott's Profile")*

-- url of the page with the problem -- :
-- HikaShop version -- : 2.3.0
-- Joomla version -- ![:3](/smile3.gif ":3").2
-- PHP version -- : 5.4

Is there a way to add tracking information in the customers order history so they can log in and access their tracking number?

Thanks ![:)](/media/kunena/emoticons/8.png ":)")

Last edit: 12 years 7 months ago by [Scott](/forum/user/31695-scott "View Scott's Profile"). Reason: Figured part of it out

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NjY3MzYtY3VzdG9tZXItb3JkZXItaGlzdG9yeS10cmFja2luZy1udW1iZXJzP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

12 years 7 months ago [\#148738](#148738) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Customer Order History &amp; Tracking Numbers](/forum/33-customers/866736-customer-order-history-tracking-numbers#148738 "-- url of the page with the problem -- : -- HikaShop version -- : 2.3.0 -- Joomla version -- :3.2 -- PHP version -- : 5.4  Is there a way to add tracking information in the customers order history so they can log in and access their tracking number?  Thanks :)")*

Hi,

You can create a custom field of the table "order" via the menu Display&gt;Custom fields.
That way you'll be able to edit it in the order details page in the backend.
Then, you can edit the file "show" of the view "order" via the menu Display&gt;Views and add such code in order to display what you entered in the custom field:
&lt;?php echo $this-&gt;element-&gt;FIELD_NAME; ?&gt;
where FIELD_NAME is the column name of your custom order field.

The following user(s) said Thank You: [Scott](/forum/user/31695-scott "View Scott's Profile")

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

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

Less More

- Posts: 21
- Thank you received: 2
-
-

12 years 7 months ago [\#148860](#148860) by [Scott](/forum/user/31695-scott "View Scott's Profile")  Replied by *[Scott](/forum/user/31695-scott "View Scott's Profile")* on topic *[Customer Order History &amp; Tracking Numbers](/forum/33-customers/866736-customer-order-history-tracking-numbers#148860 "-- url of the page with the problem -- : -- HikaShop version -- : 2.3.0 -- Joomla version -- :3.2 -- PHP version -- : 5.4  Is there a way to add tracking information in the customers order history so they can log in and access their tracking number?  Thanks :)")*

Thank you.

If I wanted to add 2 custom fields, how would I code that? For example, if I wanted to add a tracking number and the date of shipping I enter the code:

&lt;?php echo $this-&gt;element-&gt;shipping_date; ?&gt;
&lt;?php echo $this-&gt;element-&gt;tracking_number; ?&gt;

But they both appear on the same line. Is there a way to insert a link break so they appear of different lines?

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

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

Less More

- Posts: 21
- Thank you received: 2
-
-

12 years 7 months ago [\#148865](#148865) by [Scott](/forum/user/31695-scott "View Scott's Profile")  Replied by *[Scott](/forum/user/31695-scott "View Scott's Profile")* on topic *[Customer Order History &amp; Tracking Numbers](/forum/33-customers/866736-customer-order-history-tracking-numbers#148865 "-- url of the page with the problem -- : -- HikaShop version -- : 2.3.0 -- Joomla version -- :3.2 -- PHP version -- : 5.4  Is there a way to add tracking information in the customers order history so they can log in and access their tracking number?  Thanks :)")*

Solved it. For anyone interested, if you want text to appear before the information such as:

Shipped On: (your entry)
Tracking Number: (your entry)

Insert the following code on line 501 of Displays &gt; View &gt; Orders &gt; Show:

&lt;?php echo JText::_('Shipped on').' : '.$this-&gt;element-&gt;shippingdate; ?&gt;&lt;br/&gt;
&lt;?php echo JText::_('Tracking Number').' : '.$this-&gt;element-&gt;tracking_number; ?&gt;

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

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

[](#top)
