WooCommerce integration: products, stock and orders in one record
Enter ERP's WooCommerce integration pulls products, orders, cancellations and returns from your WordPress store and creates sales orders and return records. Stock and prices go to WooCommerce under your store policy, and the order status and tracking code go back to the order.
- Products, variations, orders and returns into Enter ERP
- Stock and prices per store, with batch updates
- Order status and tracking code sent to WooCommerce
Last updated:
From WooCommerce
From Enter ERP
Capabilities
What can you do with the WooCommerce integration?
Products and variations
Simple and variable products on WooCommerce come into product records with their SKUs. After that, the name, description, categories and attributes are updated from Enter ERP.
Stock per store
WooCommerce receives on-hand stock, available stock or stock net of open orders. For products with stock management on, the quantity is written; for the rest, the stock status is.
Regular and sale price
The store price goes out as the regular price, and a promotional price can be written to the sale price field with a start and end date.
Order → sales order
A new order arrives by webhook, becomes a sales order and stock is reserved. The customer is matched to a customer account with their billing and shipping addresses.
Cancellations, returns and refunds
An order canceled on WooCommerce is canceled in Enter ERP too, and an issued refund becomes a return record with its items and amount.
Status and tracking code
When the shipment goes out, the order status is updated on WooCommerce. The tracking code is added as an order note visible to the customer, and the customer is notified.
What syncs between WooCommerce and Enter ERP?
Products, orders, cancellations, returns and refunds come from WooCommerce into Enter ERP; product updates, stock, prices, order status and tracking codes go from Enter ERP to WooCommerce. The table shows the Enter ERP record each piece of data is written to.
WooCommerce reports events by webhook, and each notification is signed with a secret. You can also import your WooCommerce products into Enter ERP; after that, stock and prices are managed from Enter ERP.
| Data | Direction | In Enter ERP |
|---|---|---|
| Product and variation | To Enter ERP | Product record |
| Order | To Enter ERP | Sales order |
| Cancellation | To Enter ERP | Order cancellation |
| Return and refund | To Enter ERP | Return |
| Product update | To WooCommerce | Product record |
| Inventory | To WooCommerce | Inventory policy |
| Price | To WooCommerce | Store price |
| Order status | To WooCommerce | Sales order |
| Tracking code | To WooCommerce | Shipment |
Supported WooCommerce API operations
Enter ERP's WooCommerce connector uses the operations listed here from the WooCommerce REST API and webhooks: products and variations, stock and prices, orders and notes, refunds and customers.
Category and attribute mappings and the inventory and price policies are stored in the store setup in Enter ERP. You set them up once, and every sync uses them.
- Read products and variationsSimple and variable products are brought into Enter ERP with their SKUs and attributes.
- Create and update productsDetails from the product record go to WooCommerce, and changes are updated the same way.
- Categories and attributesProduct categories, attributes and attribute terms are read and written for mapping.
- Send stockThe quantity calculated from the store policy is written to products and variations with stock management on.
- Send pricesThe regular price and sale price are updated along with the sale dates.
- Batch updatesProduct, variation and order changes are written in batches of up to 100 records per request.
- Receive ordersNew orders become sales orders with their customer, address, item, shipping and tax lines.
- Order statusStatus changes in Enter ERP are written to the WooCommerce order status.
- Order notesThe tracking code is added as a note visible to the customer, and the customer is notified; private notes are visible only to admins.
- RefundsRefunds on an order are read with their items, amount and reason.
- CustomersWooCommerce customers are matched to customer accounts with their billing and shipping addresses.
- Shipping and tax settingsShipping zones, shipping classes and tax rates are read for mapping.
- WebhooksWebhooks are created for order, product and customer events, and deliveries arrive signed.
Setup
How do you set up the WooCommerce integration?
- 1
Create a REST API key in WooCommerce
In the WordPress admin, create a key with Read/Write permissions under WooCommerce > Settings > Advanced > REST API, then copy the Consumer key and Consumer secret.
- 2
Set up the store
In the E-Commerce settings in Enter ERP, create a store with WooCommerce as the integration type and enter the site address and keys.
- 3
Map products and categories
Import your WooCommerce products, or link them to existing product records by SKU. Map categories and attributes once.
- 4
Choose inventory and price policies
Decide which stock figure and which price are sent. The webhooks are then set up, and orders start coming in.
Instant orders by webhook, stock by batch update
WooCommerce sends a webhook every time an order is created or updated. The notification is signed with a secret unique to your store, and once Enter ERP verifies the signature, it writes the order as a sales order and reserves stock.
In the other direction, stock and price changes go out through WooCommerce's batch update operation, with up to 100 products or variations written per request. When your price list changes, products are updated in groups rather than one by one.
Frequently asked questions about the WooCommerce integration
How do WooCommerce orders get into Enter ERP?
WooCommerce sends new or updated orders to Enter ERP by webhook. The order becomes a sales order, stock is reserved and the customer is matched to a customer account.
How is stock updated on WooCommerce?
The inventory policy you choose for your store (on hand, available, or net of open orders) is calculated from your stock in Enter ERP and written to the stock quantity of the product or variation. When you make a sale on another channel, your stock on WooCommerce goes down too.
How does the tracking code reach the customer?
When the shipment goes out, Enter ERP updates the order status and adds the tracking code as an order note visible to the customer. WooCommerce then notifies the customer of the note.
Do WooCommerce returns come into Enter ERP?
Yes. A refund issued on WooCommerce is read with its items and amount and becomes a return record in Enter ERP, and the returned product goes back into stock.
Can I connect more than one WooCommerce site?
Yes. Each WordPress site is set up as a separate store in Enter ERP. The inventory policy and prices are set per site, and stock draws on the same record.
Where do I get a WooCommerce API key?
In the WordPress admin, under WooCommerce > Settings > Advanced > REST API. Create the key for a WordPress user with Read/Write permissions; if that user is deleted, the key stops working too.