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

#   Order - Filter Status - retain between sessions

##

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

Less More

- Posts: 52
- Thank you received: 6
-
-

4 years 5 months ago [\#342101](#342101) by [dhusband](/forum/user/60503-dhusband "View dhusband's Profile")  *[Order - Filter Status - retain between sessions](/forum/35-orders-management/904503-order-filter-status-retain-between-sessions#342101 "-- HikaShop version -- : 4.6.0 -- Joomla version -- : 3.10.9 -- PHP version -- : 7.4.29 -- Browser(s) name and version -- : Firefox  I have a number of different Order statuses for different stages in the order journey. Once an order is complete, I rarely need to see it, therefore I filter to just open order status. When you close the browser it loses what you have set the filter to and you have to work through setting all the open statuses again. Is it possible the options set in the filter could be remembered between sessions?  Thank you David")* was created by *[dhusband](/forum/user/60503-dhusband "View dhusband's Profile")*

-- HikaShop version -- : 4.6.0
-- Joomla version -- : 3.10.9
-- PHP version -- : 7.4.29
-- Browser(s) name and version -- : Firefox

I have a number of different Order statuses for different stages in the order journey. Once an order is complete, I rarely need to see it, therefore I filter to just open order status.
When you close the browser it loses what you have set the filter to and you have to work through setting all the open statuses again.
Is it possible the options set in the filter could be remembered between sessions?

Thank you
David

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

4 years 5 months ago [\#342106](#342106) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order - Filter Status - retain between sessions](/forum/35-orders-management/904503-order-filter-status-retain-between-sessions#342106 "-- HikaShop version -- : 4.6.0 -- Joomla version -- : 3.10.9 -- PHP version -- : 7.4.29 -- Browser(s) name and version -- : Firefox  I have a number of different Order statuses for different stages in the order journey. Once an order is complete, I rarely need to see it, therefore I filter to just open order status. When you close the browser it loses what you have set the filter to and you have to work through setting all the open statuses again. Is it possible the options set in the filter could be remembered between sessions?  Thank you David")*

Hi,

There is no option for that.
However, what you can do is this:
- change the line: Code:

$pageInfo-&gt;filter-&gt;filter_status = $app-&gt;getUserStateFromRequest($this-&gt;paramBase.".filter_status",'filter_status', '','array');

to: Code:

$pageInfo-&gt;filter-&gt;filter_status = $app-&gt;getUserStateFromRequest($this-&gt;paramBase.".filter_status",'filter_status',$config-&gt;get('default_order_status_on_order_listing', ''),'array');

in the file administrator/components/com_hikashop/views/order/view.html.php
- Then, open the table hikashop_config in your database and add an entry with the namekey default_order_status_on_order_listing and the value being the namekey of the order status you want to filter your orders listing by default.
That way, when you arrive on the orders listing it will be filtered by that order status by default.
We'll add that code modification on our end so that you won't loose it when you update your HikaShop.

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

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

Less More

- Posts: 52
- Thank you received: 6
-
-

4 years 5 months ago [\#342119](#342119) by [dhusband](/forum/user/60503-dhusband "View dhusband's Profile")  Replied by *[dhusband](/forum/user/60503-dhusband "View dhusband's Profile")* on topic *[Order - Filter Status - retain between sessions](/forum/35-orders-management/904503-order-filter-status-retain-between-sessions#342119 "-- HikaShop version -- : 4.6.0 -- Joomla version -- : 3.10.9 -- PHP version -- : 7.4.29 -- Browser(s) name and version -- : Firefox  I have a number of different Order statuses for different stages in the order journey. Once an order is complete, I rarely need to see it, therefore I filter to just open order status. When you close the browser it loses what you have set the filter to and you have to work through setting all the open statuses again. Is it possible the options set in the filter could be remembered between sessions?  Thank you David")*

That is brilliant.
Is possible to have multiple statuses as default? Can they be entered separated by ',' or another delimiter?

Thank you for the quick reply.

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

4 years 5 months ago [\#342122](#342122) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order - Filter Status - retain between sessions](/forum/35-orders-management/904503-order-filter-status-retain-between-sessions#342122 "-- HikaShop version -- : 4.6.0 -- Joomla version -- : 3.10.9 -- PHP version -- : 7.4.29 -- Browser(s) name and version -- : Firefox  I have a number of different Order statuses for different stages in the order journey. Once an order is complete, I rarely need to see it, therefore I filter to just open order status. When you close the browser it loses what you have set the filter to and you have to work through setting all the open statuses again. Is it possible the options set in the filter could be remembered between sessions?  Thank you David")*

Hi,

I've never tried but I don't think it would work. You can try it.

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

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

Less More

- Posts: 52
- Thank you received: 6
-
-

4 years 5 months ago [\#342152](#342152) by [dhusband](/forum/user/60503-dhusband "View dhusband's Profile")  Replied by *[dhusband](/forum/user/60503-dhusband "View dhusband's Profile")* on topic *[Order - Filter Status - retain between sessions](/forum/35-orders-management/904503-order-filter-status-retain-between-sessions#342152 "-- HikaShop version -- : 4.6.0 -- Joomla version -- : 3.10.9 -- PHP version -- : 7.4.29 -- Browser(s) name and version -- : Firefox  I have a number of different Order statuses for different stages in the order journey. Once an order is complete, I rarely need to see it, therefore I filter to just open order status. When you close the browser it loses what you have set the filter to and you have to work through setting all the open statuses again. Is it possible the options set in the filter could be remembered between sessions?  Thank you David")*

I have tried , and ;
Neither worked, a filter was applied, but not a valid one.
Is this something that could be done?

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

4 years 5 months ago [\#342158](#342158) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order - Filter Status - retain between sessions](/forum/35-orders-management/904503-order-filter-status-retain-between-sessions#342158 "-- HikaShop version -- : 4.6.0 -- Joomla version -- : 3.10.9 -- PHP version -- : 7.4.29 -- Browser(s) name and version -- : Firefox  I have a number of different Order statuses for different stages in the order journey. Once an order is complete, I rarely need to see it, therefore I filter to just open order status. When you close the browser it loses what you have set the filter to and you have to work through setting all the open statuses again. Is it possible the options set in the filter could be remembered between sessions?  Thank you David")*

Hi,

Try changing the same line of code to: Code:

$pageInfo-&gt;filter-&gt;filter_status = $app-&gt;getUserStateFromRequest($this-&gt;paramBase.".filter_status",'filter_status',explode(',',$config-&gt;get('default_order_status_on_order_listing', '')),'array');

That should allow you to use the comma as a separator in the database.

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

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

Less More

- Posts: 52
- Thank you received: 6
-
-

4 years 5 months ago [\#342178](#342178) by [dhusband](/forum/user/60503-dhusband "View dhusband's Profile")  Replied by *[dhusband](/forum/user/60503-dhusband "View dhusband's Profile")* on topic *[Order - Filter Status - retain between sessions](/forum/35-orders-management/904503-order-filter-status-retain-between-sessions#342178 "-- HikaShop version -- : 4.6.0 -- Joomla version -- : 3.10.9 -- PHP version -- : 7.4.29 -- Browser(s) name and version -- : Firefox  I have a number of different Order statuses for different stages in the order journey. Once an order is complete, I rarely need to see it, therefore I filter to just open order status. When you close the browser it loses what you have set the filter to and you have to work through setting all the open statuses again. Is it possible the options set in the filter could be remembered between sessions?  Thank you David")*

Brilliant!
I can now clearly see my open orders as soon as I open the orders screen.
Thank you!

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

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

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