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

#   Show "history" wich contains PayPal transactions

##

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

Less More

- Posts: 10
- Thank you received: 0
-
-

12 years 11 months ago [\#131660](#131660) by [TheCoreStylerz](/forum/user/27423-thecorestylerz "View TheCoreStylerz's Profile")  *[Show "history" wich contains PayPal transactions](/forum/4-how-to/863493-show-history-wich-contains-paypal-transactions#131660 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2 -- Joomla version -- : latest 2.5.x  Hi. I want to add some history data inside the user order page, like the transaction ID made with paypal. What rows and where i need to change?")* was created by *[TheCoreStylerz](/forum/user/27423-thecorestylerz "View TheCoreStylerz's Profile")*

-- url of the page with the problem -- : [ mywebsite.com/mypage](http://mywebsite.com/mypage)
-- HikaShop version -- : 2.2
-- Joomla version -- : latest 2.5.x

Hi.
I want to add some history data inside the user order page, like the transaction ID made with paypal.
What rows and where i need to change?

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

12 years 11 months ago [\#131664](#131664) by [TheCoreStylerz](/forum/user/27423-thecorestylerz "View TheCoreStylerz's Profile")  Replied by *[TheCoreStylerz](/forum/user/27423-thecorestylerz "View TheCoreStylerz's Profile")* on topic *[Show "history" wich contains PayPal transactions](/forum/4-how-to/863493-show-history-wich-contains-paypal-transactions#131664 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2 -- Joomla version -- : latest 2.5.x  Hi. I want to add some history data inside the user order page, like the transaction ID made with paypal. What rows and where i need to change?")*

Better in that way, adding the history below the order page:

[ ![h0126b3d.PNG](/forum/attachment/13570) ](/forum/attachment/13570 "h0126b3d.PNG")

This will be reallyt cool.

- [ ![h0126b3d.PNG](/forum/attachment/13570) ](/forum/attachment/13570 "h0126b3d.PNG") [ ](/forum/attachment/13570?download=1 "h0126b3d.PNG")

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

12 years 11 months ago [\#131678](#131678) by [TheCoreStylerz](/forum/user/27423-thecorestylerz "View TheCoreStylerz's Profile")  Replied by *[TheCoreStylerz](/forum/user/27423-thecorestylerz "View TheCoreStylerz's Profile")* on topic *[Show "history" wich contains PayPal transactions](/forum/4-how-to/863493-show-history-wich-contains-paypal-transactions#131678 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2 -- Joomla version -- : latest 2.5.x  Hi. I want to add some history data inside the user order page, like the transaction ID made with paypal. What rows and where i need to change?")*

Also, if possible to attach the transaction ID to the "confirmation" email?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg2MzQ5My1zaG93LWhpc3Rvcnktd2ljaC1jb250YWlucy1wYXlwYWwtdHJhbnNhY3Rpb25zP3RtcGw9bWFya2Rvd24=) 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: 86315
- Thank you received: 14276
-
-

12 years 11 months ago [\#131712](#131712) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Show "history" wich contains PayPal transactions](/forum/4-how-to/863493-show-history-wich-contains-paypal-transactions#131712 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2 -- Joomla version -- : latest 2.5.x  Hi. I want to add some history data inside the user order page, like the transaction ID made with paypal. What rows and where i need to change?")*

There's no easy way to do that.
You'll have to edit the file "show" of the view "order" via the menu Display&gt;Views and add such code: Code:

&lt;?php $this-&gt;database = JFactory::getDBO(); $query='SELECT * FROM '.hikashop_table('history').' WHERE history_order_id='.$this-&gt;element-&gt;order_id.' ORDER BY history_created DESC'; $this-&gt;database-&gt;setQuery($query); $this-&gt;element-&gt;history = $this-&gt;database-&gt;loadObjectList(); $this-&gt;order =&amp; $this-&gt;element; ?&gt; &lt;legend&gt;&lt;?php echo JText::_('HISTORY'); ?&gt;&lt;/legend&gt; &lt;div class="hikashop_history_container"&gt; &lt;table id="hikashop_order_history_listing" class="hika_listing hika_table table table-striped table-hover"&gt; &lt;thead&gt; &lt;tr&gt; &lt;th class="title"&gt;&lt;?php echo JText::_('HIKA_TYPE'); ?&gt;&lt;/th&gt; &lt;th class="title"&gt;&lt;?php echo JText::_('ORDER_STATUS'); ?&gt;&lt;/th&gt; &lt;th class="title"&gt;&lt;?php echo JText::_('REASON'); ?&gt;&lt;/th&gt; &lt;th class="title"&gt;&lt;?php echo JText::_('HIKA_USER').' / '.JText::_('IP'); ?&gt;&lt;/th&gt; &lt;th class="title"&gt;&lt;?php echo JText::_('DATE'); ?&gt;&lt;/th&gt; &lt;th class="title"&gt;&lt;?php echo JText::_('INFORMATION'); ?&gt;&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;?php $userClass = hikashop_get('class.user'); foreach($this-&gt;order-&gt;history as $k =&gt; $history) { ?&gt; &lt;tr&gt; &lt;td&gt;&lt;?php $val = preg_replace('#[^a-z0-9]#i','_',strtoupper($history-&gt;history_type)); $trans = JText::_($val); if($val != $trans) $history-&gt;history_type = $trans; echo $history-&gt;history_type; ?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo hikashop_orderStatus($history-&gt;history_new_status); ?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo $history-&gt;history_reason; ?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php if(!empty($history-&gt;history_user_id)){ $user = $userClass-&gt;get($history-&gt;history_user_id); echo $user-&gt;username.' / '; } echo $history-&gt;history_ip; ?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo hikashop_getDate($history-&gt;history_created,'%Y-%m-%d %H:%M'); ?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo $history-&gt;history_data; ?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;?php } ?&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/div&gt;

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

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

[](#top)
