| 开发者 | runthingsdev |
|---|---|
| 更新时间 | 2026年1月7日 21:29 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.8 |
| 版权: | GPLv3 or later |
| 版权网址: | 版权信息 |
{{ 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 orderseparator, 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: '; ' }} → "sales@example.com; tech@example.com"
Per-Department Variables support mode, index, separator, prefix, and suffix parameters:{{ 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{{ order.departments_emails }} to automatically send order notifications to the right team{{ order.department_count }} for mixed orders{{ order.departments_names }} in fulfillment emails to specify handling location{{ order.department_names }} for single-department orders{{ order.department_names | mode: 'count' }} exceeds normal thresholds{{ order.departments_names }} to CRM systems for proper lead assignment{{ order.departments_emails }} for automated follow-up sequences/wp-content/plugins/runthings-wc-order-departments/WooCommerce > Order Departments to configure departmentsOrders are automatically assigned to departments based on the products and categories in the order. The plugin checks each order item against the configured department rules and assigns the appropriate departments.
Yes, orders can be assigned to multiple departments if they contain products from different department categories or have specific products assigned to different departments.
No, AutomateWoo is optional. The core functionality (automatic assignment, email routing, admin filtering) works without AutomateWoo. The AutomateWoo integration provides additional workflow automation capabilities.
Yes, this plugin is fully compatible with WooCommerce High-Performance Order Storage (HPOS) and will work with both traditional and HPOS order storage methods.
Yes, you can manually assign or modify department assignments from the order edit screen in WooCommerce admin.
Existing orders will not be automatically assigned to departments. Only new orders (or manually updated existing orders) will have department assignments based on your configuration. You can set up a manual workflow in AutomateWoo to backfill department assignments for existing orders if needed.
runthings_wc_order_departments_customer_email_ids filter to customize which customer emails are modifiedrunthings_wc_order_departments_admin_email_ids filter to customize which admin emails are modified