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

#   User control panel: Change default time period for checking past orders

##

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

Less More

- Posts: 105
- Thank you received: 6
-
-
-

7 years 7 months ago [\#305432](#305432) by [panefs](/forum/user/35481-panefs "View panefs's Profile")  *[User control panel: Change default time period for checking past orders](/forum/33-customers/897250-user-control-panel-change-default-time-period-for-checking-past-orders#305432 "Hi. Currently when a user visits the Control Panel to check their past orders, Hikashop shows the orders that took place in the last 6 months (at least on my side). How can we change this behavior so that the &quot;In total&quot; setting is selected by default? Thanks.")* was created by *[panefs](/forum/user/35481-panefs "View panefs's Profile")*

Hi.
Currently when a user visits the Control Panel to check their past orders, Hikashop shows the orders that took place in the last 6 months (at least on my side). How can we change this behavior so that the "In total" setting is selected by default?
Thanks.

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

7 years 7 months ago [\#305436](#305436) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[User control panel: Change default time period for checking past orders](/forum/33-customers/897250-user-control-panel-change-default-time-period-for-checking-past-orders#305436 "Hi. Currently when a user visits the Control Panel to check their past orders, Hikashop shows the orders that took place in the last 6 months (at least on my side). How can we change this behavior so that the &quot;In total&quot; setting is selected by default? Thanks.")*

Hi,

You would have to change the line: Code:

$extraFilters = array('order_status' =&gt; '', 'order_range' =&gt; 'last 6 months');

to: Code:

$extraFilters = array('order_status' =&gt; '', 'order_range' =&gt; '');

in the file components/com_hikashop/views/order/view.html.php
We'll also add a hidden setting with the namekey orders_listing_default_range in the next version so that you can add an entry with that namekey and an empty value in the hikashop_config table via phpmyadmin to be able to set that without having to modify the code.

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

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

Less More

- Posts: 105
- Thank you received: 6
-
-
-

7 years 7 months ago [\#305468](#305468) by [panefs](/forum/user/35481-panefs "View panefs's Profile")  Replied by *[panefs](/forum/user/35481-panefs "View panefs's Profile")* on topic *[User control panel: Change default time period for checking past orders](/forum/33-customers/897250-user-control-panel-change-default-time-period-for-checking-past-orders#305468 "Hi. Currently when a user visits the Control Panel to check their past orders, Hikashop shows the orders that took place in the last 6 months (at least on my side). How can we change this behavior so that the &quot;In total&quot; setting is selected by default? Thanks.")*

It works. Merci!

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

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