內容簡介
總結:
Order number prefix for WooCommerce 是一個輕量級外掛程式,可讓您對 WooCommerce 訂單號碼添加自定義前綴。適用於需要按年份、地點或品牌組織訂單的商店,或者想要將公司縮寫添加到訂單號碼的商店。
問題與答案:
1. 這個外掛的主要功能是什麼?
- 它允許您將自定義前綴添加到 WooCommerce 訂單號碼中。
2. 這個外掛有哪些使用案例?
- 多品牌商店、基於年份的組織、基於地點的前綴、公司品牌、部門組織等。
3. 如何安裝和啟用這個外掛?
- 安裝並啟用該外掛後,前往 WooCommerce > 設定 > 一般,找到「Order Number Prefix」字段,輸入您想要的前綴,保存設置。
4. 這個外掛的技術細節是什麼?
- 它將前綴存儲為獨立選項,不修改實際訂單 ID,與其他 WooCommerce 擴展兼容,遵循 WordPress 編碼標準,實施正確的加固和逃逸,支持帶前綴號碼的 WooCommerce 訂單搜索。
5. 這個外掛的系統需求是什麼?
- 需要 WordPress 5.0 或更高版本、WooCommerce 3.0 或更高版本、PHP 7.2 或更高版本。
外掛標籤
開發者團隊
② 後台搜尋「Order number prefix for WooCommerce」→ 直接安裝(推薦)
原文外掛簡介
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
Install and activate the plugin
Navigate to WooCommerce > Settings > General
Find the “Order Number Prefix” field
Enter your desired prefix (e.g., “WC-“, “2024-“, “SHOP-“)
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
