Plugin Author
alx359
(@alx359)
Hi @joshgem thanks for the report.
Just tested and my end creates new orders okay. What exactly happens to you?
Would you please enable debug.log and see if there are any relevant errors in that file?
May also try this plugin in troubleshooting mode, with only WooCommerce and our plugin and see if it works. Then switching On other suspects until the issue happens. This test happens only to the admin and doesn’t affect users.
Thanks.
Hello
I disable your plugin.
When the plugin is active, i cannot add a custom order.
I am concerned it might affect other order’s functionality.
Here is an error i got to my email from wordpress
Error Details
=============
An error of type E_ERROR was caused in line 484 of the file /nas/content/live/lumengy/wp-content/plugins/order-status-history-for-woocommerce/includes/class_osh.php. Error message: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /nas/content/live/lumengy/wp-content/plugins/order-status-history-for-woocommerce/includes/class_osh.php:484
Stack trace:
#0 /nas/content/live/lumengy/wp-content/plugins/order-status-history-for-woocommerce/includes/class_osh.php(484): count(NULL)
#1 /nas/content/live/lumengy/wp-admin/includes/template.php(1395): oshwoo\osh->add_metabox_data__orders_history(Object(WP_Post), Array)
#2 /nas/content/live/lumengy/wp-admin/edit-form-advanced.php(681): do_meta_boxes(Object(WP_Screen), 'side', Object(WP_Post))
#3 /nas/content/live/lumengy/wp-admin/post-new.php(75): require('/nas/content/li...')
#4 {main}
thrown
Plugin Author
alx359
(@alx359)
Thanks for the error details, @joshgem that was helpful. I found indeed an omission of my part.
Just pushed version 1.8.6.1. Please install and tell if that fixed the issue for you.
It’s working well.
Happy to help,
Maybe you can add another icon with TOTAL PURCHASE AMOUNT
That will be very helpful to be able to see how much money the customer spend during all time.
Thanks
Josh
Plugin Author
alx359
(@alx359)
Thanks for confirming the issue was fixed.
Total purchased amount is available but it’s in the report views, as you probably already noticed, when hitting the Orders History manikin icon next to a repeating customer.
Putting such amount in the Orders history column is unfeasible, as it would require fetching and processing the full-fledged Order objects instead of the lightweight Post objects we use to count the orders now. That’s gonna increase substantially the resource usage of the plugin.