Take Control of Your E-Commerce Chart of Accounts
If you run a multi-category store – selling physical products alongside digital downloads, gift vouchers, repair services, or third-party merchandise – your accountant needs those revenue streams reported in separate sales accounts.
By default, the official WooCommerce Xero extension forces every single line item into the single global sales account configured in your integration settings. This leaves business owners and bookkeepers with hours of manual work filtering sales exports and posting manual month-end journal entries.
The Cray Digital Multiple Sales Account Code Plugin fixes this permanently.
How It Works in 3 Simple Steps
- Keep Your Official Xero Integration: Install and activate our extension alongside your existing WooCommerce Xero setup.
- Assign Codes to Categories: Navigate to Products > Categories in WordPress admin. Open any category and enter your specific Xero account code (e.g.,
205for Digital,210for Services). - Sync Automatically: When an order is completed, the plugin intercepts the line item creation and applies the category-specific code before sending the payload to Xero. Items in categories without a custom code automatically fall back to your default Xero account.
Key Features & Benefits
- Zero Configuration Overload: No complicated mapping tables or bloated database entries. It adds a single, clean input field right where you already manage categories.
- Reliable Fallback Protection: If a category doesn’t have an override code assigned, it seamlessly routes to your primary default Xero account.
- Accurate Real-Time P&L: View true category-by-category margins inside Xero without waiting for end-of-quarter accountant adjustments.
- Lightweight & Conflict-Free: Built strictly according to WooCommerce action and filter hooks. It doesn’t modify core WooCommerce files or database tables.
Technical Specifications & Compatibility
| Requirement | Supported Version |
|---|---|
| WordPress | 6.0 or higher |
| WooCommerce | 9.x+ |
| Prerequisite | Official WooCommerce Xero Integration Plugin |
| PHP | PHP 8.0, 8.1, 8.2, 8.3 |
| License | Single-site license including 12 months of direct UK developer support |
Frequently Asked Questions
No! This plugin works directly with the official WooCommerce Xero extension. Your existing API keys, authorisation credentials, and sync settings remain untouched.
Each individual line item on the resulting Xero invoice receives its own specific account code based on its category. For example, an order containing a physical chair and an assembly service will split into accounts 200 and 210 on the same invoice.
The plugin checks the product’s primary category first. If that category has an account code defined, it uses it; otherwise, it checks subsequent categories before falling back to your default Xero code.
Yes. All purchases come with documentation and setup is a 2 minute task.

