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

  • Posts: 105
  • Thank you received: 6
  • Hikashop Business
5 years 7 months ago #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 "In total" setting is selected by default?
Thanks.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
5 years 7 months ago #305436

Hi,

You would have to change the line:

$extraFilters = array('order_status' => '', 'order_range' => 'last 6 months');
to:
$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.

  • Posts: 105
  • Thank you received: 6
  • Hikashop Business
5 years 7 months ago #305468

It works. Merci!

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

Time to create page: 0.055 seconds
Powered by Kunena Forum