Title: Compatibility problem with
Last modified: January 4, 2021

---

# Compatibility problem with

 *  Resolved [tadej](https://wordpress.org/support/users/st1fffy/)
 * (@st1fffy)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/compatibility-problem-with/)
 * Hi
    When using your plugin with – [http://www.woocommerce.com/products/woocommerce-order-status-manager/](http://www.woocommerce.com/products/woocommerce-order-status-manager/)
   on the user account under tab Orders, order status is displayed twice. Example
   it should be like: Complete but its CompleteComplete
 * Could you please take a look why this happends?
 * Thanks
    Tadej

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/compatibility-problem-with/#post-13877113)
 * Hi there,
    if you disable Pre-Order the order status display once?
 *  Thread Starter [tadej](https://wordpress.org/support/users/st1fffy/)
 * (@st1fffy)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/compatibility-problem-with/#post-13880640)
 * Hi
    I have double-checked, yes that is the case. If your plugin is disabled status
   is displayed once and it works as it should. Thanks
 *  Plugin Author [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/compatibility-problem-with/#post-13892609)
 * Hi there,
 * Please, try to add the following code to the functions.php of your child theme:
 *     ```
       if ( class_exists( 'YITH_Pre_Order' ) ) {
       	remove_action( 'woocommerce_my_account_my_orders_column_order-status', array( YITH_Pre_Order::instance()->myaccount, 'add_pre_order_button_on_orders_page' ) );
       	add_action( 'woocommerce_my_account_my_orders_column_order-status', 'add_pre_order_button_on_orders_page', 99 );
   
       	function add_pre_order_button_on_orders_page_custom( $order ) {
       		$order = wc_get_order( $order );
       		$order_has_preorder = yit_get_prop( $order, '_order_has_preorder', true );
       		if ( 'yes' == $order_has_preorder ) {
       			echo wc_get_order_status_name( $order->get_status() );
       			echo '<br><mark>Has Pre-Orders</mark>';
       		}
           }
       }
       ```
   
 * Let us know.
 *  Thread Starter [tadej](https://wordpress.org/support/users/st1fffy/)
 * (@st1fffy)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/compatibility-problem-with/#post-13893428)
 * Hi
    it works! Thanks for help 🙂 Tadej

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Compatibility problem with’ is closed to new replies.

 * ![](https://ps.w.org/yith-pre-order-for-woocommerce/assets/icon.svg?rev=3307139)
 * [YITH Pre-Order for WooCommerce](https://wordpress.org/plugins/yith-pre-order-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-pre-order-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-pre-order-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-pre-order-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-pre-order-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-pre-order-for-woocommerce/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [tadej](https://wordpress.org/support/users/st1fffy/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/compatibility-problem-with/#post-13893428)
 * Status: resolved