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

#   Unix timestamp mass action filter

##

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

Less More

- Posts: 68
- Thank you received: 8
-
-

12 years 10 months ago [\#139866](#139866) by [MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")  *[Unix timestamp mass action filter](/forum/37-import-export-csv-xls/865019-unix-timestamp-mass-action-filter#139866 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi I have created a mass action to export order history to a CSV and I would like to filter it by the date column (by month specifically) but the date is stored in the database as a Unix timestamp. Is there anyway to get the massaction to export orders for one month only?")* was created by *[MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")*

-- url of the page with the problem -- : [ mywebsite.com/mypage](http://mywebsite.com/mypage)
-- HikaShop version -- : 2.2.3
-- Joomla version -- : 3.2
-- PHP version -- : 5.3.3
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

Hi I have created a mass action to export order history to a CSV and I would like to filter it by the date column (by month specifically) but the date is stored in the database as a Unix timestamp.
Is there anyway to get the massaction to export orders for one month only?

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 10 months ago [\#139873](#139873) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Unix timestamp mass action filter](/forum/37-import-export-csv-xls/865019-unix-timestamp-mass-action-filter#139873 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi I have created a mass action to export order history to a CSV and I would like to filter it by the date column (by month specifically) but the date is stored in the database as a Unix timestamp. Is there anyway to get the massaction to export orders for one month only?")*

Hi,

Actually it's not possible to filter by month by selecting a month.
You have to filter on the created_date, and set a date &gt; to a defined timestamp.

I will add this on our TODO list.

The following user(s) said Thank You: [MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")

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

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

Less More

- Posts: 68
- Thank you received: 8
-
-

12 years 10 months ago [\#139909](#139909) by [MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")  Replied by *[MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")* on topic *[Unix timestamp mass action filter](/forum/37-import-export-csv-xls/865019-unix-timestamp-mass-action-filter#139909 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi I have created a mass action to export order history to a CSV and I would like to filter it by the date column (by month specifically) but the date is stored in the database as a Unix timestamp. Is there anyway to get the massaction to export orders for one month only?")*

Thanks thats what I thought.

Perhaps as a temporary fix you could just add a range operator to the filters so we can enter a timecode range.
Will keep an eye out in the future.

Thanks a lot,

Nathan

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 10 months ago [\#139933](#139933) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Unix timestamp mass action filter](/forum/37-import-export-csv-xls/865019-unix-timestamp-mass-action-filter#139933 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi I have created a mass action to export order history to a CSV and I would like to filter it by the date column (by month specifically) but the date is stored in the database as a Unix timestamp. Is there anyway to get the massaction to export orders for one month only?")*

Hi,

By range you mean interval, right ?
If it is, you can add two filters in one mass action to just get the order of a specific month.
One filter for orders where created_date is &gt; specified timestamp (ex timestamp for 1 december)
And another one where created_date is &lt; specified timestamps (ex timestamp for 31 december)

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

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

Less More

- Posts: 68
- Thank you received: 8
-
-

12 years 10 months ago [\#140113](#140113) by [MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")  Replied by *[MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")* on topic *[Unix timestamp mass action filter](/forum/37-import-export-csv-xls/865019-unix-timestamp-mass-action-filter#140113 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi I have created a mass action to export order history to a CSV and I would like to filter it by the date column (by month specifically) but the date is stored in the database as a Unix timestamp. Is there anyway to get the massaction to export orders for one month only?")*

Yes, that works fine for me.

Thanks

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

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

Less More

- Posts: 68
- Thank you received: 8
-
-

12 years 10 months ago [\#140114](#140114) by [MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")  Replied by *[MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")* on topic *[Unix timestamp mass action filter](/forum/37-import-export-csv-xls/865019-unix-timestamp-mass-action-filter#140114 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi I have created a mass action to export order history to a CSV and I would like to filter it by the date column (by month specifically) but the date is stored in the database as a Unix timestamp. Is there anyway to get the massaction to export orders for one month only?")*

One more small thing. It's nice how the "order_created" and "order_modified" fields are converted from a timestamp to a date when they are exported. The field "order_invoice_created" on the other hand stays as a timestamp. Is there any way to fix this as our accountants dont really know how to read a timestamp.

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

Less More

- Posts: 86593
- Thank you received: 14334
-
-

12 years 10 months ago [\#140134](#140134) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Unix timestamp mass action filter](/forum/37-import-export-csv-xls/865019-unix-timestamp-mass-action-filter#140134 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi I have created a mass action to export order history to a CSV and I would like to filter it by the date column (by month specifically) but the date is stored in the database as a Unix timestamp. Is there anyway to get the massaction to export orders for one month only?")*

Change the line:
$timestamps = array('product_sale_start','product_sale_end','product_last_seen_date');
to:
$timestamps = array('product_sale_start','product_sale_end','product_last_seen_date','order_invoice_created');

in the file administrator/components/com_hikashop/classes/massaction.php and that should do it.

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

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