[Skip to main content](#vessel-content)

#   Stats not showing in control panel

##

- **[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")**
- [![a2zcs's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33209.jpg)](/forum/user/33209-a2zcs "View a2zcs's Profile") Topic Author
- [ Offline](/forum/user/33209-a2zcs)

Less More

- Posts: 298
- Thank you received: 7
-
-

12 years 1 month ago [\#174295](#174295) by [a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")  *[Stats not showing in control panel](/forum/20-market-feature-requests/872085-stats-not-showing-in-control-panel#174295 "-- url of the page with the problem -- :   northeastcoffeeco.com/index.php/control-panel  -- HikaShop version -- : 3.3.3 -- HikaMarket version -- : 1.4.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Firefox 32.0.3  We've had order this month, but for some reason the Total Orders, Average Order Price, Orders this month, Orders and products sale comparions stats are all blank. The Total products and last orders seem to be fine.  Any ideas?")* was created by *[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")*

-- url of the page with the problem -- : [ northeastcoffeeco.com/index.php/control-panel](http://northeastcoffeeco.com/index.php/control-panel)
-- HikaShop version -- : 3.3.3
-- HikaMarket version -- : 1.4.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.3.28
-- Browser(s) name and version -- : Firefox 32.0.3

We've had order this month, but for some reason the Total Orders, Average Order Price, Orders this month, Orders and products sale comparions stats are all blank. The Total products and last orders seem to be fine.

Any ideas?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg3MjA4NS1zdGF0cy1ub3Qtc2hvd2luZy1pbi1jb250cm9sLXBhbmVsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 1 month ago [\#174306](#174306) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Stats not showing in control panel](/forum/20-market-feature-requests/872085-stats-not-showing-in-control-panel#174306 "-- url of the page with the problem -- :   northeastcoffeeco.com/index.php/control-panel  -- HikaShop version -- : 3.3.3 -- HikaMarket version -- : 1.4.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Firefox 32.0.3  We've had order this month, but for some reason the Total Orders, Average Order Price, Orders this month, Orders and products sale comparions stats are all blank. The Total products and last orders seem to be fine.  Any ideas?")*

Hi,

What are the statuses of these orders ?
HikaMarket will only count the orders with a "valid" status (the confirmed orders).

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg3MjA4NS1zdGF0cy1ub3Qtc2hvd2luZy1pbi1jb250cm9sLXBhbmVsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")**
- [![a2zcs's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33209.jpg)](/forum/user/33209-a2zcs "View a2zcs's Profile") Topic Author
- [ Offline](/forum/user/33209-a2zcs)

Less More

- Posts: 298
- Thank you received: 7
-
-

12 years 1 month ago [\#174337](#174337) by [a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")  Replied by *[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")* on topic *[Stats not showing in control panel](/forum/20-market-feature-requests/872085-stats-not-showing-in-control-panel#174337 "-- url of the page with the problem -- :   northeastcoffeeco.com/index.php/control-panel  -- HikaShop version -- : 3.3.3 -- HikaMarket version -- : 1.4.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Firefox 32.0.3  We've had order this month, but for some reason the Total Orders, Average Order Price, Orders this month, Orders and products sale comparions stats are all blank. The Total products and last orders seem to be fine.  Any ideas?")*

Ok, probably the problem. the client needed an additional/custom status of "Processed". Is there a way to have Hikashop include the orders with that status in the reporting?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg3MjA4NS1zdGF0cy1ub3Qtc2hvd2luZy1pbi1jb250cm9sLXBhbmVsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 1 month ago -  12 years 1 month ago [\#174338](#174338) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Stats not showing in control panel](/forum/20-market-feature-requests/872085-stats-not-showing-in-control-panel#174338 "-- url of the page with the problem -- :   northeastcoffeeco.com/index.php/control-panel  -- HikaShop version -- : 3.3.3 -- HikaMarket version -- : 1.4.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Firefox 32.0.3  We've had order this month, but for some reason the Total Orders, Average Order Price, Orders this month, Orders and products sale comparions stats are all blank. The Total products and last orders seem to be fine.  Any ideas?")*

Hi,

Right, the option "valid order statuses" is in the "market" tab.
The best is to add a new configuration option (that I will add also in the next release).
In the file "administrator/components/com_hikamarket/views/config/tmpl/main.php", you can replace Code:

&lt;tr&gt; &lt;td class="key"&gt;&lt;?php echo JText::_('HIKAM_DISPLAY_ORDER_STATISTICS'); ?&gt;&lt;/td&gt;

By Code:

&lt;tr&gt; &lt;td class="key"&gt;&lt;?php echo JText::_('HIKAM_VALID_ORDER_STATUSES'); ?&gt;&lt;/td&gt; &lt;td&gt; &lt;input id="stats_valid_order_statuses" type="text" name="config[stats_valid_order_statuses]" value="&lt;?php echo $this-&gt;escape( @$this-&gt;config-&gt;get('stats_valid_order_statuses', 'confirmed,shipped') ); ?&gt;" /&gt; &lt;?php echo $this-&gt;popup-&gt;display( '&lt;img style="vertical-align:middle;" src="'.HIKAMARKET_IMAGES.'icon-16/edit.png" alt="'.JText::_('EDIT').'"/&gt;', 'EDIT', hikamarket::completeLink('shop.category&amp;task=selectstatus&amp;control=valid_order_statuses&amp;values='. $this-&gt;escape( @$this-&gt;config-&gt;get('stats_valid_order_statuses', 'confirmed,shipped') ), true), 'link_valid_order_statuses', 760, 480, '', '', 'link' ); ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="key"&gt;&lt;?php echo JText::_('HIKAM_DISPLAY_ORDER_STATISTICS'); ?&gt;&lt;/td&gt;

And in the file "administrator/components/com_hikamarket/classes/statistics.php" you can replace Code:

$valid_order_statuses = explode(',', $this-&gt;config-&gt;get('valid_order_statuses', 'confirmed,shipped'));

By Code:

$valid_order_statuses = explode(',', $this-&gt;config-&gt;get('stats_valid_order_statuses', 'confirmed,shipped'));

So you will be able to change the configuration option "valid order status" in the "statistics" section in order to choose which order statuses will be used in the statistic processing.

Regards,

---

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

Last edit: 12 years 1 month ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg3MjA4NS1zdGF0cy1ub3Qtc2hvd2luZy1pbi1jb250cm9sLXBhbmVsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")**
- [![a2zcs's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33209.jpg)](/forum/user/33209-a2zcs "View a2zcs's Profile") Topic Author
- [ Offline](/forum/user/33209-a2zcs)

Less More

- Posts: 298
- Thank you received: 7
-
-

12 years 1 month ago [\#174653](#174653) by [a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")  Replied by *[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")* on topic *[Stats not showing in control panel](/forum/20-market-feature-requests/872085-stats-not-showing-in-control-panel#174653 "-- url of the page with the problem -- :   northeastcoffeeco.com/index.php/control-panel  -- HikaShop version -- : 3.3.3 -- HikaMarket version -- : 1.4.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Firefox 32.0.3  We've had order this month, but for some reason the Total Orders, Average Order Price, Orders this month, Orders and products sale comparions stats are all blank. The Total products and last orders seem to be fine.  Any ideas?")*

I thought this had fixed the problem, but on closer inspection the Orders graph is only showing the first sale of each day instead of a total sales for the day.
Thoughts?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg3MjA4NS1zdGF0cy1ub3Qtc2hvd2luZy1pbi1jb250cm9sLXBhbmVsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 1 month ago [\#174673](#174673) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Stats not showing in control panel](/forum/20-market-feature-requests/872085-stats-not-showing-in-control-panel#174673 "-- url of the page with the problem -- :   northeastcoffeeco.com/index.php/control-panel  -- HikaShop version -- : 3.3.3 -- HikaMarket version -- : 1.4.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Firefox 32.0.3  We've had order this month, but for some reason the Total Orders, Average Order Price, Orders this month, Orders and products sale comparions stats are all blank. The Total products and last orders seem to be fine.  Any ideas?")*

Hi,

Right ! I've totally missed it
(The "sales_sum" one have the code, I really don't know why I did not update this one).

Please edit the file "administrator/components/com_hikamarket/classes/statistics.php" and replace Code:

'value' =&gt; (($vendor_id == 0) ? 'hk_order.order_full_price as value' : 'CASE WHEN hk_order.order_vendor_price &gt;= 0 THEN hk_order.order_vendor_price ELSE (hk_order.order_full_price + hk_order.order_vendor_price) END as value'),

By Code:

'value' =&gt; (($vendor_id == 0) ? 'SUM(hk_order.order_full_price) as value' : 'SUM( CASE WHEN hk_order.order_vendor_price &gt;= 0 THEN hk_order.order_vendor_price ELSE (hk_order.order_full_price + hk_order.order_vendor_price) END ) as value'),

It should fix the issue.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIwLW1hcmtldC1mZWF0dXJlLXJlcXVlc3RzLzg3MjA4NS1zdGF0cy1ub3Qtc2hvd2luZy1pbi1jb250cm9sLXBhbmVsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.055 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
