- List and manage products, variations, categories, and inventory
- Read and update orders, refunds, coupons, and customer records
- Build dashboards around revenue, fulfillment, products, and customers
- Create internal storefront admin tools powered by WooCommerce REST APIs
- Automate store workflows that use your WooCommerce data
Common use cases and example apps
| Example app | Example prompt | Description |
|---|---|---|
| Store operations dashboard | Use WooCommerce and build a dashboard that shows today’s orders, revenue, low-stock products, and fulfillment status. | Give operators one place to monitor store health. The app reads orders, products, and reports so the team can track daily performance and act on issues. |
| Inventory management app | Use WooCommerce and build an inventory app that lists products, filters by stock status, and updates stock quantities. | Keep product inventory current from a custom interface. The app fetches products and variations, highlights low-stock items, and updates inventory through WooCommerce. |
| Customer service console | Use WooCommerce and build a support console where agents can search customers, view orders, and issue refunds. | Help support teams answer store questions faster. The app searches customer and order records, shows purchase history, and uses permitted WooCommerce actions for order support. |
| Coupon campaign manager | Use WooCommerce and build a coupon manager for creating, listing, and tracking discount codes. | Manage promotions without opening WordPress admin. The app reads and updates coupons, shows active campaigns, and helps operators review usage. |
| Product catalog editor | Use WooCommerce and build a product catalog editor for updating product descriptions, prices, categories, and images. | Let teams manage catalog details from a tailored workflow. The app reads products and sends updates through WooCommerce based on the permissions on your API key. |
| Fulfillment tracker | Use WooCommerce and build a fulfillment tracker that groups open orders by status and flags delayed shipments. | Turn order data into a fulfillment queue. The app reads order status, groups work by priority, and gives staff a focused view of orders that need attention. |
| Sales reporting app | Use WooCommerce and build a sales report that compares products, customers, and coupon performance over time. | Create store analytics from WooCommerce data. The app reads reports, orders, and coupons to show trends and exportable summaries. |
How to connect WooCommerce
Workspace admins and owners can connect WooCommerce. You can create multiple WooCommerce connections using different REST API keys, which is useful for separating environments (for example, development and production), connecting multiple stores, or using keys with different permissions. When the connection is created, WooCommerce becomes available across all projects in the workspace. Anyone building in a project can ask Lovable in chat to link their project to it.Prerequisites
Before connecting WooCommerce, make sure you have:- A WooCommerce store with HTTPS enabled
- A WordPress admin account that can manage WooCommerce settings
- Non-plain WordPress permalinks enabled for REST API routes
- A WooCommerce REST API consumer key and consumer secret
- Lovable workspace owner or admin role
All API requests made through this connector run against your WooCommerce store. Hosting, plugin, and WooCommerce-related costs are handled outside Lovable.
Step 1: Get a WooCommerce REST API key
A WooCommerce REST API key lets your Lovable app authenticate with your store. The key permissions you choose in WooCommerce control what the connection can do. To create a WooCommerce REST API key:Open your WooCommerce settings
Sign in to your WordPress admin dashboard for the store you want to connect.
Add a key
Click Add key. Enter a description, for example
Lovable integration, and choose the WordPress user the key belongs to.Choose permissions
Choose the permissions your app needs:
- Read: use this for dashboards, reports, search, and other read-only apps.
- Read/Write: use this when your app needs to create or update products, orders, coupons, customers, refunds, or inventory.
Step 2: Connect WooCommerce to Lovable
You can create multiple connections using different WooCommerce REST API keys.Configure the connection
- Display name: name the connection, for example
WooCommerce Prod. - Store URL: enter the HTTPS URL of your WooCommerce store, for example
https://store.example.com. - Consumer key: paste the WooCommerce REST API consumer key. It starts with
ck_. - Consumer secret: paste the WooCommerce REST API consumer secret. It starts with
cs_.
Choose who can access this connection
Under Who can access this connection, decide who in your workspace can use the connection:
- Only you (default): only the person creating the connection can use it and its associated data.
- Invite specific people: only you and explicitly added workspace members can use the connection and its associated data.
- Invite entire workspace: click Invite entire workspace to make the connection available to everyone in your Lovable workspace.
Working with WooCommerce REST API permissions
WooCommerce controls access through the permissions on the REST API key you create. If your app only needs dashboards, reports, product lists, or customer lookup, use a Read key. If your app needs to create or update store data, use a Read/Write key. The connector verifies credentials by listing products from your store. If verification fails with a route error, check that WooCommerce REST API routes work on your store and that WordPress permalinks are not set to Plain.Limitations
The WooCommerce connector cannot:- Create WooCommerce REST API keys or change their permissions for you. Configure keys in WordPress admin first.
- Bypass the permissions on the connected REST API key.
- Configure WordPress permalinks, hosting, SSL, plugins, or WooCommerce settings.
- Call general WordPress APIs or WooCommerce endpoints outside the connected store’s
/wp-json/wc/v3REST API path. - Refresh or rotate consumer keys automatically. To rotate credentials, generate a new key in WooCommerce and update the Lovable connection.
- Support per-end-user WooCommerce login. Each connection represents a single WooCommerce store account shared across all projects linked to it.
How to unlink projects from a connection
Editors and above can remove specific projects from a connection without deleting the connection entirely. The connection will remain available for other projects. To unlink projects:
When unlinked, those projects will no longer have access to through this connection. If a project needs again, you can link it to any available connection.