3.0.0 dashboard question

  • Posts: 382
  • Thank you received: 77
7 years 8 months ago #263720

-- HikaShop version -- : 3.0.0
-- Joomla version -- : 3.6.5

Hi,

I have read this thread https://www.hikashop.com/forum/reports-statistics/889000-how-to-setting-hikashop-dashboard.html attentively.

The new dashboard uses numbers and dates of invoices.
I don't use invoices, there are only data of orders .
In the legacy mode the dashboard is well displayed.
I'm trying to switch the site to the new system. And I want to use the new dashboard.

Jerome wrote:

Nicolas added the setting "stats_valid_order_statuses" in the columns available in the backend order status listing.
So you should now be able to select which order statuses are use for the stats.
If you put the "created" status in that list, the system will base his search on "order_created" instead of "order_invoice_created".

But, there is no the setting "stats_valid_order_statuses" in the backend order status listing. I have the newest version 3.0.0.

Will there be this option in the near future? Or the new dashboard will always use only invoices?

Best regards,

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
7 years 8 months ago #263727

Hi,

As jerome stated, we've added that "statistic" column in the order statuses listing. But it's been added only 1 week ago, based on the feedbacks we got.
So if you downloaded the install package of the 3.0.0 before that, it's normal you don't see it. You can either wait the next version to get the column, or download again the install package on our website and install it again on your website to get it.
Note that this column will only appear with the "dashboard legacy" setting turned off (since otherwise you see the widget dashboard where that setting is irrelevant).

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

  • Posts: 382
  • Thank you received: 77
7 years 8 months ago #263810

Hi,

My version was downloaded this morning - com_hikashop_business_v3.0.0_2017-03-01_01-15-43.tar.gz

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 8 months ago #263812

Hi,

You do not have any status for "invoices".
Which mean that your orders do not have an "invoice number" when they are confirmed
See : www.hikashop.com/forum/reports-statistic...ashboard.html#263471

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 382
  • Thank you received: 77
7 years 8 months ago #263866

Hi, Jerome!

Jerome wrote: You do not have any status for "invoices".


That is the content of my question.
I understand clearly that if I turn on statuses for invoices that will be created number and date of invoices and then the stats will work.

But I don't use invoices. All I have is the orders. This is quite enough for our domestic sales.


By the way, I think there is a bug in \administrator\components\com_hikashop\classes\statistics.php
It's the reason of the wrong stats for current orders.
			case 'this.week':
				$ret['start'] = mktime(0, 0, 0, $now[0], $now[1], $now[2]) - (date('N')-1)*24*3600 + $this->timeoffset;
				$ret['end'] = mktime(23, 59, 59, $now[0], $now[1], $now[2]) + $this->timeoffset;
				break;
			case 'this.day':
				$ret['start'] = mktime(0, 0, 0, $now[0], $now[1], $now[2]) - (date('N')-1)*24*3600 + $this->timeoffset;
				$ret['end'] = mktime(23, 59, 59, $now[0], $now[1], $now[2]) + $this->timeoffset;
				break;
The code for 'this.day' is equal the code for 'this.week'.
I think for 'this.day' need like it:
case 'this.day':
				$ret['start'] = mktime(0, 0, 0, $now[0], $now[1], $now[2]) + $this->timeoffset;
				$ret['end'] = mktime(23, 59, 59, $now[0], $now[1], $now[2]) + $this->timeoffset;
				break;

Best regards

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 8 months ago #263885

Hi,

Still in the thread : www.hikashop.com/forum/reports-statistic...ashboard.html#263471

Nicolas added the setting "stats_valid_order_statuses" in the columns available in the backend order status listing.
So you should now be able to select which order statuses are use for the stats.
If you put the "created" status in that list, the system will base his search on "order_created" instead of "order_invoice_created".


Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 382
  • Thank you received: 77
7 years 8 months ago #263984

Thank you, Jerome and Nicolas.
The fresh version has resolved my problem with the dashboard.

But you didn't pay attention on my previous message about a bug in \administrator\components\com_hikashop\classes\statistics.php.

The statistics of "this day" isn't correct yet. Sorry, if I am not right.

Best regards,

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 8 months ago #264022

Hi,

Oh yes, that's right. The "this.day" have the same content than "this.week".
I'll push the patch.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: almika

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

Time to create page: 0.062 seconds
Powered by Kunena Forum