[WordPress] 外掛分享: Order Departments for WooCommerce

WordPress 外掛 Order Departments for WooCommerce 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Order Departments for WooCommerce」是 2025-06-26 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2026-01-07,距離現在已有 50 天。
  • 外掛最低要求 WordPress 6.3 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

runthingsdev |

外掛標籤

orders | automation | departments | woocommerce | email routing |

內容簡介

**總結:**
Order Departments for WooCommerce 可讓大型組織根據每筆訂單中的產品或產品類別自動將訂單路由至適當的部門。也可建立快速存取選單、轉發訂單郵件至相應部門,並透過 AutomateWoo 整合實現進一步的工作流程自動化。

**問題與答案:**
1. 這個外掛能幫助哪些組織自動將訂單指派到適當的部門?
- 答案:大型組繇
2. 若組織有多個部門,每個部門下會建立什麼快速存取選單?
- 答案:在 WooCommerce 下建立快速存取選單
3. 可以如何重新定向 WooCommerce 的訂單郵件,以確保只有相關部門接收與他們相關的通知?
- 答案:可以重新定向 WooCommerce 的訂單郵件至部門特定的郵件地址
4. 怎麼樣的整合讓進一步的工作流程自動化成為可能?
- 答案:透過 AutomateWoo 整合
5. 這個外掛有哪些功能特點?
- 答案:自動部門指派、郵件轉發、管理篩選、快速存取選單、AutomateWoo 整合、部門變數、HPOS 相容

原文外掛簡介

Order Departments for WooCommerce enables large organizations to automatically route orders to the appropriate departments based on the products or the categories of the products in each order.
For each department, a quick access menu is created below the WooCommerce.
The built in WooCommerce order emails can be re-routed so that only the relevant dept gets the order notification thats relevant to them.
The AutomateWoo integration then allows for further workflow automation based on department assignments.
Features

Automatic Department Assignment: Orders are automatically assigned to departments based on products/categories
Email Routing: Route order emails to department-specific email addresses
Admin Filtering: Filter orders by department in WooCommerce admin
Quick Access Menus: Direct links to orders for each department
AutomateWoo Integration: Complete set of actions, triggers, rules, and variables for workflow automation
Department Variables: Access department data in AutomateWoo workflows (names, emails, counts)
HPOS Compatible: Full support for WooCommerce High-Performance Order Storage

AutomateWoo Integration
This plugin provides complete AutomateWoo integration, allowing you to create sophisticated workflows based on department assignments. The integration includes custom actions, triggers, rules, and variables specifically designed for department-based automation.
Department Assignment Timing Tip: This plugin assigns departments immediately during order processing using the product/category rules you configure in the taxonomy screens. This happens early enough to affect WooCommerce’s core systems like email sending. AutomateWoo workflows run later in the process, so relying solely on AutomateWoo actions for department assignment would be too late to override WooCommerce’s built-in emails and other core functionality.
Using AutomateWoo for Email Handling: If you prefer to handle all emails through AutomateWoo workflows instead of the built-in email routing:

Disable WooCommerce’s default admin emails
Use AutomateWoo’s email actions with department triggers for full control

This approach gives you the flexibility to use AutomateWoo’s advanced email features (templates, conditions, delays, etc.) while still benefiting from automatic department assignment.
Actions

Set Order Department: Replace all existing departments with one department
Add Order Department: Add a department while keeping existing ones
Remove Order Department: Remove a specific department from an order
Clear Order Departments: Remove all departments from an order

Triggers

Order Department Added: Fires when a department is added to an order
Order Department Removed: Fires when a department is removed from an order
Order Department Changed: Fires when departments are modified in any way

Rules

Order Has Department: Check if order has specific department(s)
Order Department Count: Check the number of departments assigned
Order Department Is: Check if order’s departments exactly match a set

Variables
Collection Variables (all departments):
* {{ order.departments_names }}: List of all department names assigned to the order
* {{ order.departments_emails }}: List of all department email addresses (automatically deduplicated)
Per-Department Variables (flexible access):
* {{ order.department_names }}: Department names with index/all/count options
* {{ order.department_emails }}: Department emails with index/all/count options
* {{ order.department_count }}: Number of departments assigned to the order
Variable Parameters
Collection Variables support separator, prefix, and suffix parameters:
* {{ order.departments_names | separator: ';' }} → “Sales;Technical;Support”
* {{ order.departments_names | prefix: 'Dept: ', suffix: ' Team' }} → “Dept: Sales Team, Dept: Technical Team”
* {{ order.departments_emails | separator: '; ' }} → “[email protected]; [email protected]
Per-Department Variables support mode, index, separator, prefix, and suffix parameters:
Mode Options:
* {{ order.department_names }} → First department name (default mode: index)
* {{ order.department_names | mode: 'all' }} → All department names
* {{ order.department_names | mode: 'count' }} → Number of departments
Index Access:
* {{ order.department_names | index: '1' }} → First department name
* {{ order.department_names | index: '2' }} → Second department name
* {{ order.department_emails | index: '1' }} → All emails from first department
Formatting:
* {{ order.department_names | prefix: 'Team: ', suffix: ' Dept' }} → “Team: Sales Dept”
* {{ order.department_emails | separator: '; ' }} → Multiple emails separated by semicolon
Variable Use Cases

