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

#   Pull data from hikashop\_history table

##

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

Less More

- Posts: 99
- Thank you received: 5
-
-

3 years 6 months ago [\#351834](#351834) by [byoguru](/forum/user/11107-byoguru "View byoguru's Profile")  *[Pull data from hikashop\_history table](/forum/35-orders-management/906420-pull-data-from-hikashop-history-table#351834 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 3.10.11 -- PHP version -- : 8.0.28  Hello, We are wishing to search the hikashop&#95;history table to get some information from multiple orders. The hikashop&#95;history is shown per order on the order details page. We would like to query this table. Is there a method to do this using REPORTS and/or MASS ACTIONS?  The issue we face is the order is tagged with the last action change and so if an order is paid after it is shipped then that order will not be shown in a list of shipped orders - as the last moficiation was set to 'paid'.  We would like to get a list of all shipped orders even if the last modification is something else after the order has been shipped. Currently we are unable / do not know how to achieve this.  I cannot seem to locate the table in the Hikashop Admin UI in Mass Action or Reports I can see the table in phpMyAdmin however I do not understand how to get the date of modification.  Please advise.")* was created by *[byoguru](/forum/user/11107-byoguru "View byoguru's Profile")*

-- HikaShop version -- : 4.7.2
-- Joomla version -- : 3.10.11
-- PHP version -- : 8.0.28

Hello,
We are wishing to search the hikashop_history table to get some information from multiple orders.
The hikashop_history is shown per order on the order details page. We would like to query this table.
Is there a method to do this using REPORTS and/or MASS ACTIONS?

The issue we face is the order is tagged with the last action change and so if an order is paid after it is shipped then that order will not be shown in a list of shipped orders - as the last moficiation was set to 'paid'.

We would like to get a list of all shipped orders even if the last modification is something else after the order has been shipped.
Currently we are unable / do not know how to achieve this.

I cannot seem to locate the table in the Hikashop Admin UI in Mass Action or Reports
I can see the table in phpMyAdmin however I do not understand how to get the date of modification.

Please advise.

- [ ![Screenshot2023-05-19at6.18.25PM.png](/forum/attachment/57074) ](/forum/attachment/57074 "...t6.18.25PM.png") [ ](/forum/attachment/57074?download=1 "...t6.18.25PM.png")

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

3 years 6 months ago -  3 years 6 months ago [\#351839](#351839) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Pull data from hikashop\_history table](/forum/35-orders-management/906420-pull-data-from-hikashop-history-table#351839 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 3.10.11 -- PHP version -- : 8.0.28  Hello, We are wishing to search the hikashop&#95;history table to get some information from multiple orders. The hikashop&#95;history is shown per order on the order details page. We would like to query this table. Is there a method to do this using REPORTS and/or MASS ACTIONS?  The issue we face is the order is tagged with the last action change and so if an order is paid after it is shipped then that order will not be shown in a list of shipped orders - as the last moficiation was set to 'paid'.  We would like to get a list of all shipped orders even if the last modification is something else after the order has been shipped. Currently we are unable / do not know how to achieve this.  I cannot seem to locate the table in the Hikashop Admin UI in Mass Action or Reports I can see the table in phpMyAdmin however I do not understand how to get the date of modification.  Please advise.")*

Hello,

Did you look the HikaShop **MassAction** system?
You can learn more thanks to **[ this documentation](https://www.hikashop.com/support/documentation/167-massaction-form.html)**.

In order to target order table, and especially the order statuses look my **red bordered part**, and to display or process on your order data have a look on the Action part, in the **green bordered part**, and select your required action among, if I understand you correctly you will use either "**Export a CSV file**" or "**Update the value**".
[ ![alt](https://i.ibb.co/NnPCqN8/screenshot.png) ](https://i.ibb.co/NnPCqN8/screenshot.png "alt")

Regards

Last edit: 3 years 6 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 99
- Thank you received: 5
-
-

3 years 6 months ago [\#351855](#351855) by [byoguru](/forum/user/11107-byoguru "View byoguru's Profile")  Replied by *[byoguru](/forum/user/11107-byoguru "View byoguru's Profile")* on topic *[Pull data from hikashop\_history table](/forum/35-orders-management/906420-pull-data-from-hikashop-history-table#351855 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 3.10.11 -- PHP version -- : 8.0.28  Hello, We are wishing to search the hikashop&#95;history table to get some information from multiple orders. The hikashop&#95;history is shown per order on the order details page. We would like to query this table. Is there a method to do this using REPORTS and/or MASS ACTIONS?  The issue we face is the order is tagged with the last action change and so if an order is paid after it is shipped then that order will not be shown in a list of shipped orders - as the last moficiation was set to 'paid'.  We would like to get a list of all shipped orders even if the last modification is something else after the order has been shipped. Currently we are unable / do not know how to achieve this.  I cannot seem to locate the table in the Hikashop Admin UI in Mass Action or Reports I can see the table in phpMyAdmin however I do not understand how to get the date of modification.  Please advise.")*

Hello Philip,
Thank you for your reply.

Did you look at the HikaShop MassAction system?
&gt;&gt; Yes, I have used MassAction and I understand (basically) how to use it.

Thank you for the detailed instruction to get the current order status - unfortunately this is not what we are wanting to achieve.
We do not need to make changes to the status. We want to get the information from the **hikashop\_history** table that is found in the ORDER DETAILS screen. We need to get the date for previously shipped statuses.

However, the table **hikashop\_history** is not available in MassActions - is there a way to add this table?

- [ ![Screenshot2023-05-19at6.18.25PM&#95;2023-05-20.png](/forum/attachment/57079) ](/forum/attachment/57079 "...2023-05-20.png") [ ](/forum/attachment/57079?download=1 "...2023-05-20.png")

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

3 years 6 months ago [\#351857](#351857) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Pull data from hikashop\_history table](/forum/35-orders-management/906420-pull-data-from-hikashop-history-table#351857 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 3.10.11 -- PHP version -- : 8.0.28  Hello, We are wishing to search the hikashop&#95;history table to get some information from multiple orders. The hikashop&#95;history is shown per order on the order details page. We would like to query this table. Is there a method to do this using REPORTS and/or MASS ACTIONS?  The issue we face is the order is tagged with the last action change and so if an order is paid after it is shipped then that order will not be shown in a list of shipped orders - as the last moficiation was set to 'paid'.  We would like to get a list of all shipped orders even if the last modification is something else after the order has been shipped. Currently we are unable / do not know how to achieve this.  I cannot seem to locate the table in the Hikashop Admin UI in Mass Action or Reports I can see the table in phpMyAdmin however I do not understand how to get the date of modification.  Please advise.")*

Hi,

You won't be able to do that with a mass action.
You'll have to do that in your PHPMyAdmin with a MySQL query: Code:

SELECT DISTINCT order.order_number, FROM_UNIXTIME(history.history_created) FROM #__hikashop_history as history INNER JOIN #__hikashop_order as order ON history.history_order_id = order.order_id WHERE history.history_new_status = 'shipped';

where #__ needs to be replaced by the table prefix of your Joomla configuration.

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

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

Less More

- Posts: 99
- Thank you received: 5
-
-

3 years 6 months ago [\#351871](#351871) by [byoguru](/forum/user/11107-byoguru "View byoguru's Profile")  Replied by *[byoguru](/forum/user/11107-byoguru "View byoguru's Profile")* on topic *[Pull data from hikashop\_history table](/forum/35-orders-management/906420-pull-data-from-hikashop-history-table#351871 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 3.10.11 -- PHP version -- : 8.0.28  Hello, We are wishing to search the hikashop&#95;history table to get some information from multiple orders. The hikashop&#95;history is shown per order on the order details page. We would like to query this table. Is there a method to do this using REPORTS and/or MASS ACTIONS?  The issue we face is the order is tagged with the last action change and so if an order is paid after it is shipped then that order will not be shown in a list of shipped orders - as the last moficiation was set to 'paid'.  We would like to get a list of all shipped orders even if the last modification is something else after the order has been shipped. Currently we are unable / do not know how to achieve this.  I cannot seem to locate the table in the Hikashop Admin UI in Mass Action or Reports I can see the table in phpMyAdmin however I do not understand how to get the date of modification.  Please advise.")*

Hi Nicolas,
Thank you for your directions, I have used them as start to get the data.
I appreciate your help.

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

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