How to Integrate WordPress WooCommerce with ERPNext for D2C E-commerce in 2025

For Direct-to-Consumer (D2C) brands, WordPress (WooCommerce) is the most popular choice for building online stores, while ERPNext is a powerful open-source ERP system for managing backend operations like inventory, accounts, and fulfillment.

But the real magic happens when you integrate WooCommerce with ERPNext. This creates a seamless flow of data — from orders and payments on the website to stock, accounting, and reporting in ERPNext.

Here’s a step-by-step guide to make it happen.


Step 1: Prepare Your Systems

Before integration, ensure that:

  • WordPress with WooCommerce is installed and running your D2C store.
  • ERPNext is set up on your server or cloud (latest version recommended).
  • Both systems are accessible via secure URLs.

Step 2: Enable WooCommerce REST API

  1. Go to WooCommerce → Settings → Advanced → REST API.
  2. Create a new API key with Read/Write permissions.
  3. Note down the Consumer Key and Consumer Secret — you’ll need them to connect with ERPNext.

Step 3: Install WooCommerce Connector for ERPNext

ERPNext has community apps and plugins that allow WooCommerce integration. One of the most used is “WooCommerce Connector” available via Frappe/ERPNext community.

To install:

# Go to your ERPNext bench folder
cd frappe-bench

# Get the WooCommerce connector app
bench get-app https://github.com/frappe/erpnext_woocommerce.git

# Install it on your site
bench --site sitename install-app erpnext_woocommerce

# Restart bench
bench restart

Step 4: Configure WooCommerce in ERPNext

  1. Login to ERPNext.
  2. Search for WooCommerce Settings in the search bar.
  3. Enter your WooCommerce Store URL, Consumer Key, and Secret.
  4. Set synchronization options (Orders, Customers, Products, Stock).
  5. Save and enable the connector.

Step 5: Sync Data Between WooCommerce and ERPNext

Once configured, you can:

  • Import Orders – Customer orders from WooCommerce automatically sync into ERPNext as Sales Orders.
  • Sync Products – Product catalogs can be managed from ERPNext and pushed to WooCommerce.
  • Inventory Updates – Real-time stock updates reflect on your website.
  • Accounting Automation – Orders automatically create invoices and payment entries in ERPNext.

Step 6: Test the Integration

  • Place a test order on your WooCommerce store.
  • Check if it appears in ERPNext as a Sales Order.
  • Verify if inventory, customer, and payment records are updated correctly.

Benefits of WooCommerce + ERPNext Integration

  • Save Time – No manual entry of orders or stock updates.
  • Accurate Inventory – Prevents overselling or stockouts.
  • Automated Accounting – Every online sale reflects in ERPNext.
  • Better Customer Experience – Faster order processing and fulfillment.
  • Scalability – Handles high order volumes as your D2C brand grows.

Final Thoughts

For D2C brands in 2025, having a great online store is just half the battle. To manage growth, you need a powerful backend system like ERPNext. By integrating WordPress WooCommerce with ERPNext, you create an end-to-end e-commerce ecosystem that saves time, reduces errors, and boosts profitability.

👉 If you’re building a D2C brand, this integration is the smartest move for long-term scalability.