Skip to main content

3.0.0 dashboard question

9 years 8 months ago #263720 by almika
-- HikaShop version -- : 3.0.0
-- Joomla version -- : 3.6.5

Hi,

I have read this thread www.hikashop.com/forum/reports-statistic...ashop-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:
Code:
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.

9 years 8 months ago #263727 by nicolas
Replied by nicolas on topic 3.0.0 dashboard question
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.

9 years 8 months ago #263810 by almika
Replied by almika on topic 3.0.0 dashboard question
Hi,

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

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

9 years 8 months ago #263812 by Jerome
Replied by Jerome on topic 3.0.0 dashboard question
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.

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

9 years 8 months ago #263866 by almika
Replied by almika on topic 3.0.0 dashboard question
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.
Code:
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:
Code:
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.

9 years 8 months ago #263885 by Jerome
Replied by Jerome on topic 3.0.0 dashboard question
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.

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

9 years 8 months ago #263984 by almika
Replied by almika on topic 3.0.0 dashboard question
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.

9 years 8 months ago #264022 by Jerome
Replied by Jerome on topic 3.0.0 dashboard question
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.
The following user(s) said Thank You: almika

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

Time to create page: 0.079 seconds
Powered by Kunena Forum