Home Forums Plugins Import Shopify to WooCommerce Order Numbers Not Importing Properly

Order Numbers Not Importing Properly

  • Author
    Posts
  • #64353

    Awais Nisar
    Participant

    Hello,

    I imported orders from shopify using this plugin, It imported all order but not with the correct order numbers and if a customer has multiple orders, on woocommerce it only displays 1.

    For example Customer Name: Abraham Quigley. In shopify we have 4 orders from him. In Woo – it is only returning one order.

    I saw the fix for order number from these comments. I had deactivated the plugin so reactivated plugin but the order numbers are still not matching, I deactivated plugin again and added the below code, it still does not show the correct order numbers. Code was added in functions.php at the very end after the closing } Please suggest if im doing something wrong, thanks

    add_filter( ‘woocommerce_order_number’, function ( $order_id ) { $order_number = get_post_meta( $order_id, ‘_s2w_shopify_order_number’, true ); if ( $order_number ) { return $order_number; } } );

You must be logged in to see replies to this topic. Click here to login or register