Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author shipdayinc

    (@shipdayinc)

    You need to add a post meta to prevent shipday from fetching it.
    meta_key: _shipday_order_sync_prevent
    value: “yes”

    blu27

    (@blu27)

    This is the code we used in our functions file, I hope it helps others.

    public function before_checkout_create_order( $order, $data ){

    $method = “”;
    foreach( $order->get_items( ‘shipping’ ) as $item_id => $item ){
    $method = $shipping_method_id = $item->get_method_id();
    }

    if( $method == “local_pickup” ){
    $order->update_meta_data( ‘_shipday_order_sync_prevent’, ‘yes’ );
    }

    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dont sync order that are not for delivery’ is closed to new replies.