plugin-icon

Order number prefix for WooCommerce

作者:maikunari·
Add customizable prefixes to your WooCommerce order numbers for better organization and branding.
版本
1.0.2
最后更新
Sep 22, 2025

Order number prefix for WooCommerce is a lightweight plugin that allows you to add custom prefixes to your WooCommerce order numbers. Perfect for stores that need to organize orders by year, location, or brand, or simply want to add their company initials to order numbers.

Key Features

  • Customizable Prefix: Add any prefix to your order numbers (alphanumeric, hyphens, and underscores supported)
  • Easy Configuration: Simple settings integration with WooCommerce general settings
  • Search Compatible: Search for orders using either the original order ID or the prefixed version
  • HPOS Compatible: Full support for WooCommerce High-Performance Order Storage
  • Lightweight: Minimal performance impact with efficient code
  • Secure: Built with WordPress and WooCommerce security best practices
  • Translation Ready: Full internationalization support

Use Cases

  • Multi-brand Stores: Use different prefixes for different brands (BRAND1-, BRAND2-)
  • Year-based Organization: Add year prefixes (2024-, 2025-)
  • Location-based Prefixes: Identify orders by location (NYC-, LA-, UK-)
  • Company Branding: Add your company initials to all orders
  • Department Organization: Separate B2B and B2C orders (B2B-, B2C-)

How It Works

  1. Install and activate the plugin
  2. Navigate to WooCommerce > Settings > General
  3. Find the “Order Number Prefix” field
  4. Enter your desired prefix (e.g., “WC-“, “2024-“, “SHOP-“)
  5. Save your settings

All new and existing orders will display with your chosen prefix throughout the WooCommerce admin area, customer emails, and order pages.

Technical Details

  • Stores prefix as a separate option, doesn’t modify actual order IDs
  • Compatible with other WooCommerce extensions
  • Follows WordPress coding standards
  • Implements proper sanitization and escaping
  • Supports WooCommerce order searches with prefixed numbers

Requirements

  • WordPress 5.0 or higher
  • WooCommerce 3.0 or higher
  • PHP 7.2 or higher

Additional Information

Contributing

Development of this plugin happens on GitHub. Feel free to contribute: https://github.com/maikunari/order-number-prefix-for-woocommerce

Privacy Policy

This plugin does not collect, store, or transmit any personal data. It only modifies the display of order numbers within your WooCommerce installation.

Credits

  • Developed by Mike Sewell at SonicPixel
  • Built for the WooCommerce community

Support

For bug reports and feature requests [github] https://github.com/maikunari/order-number-prefix-for-woocommerce.

For premium support and custom development, visit SonicPixel.

License

This plugin is licensed under the GPL v2 or later.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Om Namo Bhagavate Vadudevaya

免费使用Business套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 6.8.3
这个插件是可用的下载,适用于您的站点。