WP Manifestindependent plugin directory
manifest / ecommerce / order-merger-for-woocommerce

Order Merger for WooCommerce

Automatically or semi-automatically merges consecutive processing orders from the same customer to optimize shipping costs and logistics.

by Sebastian Szydłowski · github.com/seb-devsec/order-merger-for-woocommerce · website

★ 0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/seb-devsec/order-merger-for-woocommerce/archive/refs/heads/main.zip

Automatically or semi-automatically merges consecutive processing orders from the same customer to optimize shipping costs and streamline warehouse logistics.

Translated to polish and german.

Description

Order Merger for WooCommerce is a lightweight, backend-driven performance and utility plugin designed to solve a classic e-commerce logistics problem: customers placing multiple orders within a short timeframe, resulting in duplicated shipping costs and redundant warehouse packaging.

Instead of relying on heavy visual builders or bloating the database, this plugin handles the entire merging sequence natively through the WooCommerce CRUD API. It features three robust logistical safety guards to prevent race conditions with shipping API integrations (like ShipStation, BaseLinker, or local couriers).

Key Features:

  • Dual Operation Modes: Switch between fully automatic merging (based on matching data) or semi-automatic mode (prompting the customer via an elegant AJAX-powered checkout notice).
  • Smart Concat Logic: Dynamically groups product quantities if the same item or variation exists in both orders, protecting inventory counts and invoice structures.
  • Smart Time Buffering: Set a strict time window (e.g., 15-60 minutes) after which orders are locked and cannot be automatically merged to protect packaging workflows.
  • Shipping Label Protection: Automatically sniffs order metadata for generated tracking numbers or shipping carrier IDs to prevent altering orders that are already processed by the courier.
  • Native Recalculation: Forces native WooCommerce calculation engines (calculate_totals) to ensure precision in taxes, currencies, and coupon adjustments.
  • 100% HPOS Ready: Built completely around the new High-Performance Order Storage architecture.
  • Full Database Hygiene: Includes a clean uninstall.php routine to remove configurations without leaving dead footprint options behind.

Installation

  1. Upload the entire order-merger-for-woocommerce folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Navigate to WooCommerce -> Order Merger to configure your buffer times, operation modes, and safety checks.

Frequently Asked Questions

Does this plugin work with guest checkouts?

Yes. In automatic mode, if a user checkout is completed as a guest, the system safely falls back to scanning and verifying the billing email identity.

Will it break my shipping integrations like apaczka or BaseLinker?

No. Thanks to the built-in Shipping Label Protection, if an integration zaps an order and generates a tracking number or carrier ID, the plugin detects it instantly and safely skips the merge operation, leaving a system note for your customer service team.

Why does it cancel the secondary order instead of deleting it?

In e-commerce, maintaining a clear audit trail is vital. The secondary order is updated to cancelled status with an automatic system note referencing the primary order ID. This preserves historical tracking for both accounting and customer support.

Changelog

1.0.0

  • Initial public release.
  • Added automatic and semi-automatic checkout merging flows.
  • Implemented AJAX checkout updates and session locks.
  • Implemented time window buffers and tracking number detection safety guards.
  • Fully compliant with WooCommerce High-Performance Order Storage (HPOS).