WooCommerce Analytics double count orders
-
Hi, the WooCommerce Analytics plugin show wrong amounts because it listing an order two times.
All plugins and wordpress are up to date.
The SQL table for stats only show one time an order.
Please help. (clear cache, change theme, disable plugins don’t solve the problem)
-
Hello netcomagency,
Thank you for contacting WooCommerce support.
Could you please share a screenshot of the WooCommerce Analytics, highlighting the issue you’re seeing?
Additionally, it would be helpful if you could provide a screenshot of the SQL table you’re referring to.
Once I have these details, I’ll be happy to assist you further in resolving the problem. π
Looking forward to your reply!


Hi !
Thanks for your help !
All Orders listed in double on analytics list. Amount are wrong.
The database is correct.Hi there,
Thanks for providing those screenshots, I can confirm that the DB table does seem to be correct whereas the order list is showing everything double. Could you also confirm if this is for all the orders in the report or just the ones shown in that screenshots?Would it also be possible to show the full report to see if the graphs / summary are also doubling the order numbers as well as the net sales being calculated twice? For example I tried to see how this looks on a local test site, but all the order information matches up in the report and I don’t see any doubles.
The reason I ask this is because the reports send several API requests to populate this screen so it would be helpful to know if the API requests are actually providing the duplicate data or if it’s just being rendered in the report as duplicates.
Would you also be able to check in your browser with the Chrome Developer Tools to see what the API data looks like? You can do so by opening the Chrome Developer Tools and then browsing to the Network tab and look for a requests to
orders?the filter can be used to find a request by name. You can then click on the request and view the Preview. Can you confirm if in that response it’s also returning double orders?Finally would you be able to confirm whether orders are being saved in HPOS and whether syncing is enabled? You can find these settings in WooCommerce > Settings > Advanced > Features
-
This reply was modified 1 year, 1 month ago by
Michael K.



Hi Mickael, this is captures. Thanks for your help !
Hi @netcomagency , thanks for the screenshots, they are very helpful.
In the orders table screenshot, I noticed there is a “N de facture” (“Invoice number”) column. That does not come from WooCommerce plugin.
In your Chrome Developer Tools screenshot, I also noticed there are some additional fields such as
invoice_number,order_costandorder_profitwhich also do not come from WooCommerce.Do you have some custom code or plugins that add the above column and data fields? I suspect they may be causing the issue that you are seeing.
Hi Gan Eng Chin,
plugin for invoices : PDF Invoices & Packing Slips for WooCommerce
plugin for order cost and profit : Cost of Goods for WooCommerce
thanks for your help.
Thanks @netcomagency.
I believe you are referring to PDF Invoices & Packing Slips for WooCommerce and Cost of Goods for WooCommerce. They are third-party plugins and I am not really familiar with them.
As a quick step to help you out, could you try deactivating and activating the plugins one by one, and see which plugin is causing the orders to be displayed twice in the table? This will help narrow down the issue. Once you have identified which plugin is causing the issue, you can try reaching out to the plugin developer or support team.
If the issue is caused by Cost of Goods for WooCommerce and you purchased the extension on woocommerce.com marketplace, you can reach out to the support team here: https://woocommerce.com/my-account/contact-support/?select=woocommerce-cost-of-goods.
I hope this helps. Let us know how it goes.
Hi !
Plugins deactivated but same problem.
Thanks for your help.
Thanks for running the test to deactivate the plugins. Can I ask to confirm if cache was also cleared when the plugins were deactivated? The reason I ask is because Analytic reports rely heavily on cache, so even if plugins are deactivated it could still be loading from the cache.
I’d recommend to use a plugin like Transients Manager to clear the cache, as well as ensure the browser cache is fully refreshed when loading the analytics page to ensure it’s not using any cached JavaScript. In this case reloading JavaScript is particularly important, as you mentioned that the API responses aren’t showing duplicates in the data.
Another alternative to try is to switch to a custom date range covering a smaller period of time, which you haven’t used generated a report for yet. That will ensure it reloads the data from scratch.
Hi Mickael ! Thanks for your help : the plugin who broke stats is Cost of Goods for WooCommerce. When I deactivate it and I clear cache. Stats are OK.
But now I can see an other problem. In taxes stats : we have a lot of taxes duplicated with random amount.Can you help me to solve this ?


Hello netcomagency,
Thank you for your reply.
I am glad to know that you found the root cause and resolved the issue.
Regarding the other issue, I suggest you create a new topic.
This way we can keep the forum organized and adhere to forum guidelines.Appreciate your cooperation. π
-
This reply was modified 1 year, 1 month ago by
The topic ‘WooCommerce Analytics double count orders’ is closed to new replies.