Plugin screenshot thumbnail 1/4
Plugin screenshot thumbnail 2/4
Plugin screenshot thumbnail 3/4
Plugin screenshot thumbnail 4/4

This plugin allows you to automatically send Commerce invoices into Xero including contacts, payments and even inventory updates.

Once connected the plugin allows you to map your Chart of Accounts (Account Codes) including:

  • Sales Revenue
  • Accounts Receivable
  • Shipping/Delivery
  • Rounding
  • Discounts
  • Additional Fees

By default all fully paid orders will be pushed into the queue with a delay of 30 seconds (this is reduce the time customers spend waiting for their order to process) and then once the queue has dispatched the job, the invoice will be sent to Xero.

If you need to send existing orders to Xero you can do so by viewing an order and you'll see a "Send to Xero" button which will instantly send the order off to Xero. This button also currently acts as a way to see if an order is already in Xero.

What fields are sent to Xero

Below is a list of fields that is sent to Xero. In future versions hooks/events will be avaialbe if you require more information to be sent.

Contact

  • first name
  • last name
  • email

Order

  • status (AUTHORISED)
  • type (ACCREC)
  • contact (as above)
  • LineAmountType (Exclusive) (future versions will be configurable)
  • Invoice Number (order referrence)
  • SentToContact (invoices are marked as sent)
  • Due Date (now)

Line Items

  • account code (sales)
  • description (product tile)
  • quantity
  • unit amount (item total)
  • Item Code (sku) (if inventory is enabled)

Shipping adjustments

  • same as above but account is set to you defined shipping account.

Payment

  • account (receivable account)
  • reference (order transaction reference)
  • amount (total paid amount)
  • date (date paid)

Rounding

Due to how different systems calculate rounding if for whatever reason the order total is different to what Xero calculates, an additional line item to account for rounding is added in Xero. Please ensure you have this account code selected under settings.

More detailed documentation to coming soon.

Feature requests 🙏

As this plugin is still in active development now is a good time to suggest new features. Feel free to contact me via email or create a GitHub issue.

Roadmap 🚀

  • Improve documentation
  • Configure Crafts new testing framework to ensure new features don't cause unexpected issues.
  • Add multiple hooks/events so developers can further extend if required
  • Refunds support
  • Admin features like element actions, widgets and different syncing methods

Installation

Either by the plugin store (search "Xero") or via composer.

composer require thejoshsmith/commerce-xero

Requirements

This plugin requires Craft CMS 3.1.0 or later and Craft Commerce 2–3 or later.

Standard

Plus $39/year after one year.

Installation Instructions

To install this plugin, copy the command above to your terminal.

Reviews

This plugin doesn't have any reviews.

Active Installs
18
Version
3.0.0
License
Craft
Compatibility
Craft 3, Craft 4, Craft 5
Last release
October 21, 2024
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs