> ## Documentation Index
> Fetch the complete documentation index at: https://docs.partnero.com/llms.txt
> Use this file to discover all available pages before exploring further.

# WooCommerce integration

> Track orders from your WooCommerce store and attribute them to the partner who referred the customer

WooCommerce is a native integration: the **Partnero Affiliate & Referral Program Management** plugin handles the
whole chain for you — tracking visitors, linking customers to partners, and recording orders.

> [!NOTE]
>
> You do not add a tracking script to your theme or configure any webhooks. The plugin does both once it is
> connected.

## Step 1: Install the plugin

In WordPress, go to **Plugins** → **Add new plugin**, search for **Partnero**, then install and activate it.

If you would rather upload it yourself, download the
[Partnero Affiliate & Referral Program Management](https://wordpress.org/plugins/partnero/) zip, click **Upload
plugin** on that same screen, choose the file, click **Install Now**, then **Activate plugin**.

## Step 2: Connect your program

A **Partnero** entry appears in the WordPress left-hand menu once the plugin is active.

1. Open it. You will see a tab for **Affiliate** and one for **Refer-a-Friend**.
2. Switch to the tab for the program type you are connecting.
3. Paste your program API key and click **Connect**.

Your API key is in Partnero under **Integration** → **API** — see
[How to find my API key](https://docs.partnero.com/knowledge-base/program-management/how-to-find-my-api-key.md).

After connecting, the Partnero menu in WordPress shows your main program metrics.

## Settings

These options live in the plugin. Everything else about the program is configured in Partnero.

| Setting | What it does |
| - | - |
| **Sync existing customers** | Sends the customers already in your store to Partnero |
| **NET or GROSS** | NET (the default) calculates commissions on the products after discounts, without tax. GROSS adds the tax charged on the products |
| **Include shipping** | Adds the shipping cost to the amount commissions are calculated on. Off by default |
| **Excluded categories** | Products in these categories don't count towards the commission amount |

See [What commissions are calculated on](https://docs.partnero.com/knowledge-base/commissions-rewards/what-commissions-are-calculated-on.md)
for how this compares with other integrations.

## What gets tracked

Partnero records orders from your referred customers as their status changes, and reverses the commission
automatically when an order is marked **Refunded** or **Cancelled**. Partial refunds don't change the commission.
Coupons created, edited or deleted in WooCommerce are kept in sync with Partnero so partner codes keep working.

## How orders are attributed

An order can reach the right partner two ways, and you do not have to choose between them:

> [card] Referral link
>
> The visitor arrives through a partner's link and the plugin links the customer it creates to that partner.

> [card] Partner coupon
>
> The customer enters a partner's coupon at checkout. Partnero matches the coupon used on the order back to
> the partner who owns it — no referral click needed.

## Coupons

Partner coupons are created in Partnero and synced to WooCommerce rather than built by hand. See
[WooCommerce coupons](https://docs.partnero.com/integrations/woocommerce-coupons.md).

## Troubleshooting

> [accordion] Orders are not appearing in Partnero
>
> Open the Partnero menu in WordPress and confirm the program still shows as connected. An API key that was
> rotated in Partnero stops the plugin from reporting anything.

> [accordion] I connected the wrong program type
>
> The Affiliate and Refer-a-Friend tabs take separate keys. Pasting an affiliate program key into the
> Refer-a-Friend tab will not connect it — check you are on the right tab.

> [accordion] Commission amounts look wrong
>
> Check the plugin settings. GROSS adds product tax, **Include shipping** adds the shipping cost, and products
> in **Excluded categories** are left out. With the defaults (NET, no shipping), the commission amount is the
> product total after discounts, without tax or shipping.

> [accordion] A coupon is not crediting the partner
>
> The coupon has to originate in Partnero and be assigned to that partner. A coupon created directly in
> WooCommerce and never linked in Partnero has nothing to attribute to.

## Next steps

> [card] [WooCommerce coupons](https://docs.partnero.com/integrations/woocommerce-coupons.md)
>
> Discount codes that track referrals

> [card] [Coupons as rewards](https://docs.partnero.com/knowledge-base/referral-programs/offer-woocommerce-coupons-as-rewards.md)
>
> Pay rewards in store coupons


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.