issue with WooCommerce 2.1
-
There is an issue using Nelio in combination with WooCommerce 2.1
In your code, you are using the function wc_get_order(), which only exists in WC 2.2+. In WC 2.1 this will lead to a fatal error.I’ve fixed this by replacing
$order = wc_get_order( $order_id );
with
$order = new WC_Order( $order_id );
on line 166 of the file /includes/admin/woocommerce/woocommerce-support.phpOf course, this is not quite optimal and should be part of a conditional check on WC version. Hope this helps you fixing this issue.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘issue with WooCommerce 2.1’ is closed to new replies.