Sending orders to Abacus
Orders in Shopware are sent to Abacus for processing. There are three different scenarios for sending orders to Abacus:
- Guest orders
- Orders from new customers
- Orders from existing customers
Guest orders
Guest orders are created in Shopware when a customer checks out without creating an account. which then is sent to Abacus and can directly be processed there.
Order of a new customer
When a new customer is created in Shopware and the customer makes an order, the order is sent to Abacus and can be processed there. So, first the sign-up of a new customer: and then the order of the new customer:
which then is sent to Abacus and can directly be processed there.
Because it is a new customer, the address can't be found and the address must be processed manually in Abacus.
If the address already exists or Abacus detects a similar address, the address can be selected to prevent duplicates.
Once successfully processed, the order gets a green checkmark and can be converted into an order.
The order can be found in the "Closed" orders in Abacus.
And the order is created in the abacus order tool (111).
Sync back to Shopware
During the order processing in Abacus, the shopper is created for the new customer in Abacus. This shopper is then synced back to Shopware (after 15 minutes). Before the sync, the new customer looks like this in Shopware: And once the sync is done, the existing customer is updated with the shopper data:
Note that the shopper data is stored in the custom fields of the customer entity.
💡 How we identify the correct Shopware customer
First, we try to find the correct Shopware customer using the shopper ID. However, newly registered Shopware customers don't have a Shopper ID yet.
In Shopware, unlike in Abacus, the email address of a customer account is unique. Based on the configuration set in the Shopware plugin, we use the value of the "Account" field or the "Email" field of the Shopper API body to identify the correct Shopware customer.
Order of an existing customer
When an existing customer (customer with shopper logged-in in shopware) makes an order, the order is sent to Abacus and can directly be processed there. Because existing customers have already a shopper in Abacus and a shopper ID, the order can be processed without any manual address processing if the address has not changed.
Address change
If there is a change in the address, the wizzard in Abacus will guide you through the process of updating the address or selecting an existing address.
Please note that there are three type of addresses in Abacus:
- Customer address
- Billing address
- Shipping address and each of these addresses can have a contact person.
When the address has changed, Abacus will show you which address has changed and you can decide to update the existing address or select an existing address and ignore the new address sent from Shopware.
Sync back to Shopware
Once an address change is manually processed, the order can be converted into an Abacus order and the shopper is updated with the new address information. After 15 minutes, the updated shopper is synced back to Shopware (see customer sync ), and the customer is updated with the new address information. The next orders can be processed without manual address processing if the address has not changed again.