---
title: WooCommerce
description: Show your WooCommerce products as cards with Add to cart, and let customers look up their orders, through the PandaDesk WordPress plugin.
section: Chat and knowledge
order: 9
---

With WooCommerce connected, the AI agent can recommend products from your store as **cards** with a price, a picture and an **Add to cart** button, and answer "where's my order?" with the order's status, items, totals and tracking. WooCommerce is part of the **Pro** plan.

The AI never places, changes, cancels or refunds orders. Add to cart runs in the shopper's own browser when they click it, and order lookups are read-only.

## Connect your store

WooCommerce connects through the PandaDesk WordPress plugin; there's nothing to set up in PandaDesk itself.

1. Install the PandaDesk plugin, version 1.1 or later (**Install → WordPress** has the download).
2. In WordPress, go to **Settings → PandaDesk** and click **Connect to PandaDesk**. Sign in, approve the site and pick the workspace.
3. With WooCommerce active, the plugin tells PandaDesk about the store and your products start syncing.

Already connected with version 1.0 of the plugin? Update it, then **Disconnect** and **Connect** once: version 1.1 saves the secret PandaDesk signs its store requests with.

You'll find the store under **Integrations → WooCommerce**: how many products are synced, when, and any error. **Sync products now** re-reads every product.

## Products

- PandaDesk reads every published product that isn't hidden from your catalog: name, descriptions, categories, tags, price, image, stock status and variations (with their attributes, prices and stock).
- Saving or deleting a product in WooCommerce updates PandaDesk within seconds. Everything is also re-synced daily.
- Your plan sets how many products each workspace can hold (10,000 on Pro). A store with more stops at the limit, and the Integrations page says so.
- The agent finds products with its `search_products` tool and shows the ones that match as cards. Products are also part of your knowledge, so ordinary answers can cite them.

### Add to cart

The plugin registers the `add_to_cart` [browser action](/docs/cards-and-actions) on your storefront. When a shopper clicks **Add to cart** on a card, the product (or the variation shown) goes into their own cart through the WooCommerce Store API, and your theme's mini cart refreshes. If the product can't be added (out of stock, a variation needs options picked), the chat says so; the **View** button opens the product page.

## Orders

The agent gets a `woo_order_status` tool:

- **Signed-in customers.** When a logged-in WordPress user chats (the plugin signs them in to the chat automatically), the agent looks up their own recent orders, or one of them by number. It can't see anyone else's.
- **Guests.** The agent asks for the order number and the email address used at checkout, and only finds the order when both match, like WooCommerce's own order-tracking form.

The answer shows the order as a card with its status, total and a **View order** button, plus **Track package** when there's a tracking link. Tracking numbers come from WooCommerce Shipment Tracking, Advanced Shipment Tracking, AfterShip or YITH Order Tracking when one of them is installed. Sequential order-number plugins that hook WooCommerce's order tracking work too.

## How it's secured

- PandaDesk calls two REST routes the plugin adds, `GET /wp-json/pandadesk/v1/products` and `GET /wp-json/pandadesk/v1/orders/lookup`. Both only answer requests signed with your workspace's signing secret, exactly like [lookups](/docs/lookups): `PandaDesk-Signature: t=<unix seconds>,v1=<HMAC-SHA256 of "<t>.<METHOD>.<full URL>.<body>">`, valid for 5 minutes.
- For signed-in customers the WordPress user ID is sent as `PandaDesk-User-Id` and repeated in the signed URL, so it can't be swapped.
- The plugin's site key can only ask PandaDesk to re-read or forget pages and products on its own site.
- Disconnecting the store under **Integrations → WooCommerce** removes its products from PandaDesk; the WordPress site stays connected. Disconnecting the plugin stops syncing and order lookups.

## Troubleshooting

| What you see | What to do |
|---|---|
| "WordPress refused PandaDesk's signature" | Disconnect and connect again in **Settings → PandaDesk** in WordPress. Behind a proxy or CDN, make sure WordPress sees the site's public `https` address. |
| "WordPress doesn't have PandaDesk's WooCommerce routes" | Update the plugin to 1.1 or later, and check WooCommerce is active. |
| No store listed under a connected site | The plugin announces the store the next time an admin opens the dashboard. Or click **Sync products now**. |
| Add to cart says it failed | The product may need options picked, or be out of stock; check it on the product page. |