Sales & Technical Support: Route orders containing software to Technical, hardware to Sales

Use {{ order.departments_emails }} to automatically send order notifications to the right team
Create conditional workflows based on {{ order.department_count }} for mixed orders

Multi-location Fulfillment: Route orders to appropriate warehouses/locations

Include {{ order.departments_names }} in fulfillment emails to specify handling location
Use department variables in webhook payloads to external fulfillment systems

Specialized Teams: Route complex products to specialist departments

Send detailed instructions using {{ order.department_names }} for single-department orders
Create escalation workflows when {{ order.department_names | mode: 'count' }} exceeds normal thresholds

CRM Integration: Trigger department-specific workflows in external systems

Pass {{ order.departments_names }} to CRM systems for proper lead assignment
Use {{ order.departments_emails }} for automated follow-up sequences

Developer Filters
The plugin provides filters to customize email handling behavior:
Email ID Filters
runthings_wc_order_departments_customer_email_ids
Customize which customer-facing email IDs have their reply-to headers modified by department emails.
add_filter('runthings_wc_order_departments_customer_email_ids', function($email_ids) { // Add custom customer email ID $email_ids[] = 'custom_customer_email'; // Remove an email ID if you don't want it modified $key = array_search('customer_new_account', $email_ids); if ($key !== false) { unset($email_ids[$key]); } return $email_ids; });

Default customer email IDs: customer_completed_order, customer_cancelled_order, customer_failed_order, customer_on_hold_order, customer_invoice, customer_note, customer_refunded_order, customer_processing_order, customer_new_account, customer_reset_password
runthings_wc_order_departments_admin_email_ids
Customize which admin-facing email IDs have their recipients modified to use department emails.
add_filter('runthings_wc_order_departments_admin_email_ids', function($email_ids) { // Add custom admin email ID $email_ids[] = 'custom_admin_notification'; // Remove an email ID if you don't want it modified $key = array_search('backorder', $email_ids); if ($key !== false) { unset($email_ids[$key]); } return $email_ids; });

Default admin email IDs: new_order, cancelled_order, failed_order, backorder
Use Cases for Email Filters

Custom Email Types: Add support for emails from other plugins or custom implementations
Selective Email Routing: Exclude specific email types from department-based routing
Third-party Integration: Ensure compatibility with other email-related plugins

Configuration
Setting Up Departments

Navigate to WooCommerce > Order Departments
Add new departments with:

Department name
Email addresses (semicolon-separated)
Associated product categories
Specific products

Email Routing
The plugin provides two types of email routing:
Admin Email Routing
Admin emails (new order notifications, etc.) are automatically routed to department email addresses when departments are assigned to orders.
Customer Email Reply-To Override
Customer emails can have their reply-to headers modified based on department assignments. Configure this at Settings > Order Departments:

Override reply-to with department emails: Enable/disable the reply-to override feature
For multi-department orders: Choose behavior when multiple unique email addresses are involved:

Use all department emails: Add all unique department emails to reply-to header
Skip override – fall back to WooCommerce default: Use WooCommerce’s default reply-to setting

Email routing behavior:

Single department orders: Always use that department’s email for reply-to (when override enabled)
Multi-department orders with same email: Treated as single department
Multi-department orders with different emails: Behavior depends on settings choice
If the order’s assigned departments have NO email addresses: The plugin does not attempt to override emails and WooCommerce emails work normally
If WooCommerce emails are disabled: No emails will be sent regardless of department email configuration

Notes:

Each department can have multiple email addresses (semicolon-separated)
You can simply set the default WooCommerce admin email address in each department to maintain the same recipient while enabling department-based routing
Email routing is determined per-order based on that order’s specific department assignments
If the same email address is listed in multiple departments assigned to an order, only one email will be sent to that address (duplicates are automatically removed)

AutomateWoo Workflows
Create workflows using the department triggers, rules, and variables to:

Send notifications to external systems using department email variables
Create tickets in support systems with department information
Update CRM records with department assignments
Trigger fulfillment processes based on department rules
Route emails to department-specific addresses using {{ order.departments_emails }}
Include department context in communications using {{ order.departments_names }}

Requirements

WordPress 6.3+
WooCommerce 8.2+
PHP 7.4+
AutomateWoo (optional, for workflow automation)

Additional Notes
Built by Matthew Harris of runthings.dev, copyright 2025.
Visit runthings.dev for more WordPress plugins and resources.
Contribute or report issues at GitHub repository.
License
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 3 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, see http://www.gnu.org/licenses/gpl-3.0.html.
Icon – SEO by pictohaven from [https://thenounproject.com/browse/icons/term/seo/](Noun Project) (CC BY 3.0)

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Order Departments for WooCommerce」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.1 | 1.1.1 | trunk |

延伸相關外掛(你可能也想知道)

  • Up2pay e-Transactions WooCommerce Payment Gateway 》此模組將在您的 WooCommerce 安裝中新增 Up2pay e-Transactions 付款網關。, Up2pay e-Transactions 是歐洲的付款服務提供者,隸屬於 Crédit Agricole 銀行。...。
  • Moloni 》O Moloni是一個創新的線上發票和POS軟件,包括許多有用和功能性工具,讓每個企業能快速、簡單和直覺地管理其發票、監控股票、自動化過程並快速發出文件。, 作...。
  • Export Order Items for WooCommerce 》這款 WordPress 外掛可以將你的 WooCommerce 商店中每筆銷售的訂單詳細資訊匯出。透過此外掛,你可以簡化訂單履行流程、輕鬆地產生會計報告,並將報告下載為 ...。
  • Contribuinte Checkout 》這個外掛可以讓你將增值稅 (VAT) 和歐盟增值稅資訊系統 (VIES) 加入你的 WooCommerce 商店。增值稅欄位將被儲存在 '_billing_vat' 中。, 重要提示:此外掛需...。
  • Block Specific Spam Woo Orders 》這個外掛能夠避免一組特定的 WooCommerce 假訂單/垃圾訂單。, 只需安裝並啟用外掛,不需要進行任何設置或微調。, 該外掛擴展了 WooCommerce 內建的結帳驗證,...。
  • Purchased Items Column for WooCommerce Orders 》這個外掛可以重新加入在 WooCommerce 3.0 中移除的「Purchased Items」欄位。當按下按鈕時,訂單資訊將透過 Ajax 載入,並在每次頁面載入時節省資源。, , 更...。
  • JSM Show Order Metadata for WooCommerce HPOS 》<h3>外掛介紹總結:</h3>, <p>The JSM Show Order Metadata for WooCommerce 外掛在訂單編輯頁底部的 metabox 中顯示訂單 meta key 和其未...。
  • Send email to customer on cancelled order in WooCommerce 》這個外掛會發送電子郵件來告知使用者他的訂單已被取消或失敗。, 沒有任何選項,只需啟用外掛即可完成。。
  • Paybox WooCommerce Payment Gateway 》此外掛可在 WooCommerce 上安裝 Paybox 付款閘道。, Paybox 是歐洲的付款服務提供者,隸屬於 Verifone 集團。, 此外掛在 WordPress 上的功能如下:, 此外掛提...。
  • WooCommerce Basic Ordernumbers 》這是一個針對 WooCommerce 網店客製化訂單編號的方案,提供最彈性和完整的解決方案!, 預設情況下,WooCommerce 使用訂單的 WordPress 文章 ID,這導致訂單編...。
  • Ultimate Order Combination 》, 作者:Fahad Mahmood, 專案網址:http://androidbubble.com/blog/wordpress/plugins/woo-ultimate-order-combination, , WooCommerce 是一個極棒的電子商務...。
  • AliExpress for WooCommerce 》這是 WooCommerce 官方的 AliExpress 插件,讓您可以把您在 WooCommerce 商店裡的任何產品發佈到 AliExpress 上。, AliExpress 是來自中國的線上零售商,隸屬...。
  • Invoice123 》在您的Woocommerce帳戶中免費安裝此外掛,與Sąskaita123相結合,輕鬆管理數據。適合所有在網上銷售並按選定的業務形式工作的人。, 初次見面嗎?您好,這裡是S...。
  • SnappBox 》總結:Snappbox 是一個可幫助追蹤和顯示交貨狀態在 WordPress 內的外掛程式。這個外掛程式提供以下功能:, , 1. 下載外掛程式:, - 前往 https://snapp-bo...。
  • Notifications Telegram for WooCommerce 》### 總結, 透過 Notifications Telegram for WooCommerce,您可以即時收到訂單通知,直接傳送到您的 Telegram Messenger,24/7 保持與線上商店連接,永不錯過...。

文章
Filter
Apply Filters
Mastodon