wiki/clients/current/doudlah-farms/2026-04-05-b2b-shipstation-fix.md · 562 words · 2026-04-05

B2B ShipStation Sync Fix — 2026-04-05

Overview

Doudlah B2B orders were syncing to ShipStation with an incorrect status, causing them to appear as already shipped rather than ready for fulfillment. The root cause was a custom plugin (Autocomplete offline orders) that was auto-completing orders on the WooCommerce thank-you page, setting their status to completed instead of processing. ShipStation skips orders marked completed (treating them as done) and skips orders marked on-hold (treating them as unpaid/not ready) — processing is the correct status for ShipStation to pick up and fulfill.

Attendees: Karly Oykhman, Mark Hope


Problem


Root Cause

Plugin: Autocomplete offline orders (custom, installed on the Doudlah B2B WooCommerce site)
File: autocomplete-offline-orders.php
Line: 64
Original value: completed
Problem: The plugin was hooking into the thank-you page and immediately transitioning all offline orders to completed status.


Fix

Changed line 64 of autocomplete-offline-orders.php from completed to processing.

// Line 64 — before
'completed'

// Line 64 — after
'processing'

The fix was identified and applied via an MCP server (Model Context Protocol — an AI-powered terminal console with direct API access to the site). The cache was flushed after the change.


Correct Order Flow (Post-Fix)

  1. Customer places B2B order (no payment at checkout).
  2. WooCommerce order status → processing (set by the modified plugin).
  3. ShipStation picks up the processing order and queues it for fulfillment.
  4. Warehouse fulfills and ships the order in ShipStation.
  5. ShipStation sends a webhook back to WooCommerce → order status → completed.

This mirrors the existing B2C site behavior and is the intended flow.


Key Decisions


Action Items


Notes


Sources

  1. Index
  2. 2026 04 05 Amazon Inventory Strategy