Title: Plugin Not Compatible with Woocommerce V3
Last modified: April 19, 2017

---

# Plugin Not Compatible with Woocommerce V3

 *  [palloyd](https://wordpress.org/support/users/palloyd/)
 * (@palloyd)
 * [9 years ago](https://wordpress.org/support/topic/plugin-not-compatible-with-woocommerce-v3/)
 * Your plug in is very useful and works ok at the front end but generates a load
   of errors at the back end – it is the same error repeated 20 times.
 * This is the error message in the log:
 * [19-Apr-2017 14:51:32 UTC] order_number_new was called incorrectly. Order properties
   should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘
   wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action,
   WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action(‘
   wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array,
   WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment,
   WC_Gateway_BACS->process_payment, WC_Order->update_status, WC_Order->save, WC_Order-
   >status_transition, do_action(‘woocommerce_order_status_pending_to_on-hold’),
   WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Emails::
   send_transactional_email, do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_filters,
   call_user_func_array, WC_Email_New_Order->trigger, WC_Order->get_order_number,
   apply_filters(‘woocommerce_order_number’), WP_Hook->apply_filters, call_user_func_array,
   WC_EZOSC_Seq_Order_Number->get_order_number, WC_Abstract_Legacy_Order->__get,
   wc_doing_it_wrong. This message was added in version 3.0.

Viewing 1 replies (of 1 total)

 *  [bheadrick](https://wordpress.org/support/users/bheadrick/)
 * (@bheadrick)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/plugin-not-compatible-with-woocommerce-v3/#post-9241546)
 * There is a very simple backwards compatible fix for this.
 * replace the get_order_number function in includes/class-order-number.php with
   this:
 *     ```
       	public function get_order_number( $order_number, $order ) {
       $order_num = false;
       	    if($order_num = get_post_meta($order_number, '_order_number_new', true)){
       	        return $order_num;
               } elseif($order_num = get_post_meta($order_number, '_order_number', true)){
       	        return $order_num;
               }
   
       		return $order_number;
       	}
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Plugin Not Compatible with Woocommerce V3’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wooextras-sequential-order-numbers.
   svg)
 * [WooCommerce Sequential Order Numbers Plus](https://wordpress.org/plugins/wooextras-sequential-order-numbers/)
 * [Support Threads](https://wordpress.org/support/plugin/wooextras-sequential-order-numbers/)
 * [Active Topics](https://wordpress.org/support/plugin/wooextras-sequential-order-numbers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wooextras-sequential-order-numbers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wooextras-sequential-order-numbers/reviews/)

## Tags

 * [bugfix](https://wordpress.org/support/topic-tag/bugfix/)

 * 1 reply
 * 2 participants
 * Last reply from: [bheadrick](https://wordpress.org/support/users/bheadrick/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/plugin-not-compatible-with-woocommerce-v3/#post-9241546)
 * Status: not resolved