WooCommerce Integration
Deprecated in Version 15
WooCommerce Integration automatically creates Sales Orders in ERPNext whenever a new order is placed in WooCommerce through webhooks. If the related Customer, Item, or Address does not already exist, ERPNext creates them automatically using the order information received from WooCommerce.
Summary
- Automatically imports WooCommerce orders as Sales Orders.
- Creates Customers, Items, and Addresses automatically if they don’t exist.
- Uses WooCommerce Webhooks for real-time order synchronization.
- Allows configuration of default company, warehouse, taxes, and sales order settings.
Generate WooCommerce API Credentials
- Open your WooCommerce dashboard.
- Navigate to Settings → Advanced → REST API.
- Click Add Key.
- Enter the required details.
- Click Generate API Key.
- Copy the generated Consumer Key and Consumer Secret.
Configure WooCommerce Settings in ERPNext
- Go to Home → Integrations → Settings → WooCommerce Settings.
- Enter:
- API Consumer Key
- API Consumer Secret
- WooCommerce Server URL
- Enable Enable Sync.
- Select:
- Tax Account
- Freight and Forwarding Account
- Creation User
- Company
- Click Save.
- After saving, ERPNext automatically generates:
- Webhook Endpoint
- Webhook Secret
Configure WooCommerce Webhook
- In WooCommerce, open Settings → Advanced → Webhooks.
- Click Add Webhook.
- Enter a webhook name.
- Set:
- Status: Active
- Topic: Order Created
- Copy the generated Endpoint from ERPNext and paste it into the Delivery URL field.
- Copy the generated Secret from ERPNext and paste it into the Secret field.
- Keep the API Version unchanged.
- Click Save Webhook.
Note
Use the Endpoint generated in your ERPNext WooCommerce Settings as the Delivery URL while configuring the webhook. The example URLs shown in screenshots may differ from your actual site URL.
Create and Sync Orders
- Create a customer account on your WooCommerce store.
- Add billing and shipping addresses.
- Add products to the cart.
- Proceed to checkout.
- Place the order.
- ERPNext automatically creates:
- Customer
- Address
- Item (if missing)
- Sales Order
- If synchronization fails, review the Error Log under Home → Settings → Core → Error Log.
Default Configuration Options
The WooCommerce Settings document provides the following default options:
| Setting | Description |
|---|---|
| Warehouse | Default warehouse used when creating Sales Orders. |
| Delivery After (Days) | Number of days added to the order date to calculate the delivery date. |
| Sales Order Series | Naming series used for Sales Orders imported from WooCommerce. |
| UOM | Default Unit of Measure used while creating Items and Sales Orders. |
Result
- Orders are synchronized automatically using WooCommerce Webhooks.
- Missing Customers, Items, and Addresses are created automatically.
- Sales Orders are generated in ERPNext with the configured defaults.
Related Topics
- Sales Order
- Item
- Customer
- Address
Rating: 0 / 5 (0 votes)