- Posts: 105
- Thank you received: 6
User control panel: Change default time period for checking past orders
7 years 5 months ago #305432
by panefs
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.
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 or Create an account to join the conversation.
7 years 5 months ago #305436
by nicolas
Replied by nicolas on topic User control panel: Change default time period for checking past orders
Hi,
You would have to change the line:
to:
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.
You would have to change the line:
Code:
$extraFilters = array('order_status' => '', 'order_range' => 'last 6 months');
Code:
$extraFilters = array('order_status' => '', 'order_range' => '');
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 or Create an account to join the conversation.
7 years 5 months ago #305468
by panefs
Replied by panefs on topic User control panel: Change default time period for checking past orders
It works. Merci!
Please Log in or Create an account to join the conversation.
Time to create page: 0.171 seconds