WP Manifestindependent plugin directory
manifest / ecommerce / dahu-order-search

Dahu Order Search

Petite extension d'amélioration de recherches dans les commandes

by Hugo Vial-Jaime · github.com/epilouptique/dahu-order-search · 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/epilouptique/dahu-order-search/archive/refs/heads/main.zip

Adds engine-number search to the WooCommerce "Orders" screen, so you can look up an order directly from an engine/motor serial number stored in the order items or in order notes — no need to browse through order metadata manually.

Description

WooCommerce's built-in order search only covers order number, customer, email, and product. Dahu Order Search adds a dedicated search path for engine/motor numbers, looking through:

  • Order item metadata (e.g. a custom field on the ordered product/service)
  • Order notes (any note added to the order)

It works with both the High-Performance Order Storage (HPOS) and the classic post-based order storage, so it stays compatible regardless of how WooCommerce stores orders on your site.

Features

  • Adds a dedicated "Engine number" option to the order search filter dropdown (HPOS admin screen).
  • Automatic detection: if the search term looks like a full engine number (9 alphanumeric characters), the plugin searches by engine number automatically, even when "All fields" is selected.
  • Explicit partial search: when the "Engine number" filter is selected manually, partial terms (3+ characters) are accepted.
  • Searches both order item metadata and order notes, without depending on a specific meta key — robust to label changes.
  • Returns an empty result set instead of falling back to WooCommerce's standard search when no match is found, avoiding irrelevant results.
  • Legacy fallback for classic (non-HPOS) order storage via pre_get_posts.

Installation

  1. Download or clone this repository.
  2. Upload the plugin folder to /wp-content/plugins/.
  3. Activate the plugin through the "Plugins" screen in WordPress.
  4. WooCommerce must be installed and active.

Configuration

No configuration needed — the plugin works out of the box once activated. Just open the WooCommerce "Orders" screen and either:

  • Type a full 9-character engine number in the search box, or
  • Select the "Engine number" filter from the dropdown and type a partial term (3+ characters).

Changelog

1.0.0

  • Initial release: engine-number search across order item metadata and order notes, with HPOS and classic storage support.

License

GPL v2 or later. See LICENSE for details.