Plugin Causes Error with WooCommerce Email Previews
-
With this plugin installed, a fatal error is thrown by the email notification previews when viewing the Email settings pages in WooCommerce admin. The error is thrown in line 67 of /pre-orders-for-woocommerce/src/Checkout.php. A dummy order is used for previews and the order id passed to setPreroderStatus is not a valid id. So the call to wc_get_order( $order_id ) in line 66 returns false.
I have edited the code in my local version so that it is working now, but future updates will likely break my site again if it is not fixed.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.