Dashboard: Current Orders -- What does that panel do?

  • Posts: 284
  • Thank you received: 6
6 years 3 weeks ago #299886

-- HikaShop version -- : 4
-- Joomla version -- : 3.13

What exactly does the Current Orders panel in the Dashboard do?

It is frustrating the hell out of some of my customers because they see the numbers go up then a few hours disappear.

Last edit: 6 years 2 weeks ago by MSTACE.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
6 years 3 weeks ago #299892

Hi,

It shows the number of orders today on your website.

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

  • Posts: 284
  • Thank you received: 6
6 years 3 weeks ago #299896

Is this on a 24-hour FIFO (first in first out) list?

The client says that it fills up then a few hours later disappears.

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

  • Posts: 284
  • Thank you received: 6
6 years 3 weeks ago #299899

What is the CRITERIA for orders to show up in that box?
Because I have made test orders and NOTHING shows there.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
6 years 3 weeks ago #299898

Hi,

No, the counting starts the current day at midnight based on the timezone configured in your Joomla configuration and the time and timezone of your PHP / server.
So if some timezone is not configured properly, it's possible that the reset happens in the middle of the day.

Also, only orders with their status equal to one of the enable statuses under the "statistics" column of the System>Order statuses menu will be counted.

Last edit: 6 years 3 weeks ago by nicolas.

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

  • Posts: 284
  • Thank you received: 6
6 years 3 weeks ago #299933

I have verified that JOOMLA, cPANEL, and the SERVER are all set and showing the same time and timezone.
The Order Statuses display flag (statistics) is correctly set.
The Order status are CONFIRMED.

Yet the Current Orders panel is still blank.

Does this panel update on a chron?
(I noticed that manually triggering the chron task did not change the dashboard either.)

The below image should show two (2) current orders as today is 1 Nov but it is showing '0'.
I am having this issue with several Hikashop installs.
This site does not show any current orders and the other site order status does not seem to be consistent with the actual orders (but I cannot verify it because each time I look, the current orders are also '0').

Attachments:
Last edit: 6 years 3 weeks ago by MSTACE.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
6 years 3 weeks ago #299960

Hi,

No, it doesn't require the cron.
Note also that if you don't have the "created" status enabled under the "statistics" column, the dashboard will base its calculations on the creation date of the invoice. So if you don't have the "confirmed" status enabled for the "invoice" column, it could explain your situation as you wouldn't have any invoice creation date for the orders even though they are confirmed.
So please check on that.
I personally check the situation on my end and as soon as I had an order confirmed, it was counted in that "current orders" count.
And this is with the default statuses that are present when HikaShop is installed.

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

  • Posts: 284
  • Thank you received: 6
6 years 3 weeks ago #299964

These are standard installations. Nothing has been changed from default.

In default, the Created status is not selected under Statistics.
But even turning it on, the dashboard shows nothing.

My client said that the Current Order dashboard clear itself at around 1pm, not midnight.

I have verified the following:
- Joomla (the CMS) is correctly set to Auckland timezone.
- Logging into SSH (root), the server is also showing Auckland timezone.

Yet the 'reset' is happening 13 hours later.

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

  • Posts: 284
  • Thank you received: 6
6 years 3 weeks ago #299967

More Info:

Notice on the screenshot a few posts back, that there are NO STATS at all?
No, Best Product, Best Customer, Best category?

Again, this is using the DEFAULTs in Hikashop.

But as soon as I turned on Created as one of the selected Statistics, that is now generating the rest of the statistics.

So it seems that there may be some default items that are not quite right.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
6 years 3 weeks ago #299994

Hi,

Since I'm not able to reproduce the problem on my end, I'll require that you provide a backend access and a FTP access to that website so that I can have a deeper look into the problem.
Please provide that along with a link to this thread via our contact form:
www.hikashop.com/support/contact-us.html

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

  • Posts: 284
  • Thank you received: 6
6 years 3 weeks ago #300006

Details sent.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
6 years 3 weeks ago #300085

Hi,

We got the accesses and the backend works fine. However, the FTP access doesn't as username/password are refused. Could you double check and resent them ?

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

  • Posts: 284
  • Thank you received: 6
6 years 3 weeks ago #300117

Sorry, FRANCE was blocked from the cPanel as too many attacks from there.
Try now or let me know what country to unblock.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
6 years 2 weeks ago #300162

Hi,

Thank you. I was able to debug the situation. There was indeed a problem with how the timezone offset was handled.
As far as I can see it's now working fine on your website with the patch I made.
Please test further in the next few days and check that it corresponds to the orders on your website at different hours of the day.

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

  • Posts: 284
  • Thank you received: 6
6 years 2 weeks ago #300184

Will do, thanks.

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

  • Posts: 284
  • Thank you received: 6
6 years 2 weeks ago #300299

The patch seems to be working fine.

Can you post it so that I can patch another install on the same server?

Thanks.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
6 years 2 weeks ago #300300

Hi,

The patch is quite big. Basically, you need to replace the file administrator/components/com_hikashop/classes/statistics.php
Note that the patch has been added as a hot patch on our end.
So you can just download the install package available on our website and install it on your website to get the patch.

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

  • Posts: 284
  • Thank you received: 6
6 years 2 weeks ago #300306

Great.
Thank you.

I did some checking on Hikashop installs on some of my other servers.
None of them seem to be working quite right (with the statistics dashboard).
Perhaps this is a cPanel oddity?

The Timezone was correctly changed in Joomla, the server, and PHP.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
6 years 2 weeks ago #300307

Hi,

I'm not sure what you mean. Did you add the patch to them ?
How does it not work quite right ?

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

  • Posts: 284
  • Thank you received: 6
6 years 2 weeks ago #300347

Sorry, I was speaking in terms of BEFORE adding the patch.
Your patch is working.

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

Time to create page: 0.094 seconds
Powered by Kunena Forum