WooCommerce · CDEK Fulfillment · Custom plugin

Custom multi-warehouse fulfillment plugin for WooCommerce and CDEK

The store needed fulfillment across multiple warehouses rather than shipping calculated from a single fixed origin. I built a standalone WooCommerce plugin that allocates shipments against available stock, calculates the full shipping cost and keeps a single customer order even when goods ship from different warehouses.

  • WordPress
  • WooCommerce
  • PHP
  • JavaScript
  • MySQL
  • WooCommerce Store API
  • Checkout Blocks
  • HPOS
  • Action Scheduler
  • CDEK API
  • DaData

Project image

Warehouse shipment and payment management in the WooCommerce administration interface

Project brief

Implement the complete multi-warehouse order workflow: match store products to the fulfillment catalog, select warehouses and shipping rates, prevent competing orders from consuming the same stock, allocate payment amounts across parcels and submit each shipment to CDEK without creating duplicates.

What was delivered

  • standalone WordPress plugin with connection settings, warehouses, senders and shipping-rate mappings, without modifying WooCommerce core or the third-party shipping plugin
  • API clients for CDEK Fulfillment, CDEK shipping and DaData, with fully paginated reference-data loading and connection diagnostics
  • mapping WooCommerce products and variations to fulfillment product records, warehouse-level stock updates and detection of ambiguous mappings
  • allocation algorithm prioritizing complete cart coverage, the fewest shipments, arrival of the entire order and shipping cost, including splitting a single line quantity across warehouses
  • package and shipping-rate calculations for each shipment, a combined shipping total and recorded reasons for selecting or excluding options
  • atomic product-and-warehouse stock reservations across all parts of an order, accounting for competing orders and configurable holds for unpaid orders
  • Cart/Checkout Blocks and Store API integration with DaData address suggestions, a dedicated pickup-point map, door delivery, shipment details and fresh stock validation before checkout completes
  • HPOS compatibility and shipment persistence through WooCommerce CRUD, with separate identifiers, items, amounts and states for each parcel
  • allocation of product prices, discounts, taxes and shipping to the smallest currency unit, supporting prepayment and cash on delivery with reconciliation against the order total
  • Action Scheduler submission queue, lookup of previously created orders by external identifier and prevention of duplicate creation when an API result is uncertain
  • synchronization of reservation, assembly, delivery and tracking data, with administrative controls for status refresh, submission retry and cancellation where permitted
  • parcel information in customer order pages and emails, shipment event logs and warehouse-allocation explanations for managers
  • migration of new orders to the custom workflow while retaining the previous plugin for historical shipments

My role

Audited the existing shipping setup, designed the shipment and reservation model, built the plugin from scratch, integrated CDEK and DaData APIs, developed checkout and administrative controls, and switched the live store to the new workflow.

Outcome

A standalone plugin was built and installed in the live store, bringing warehouse planning, checkout and fulfillment integration into one workflow. Customers place a single order with the full shipping cost displayed, while managers have separate records and controls for each shipment.

Verification covered single-warehouse and split checkout, local stock reservations, payment allocation and competing stock holds. A control order was created and cancelled through the plugin in the fulfillment API. Actual dispatch, waybills, payment collection and later delivery states remain part of the client's separate acceptance process.

Verification

  • The implementation is supported by the plugin source code and verification records. Store, customer and shipment data are not disclosed.

Need a custom plugin or fulfillment integration? Message me on Telegram

Have a similar project?

Send a short project description, the current issue, your preferred timeframe and the budget if it is already defined.

Telegram: @dmitrydevelopmentEmail: web@dmitrydevelopment.com
Phone / WhatsApp / Viber:+381 64 118 22 24WhatsAppViber