Skip to main content

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

More
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.

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #305436 by nicolas
Hi,

You would have to change the line:
Code:
$extraFilters = array('order_status' => '', 'order_range' => 'last 6 months');
to:
Code:
$extraFilters = array('order_status' => '', 'order_range' => '');
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 or Create an account to join the conversation.

More
7 years 5 months ago #305468 by panefs

Please Log in or Create an account to join the conversation.

Time to create page: 0.171 seconds
Powered by Kunena Forum