How are WooCommerce orders placed by guests synced to Xero?

The logic MyWorks Sync uses syncing a WooCommerce guest order to Xero

Written by the MyWorks Team

Updated at June 28th, 2023

A standard option in WooCommerce stores is allowing a user to choose whether to create a user account when placing an order, or order as a guest user - without creating an account. This is intended as an expeditious option in checkout, to reduce the number of fields a user must fill out when placing an order.

Since the WooCommerce order isn't associated with a user account, a common question is how MyWorks Sync handles syncing orders placed by a guest.

Luckily, the answer is simple. We're perfectly compatible with all WooCommerce orders - and we handle the syncing of guest orders seamlessly.

When our sync syncs a WooCommerce order to Xero that isn't tied to a user account (which can be mapped/linked to a corresponding Xero customer record in our MyWorks Sync > Map > Customers tab), it first scans Xero to check if the guest customer already exists - using the email address as the key identifier.

If the customer does exist in Xero with the same email, the WooCommerce order will be synced over to that customer. If the customer does not exist in Xero, our sync will first create it in Xero using the customer details provided in the order - and then sync the order over automatically to this new customer in Xero.

This handling logic brings a new level of ease and automation to your accounting/ordering process, so you don't have to worry about guest orders not syncing correctly.