[Documentation](https://groundhogg.io/documentation/) » [Sales Add-ons](https://groundhogg.io/documentation/#doc-sales)

# Sales Pipeline

Published Wednesday, June 10, 2026 · Last updated Thursday, November 19, 2026

## Overview

Sales Pipeline is the board where you keep deals. A pipeline is the process, a stage is a column on that board, and a deal is the opportunity you move through those columns. You can create and move deals from a flow, work your deals from the Groundhogg mobile app on your phone, let an AI agent manage them, and report on what closed.

Install and activate the **Sales Pipeline** add-on with the [installation guide](https://groundhogg.io/doc/installation-guide/). Groundhogg has to be active. You also need WordPress 6.9 or newer, PHP 7.4 or newer, and Groundhogg 4.9 or newer. If one of those is missing, Sales Pipeline doesn’t run, and WordPress shows a notice that it is NOT RUNNING.

Deals in the mobile app need Groundhogg 4.10 or newer. On Groundhogg 4.9, everything else works, but the app doesn’t show deals.

After you activate it, open **Groundhogg » Pipelines**. You need permission to view pipelines before that menu shows up.

## Create a pipeline

1. Go to **Groundhogg » Pipelines**.
2. Click **New Pipeline**. You only see this if you’re allowed to add pipelines.
3. Enter a **Title**. The placeholder is *My new pipeline…*
4. Edit the **Stages**. A new pipeline starts with **New Lead**, **Qualification**, **Negotiation**, and **Closing**. Rename them, drag them into a new order, remove them, or add the stages you actually use.
5. Click **Create Pipeline**. You land on the board.

The Pipelines screen is a list, not only a button. It has two tabs, **Pipelines** and **Deals**. You can search with **Search Pipelines**. The columns are **Title**, **Active Deals**, **Closed Deals**, and **Lost Deals**, each with its count and value. Switch between **Active** and **Archived** at the top of the list. On a row you can **Manage**, **Duplicate**, **Archive**, or **Delete**. An archived pipeline offers **Restore** instead of **Archive**.

Duplicating names the copy *Copy of* plus the original title, then opens that board.

## Use the board

Each stage is a column. Under the stage name you see how many deals are in it and what they add up to, for example *2 deals totalling $8,400.00*. A card shows the deal title, the value, the contact, and how long ago it was updated.

Click the pipeline title to rename it, if you’re allowed to edit pipelines.

The icons along the top are **Refresh**, **Sort deals**, **Quick search**, **Filter deals**, **Add stage**, and the pipeline menu (⋮).

### Sort and search

1. Click **Sort deals**.
2. Set **Order By** to **Priority**, **Deal Value**, **Recently Updated**, **Close Date**, or **Win Probability**.
3. Choose **Ascending** or **Descending**.

**Quick search** matches the deal title only. The box placeholder is *Search…* Columns without a match show no cards until you clear the box.

### Pipeline menu

Open the ⋮ at the top right of the board. What you see depends on what you’re allowed to do.

- **Reporting** opens the pipeline report in a new window. You need permission to view reports.
- **Setup products** is the product list for this pipeline. See **Products** below.
- **Show closed deals** puts won and lost deals back on the board. It switches to **Hide closed deals** once they’re showing.
- **Duplicate** copies the pipeline.
- **Archive** archives the pipeline and its deals. Archived deals can’t be edited. Confirm with **Archive**.
- **Delete** deletes the pipeline, its stages, and its deals, past and present. Confirm with **Delete**. Only someone who can delete pipelines gets this item.

## Stages

### Add a stage

1. On the board, click **Add stage**.
2. Enter the name under **New stage title**. The placeholder is *New stage*.
3. Click **Add Stage**. The stage is added at the end.

### Reorder or rename a stage

Hover the stage header. Use the left and right arrows, or open ⋮ and choose **Move left** or **Move right**. The first stage can’t move left, and the last stage can’t move right.

To rename it, click the stage title, or choose **Rename** from that same menu. You need permission to edit pipelines.

### Delete a stage

1. Open the stage ⋮ menu and choose **Delete**.
2. If that stage still has deals on the board, you can’t delete it. Move or close those deals first. The notice says: “You cannot delete a stage with active deals. Please move or close your deals before deleting.” Click **Got it!**
3. Otherwise, confirm with **Delete**.

The confirm sentence still says “funnel benchmarks.” That means flow triggers. A flow trigger or action that points at this stage stops working after you delete the stage, so change those steps first. Deleting the stage itself is only allowed if you can delete pipelines. You may see Delete in the menu without being able to finish it.

## Deals

### Add a deal

1. On a stage, click the plus. The tooltip is **Add deal**.
2. Fill in the deal. The heading is *Add a new deal to the {stage} stage*.
3. Click **Create Deal**.

The fields are:

- **Title**. You have to enter one. The placeholder is *A new deal…* If you leave it empty, you get “Make sure your deal has a title!”
- **Contacts**. Pick an existing contact or create a new one. You need at least one contact. If you don’t add one, you get “Add one or more contacts to the deal first.”
- **Assigned to**. This is the deal owner. A new deal starts assigned to you. Changing the owner also updates the owner on the deal’s primary contact, not on every contact on the deal.
- **Projected Close Date**.
- **Priority**: **High**, **Medium**, or **Low**. A new deal starts at **Medium**.
- **Win Probability**, from 0 to 100. A new deal starts at 50.
- **Product Interest**. See **Products**.

Click **Cancel** to close without creating the deal. After you create it, the editor opens.

### Edit a deal

Click the card once. You don’t have to double-click.

You can change the title, **Assigned to**, **Projected Close Date**, **Priority**, **Win Probability**, **Pipeline**, **Stage**, and **Product Interest**. Click **Save changes**. You should see “Deal saved.”

If you switch **Pipeline**, confirm with **Yes**. The deal goes to the first stage of the new pipeline. Moving a deal to another pipeline can affect flows the contacts are already in.

If you try to close the editor with unsaved edits, you’re asked “You have unsaved changes. Continue?” Choose **Discard changes** to drop them.

### Move a deal

Drag the card to another stage. It saves as soon as you drop it. You don’t have to open the deal and click save.

You can also change **Stage** inside the editor, then click **Save changes**.

You can only move a deal you’re allowed to edit. A sales rep can move their own deals. See **Roles**.

### Win, lose, and reopen

In the editor, **Mark as won** and **Mark as lost** sit by the title.

- Won asks you to confirm, then tells you the deal will be removed from the pipeline view.
- Lost does the same.

Won and lost deals stay off the board until you choose **Show closed deals** from the pipeline menu.

A closed deal can’t be edited. The editor says “This deal was closed and can no longer be edited.” Open the deal menu and choose **Make active** to put it back in progress. The confirm sentence still says “funnels.” That means flows. Making a deal active can interrupt a flow those contacts are in.

The same menu has **Delete**. Confirm with **Delete** if you want the deal gone.

### Contacts on the deal

Use **Add contacts** to select an existing contact or create a new one. On a contact, you can **View profile**, **Quick Edit**, **Copy to new deal**, or **Remove from deal**.

**Copy to new deal** creates another deal and takes that contact off this one. The call icons are **Call** and **Call mobile** when the contact has those numbers.

### Email the contacts

1. Open the deal.
2. Click **Email contacts**.

The message is addressed to every contact on the deal, and it’s sent from you. If you’re not the deal owner, the compose window copies (cc) the deal owner.

### Notes and tasks

The right side of the editor has two tabs, **Notes** and **Tasks**. Notes are the notes on this deal. Tasks are the tasks on this deal.

### The Deals list

Go to **Groundhogg » Pipelines** and open the **Deals** tab. Search with **Search Deals**. The views are **Active**, **Won**, and **Lost**.

Columns are **Title**, **Value**, **Pipeline**, and **Close Date**. The Active view also has **Age**. Open a row with **Edit**, or use **Delete**. With the checkboxes, you can bulk **Delete**, **Won**, **Lost**, or **Make Active**.

## Products

You can type a product straight onto a deal, or keep a list for the pipeline so the names and prices stay consistent.

### Set up the pipeline list

1. On the board, open ⋮ and choose **Setup products**.
2. Add each product and its price.
3. Click **Save products**.

### Add products to a deal

Under **Product Interest**, start typing. You get suggestions from the pipeline list and from products already used on deals on this board. A suggestion shows the name and the price. Picking one fills the price. You can still change the price, and you can type a product that isn’t on the list.

Each row has a price and a quantity. The deal value is the total of price times quantity.

## Custom properties

Custom properties belong to the pipeline, so every deal on that pipeline can use them. You need permission to edit pipelines before you can add or change the fields. Anyone who can edit the deal can fill them in.

1. Open a deal.
2. If the pipeline has no properties yet, click **Add custom properties**.
3. Name the group under **Add property group**. The placeholder is *New property group name*. Click **Create Group**.
4. Click **Add field** and choose a type: Text, Textarea, Number, URL, Phone Number, Email Address, Date, Time, Date & Time, Checkboxes, Radio Buttons, Dropdown, or HTML.

On a group, ⋮ includes **Add Field**, **Add Group**, **Edit Fields**, **Rename**, **Move up**, **Move down**, and **Delete**. **Edit Fields** tells you to double-click a field to edit it. **Rename** opens the *Rename property group*.

## Flow triggers

Sales Pipeline adds one trigger. In the flow editor, it’s in the **Pipeline** group, and its name is **Deal Entered Stage**.

It runs when a deal enters a stage, when a deal is marked won or lost, or when a contact is added to an open deal. The description on the step is “Runs whenever a deal enters a stage, optionally from a specific stage.”

1. Add **Deal Entered Stage** to the flow.
2. Under **Run when a deal enters the following stage or is closed…** choose the pipeline, then the stage.
3. At the bottom of the stage list, you can also choose **Won**, **Lost**, or **Closed (Won/Lost)**. Closed means either won or lost.
4. Under **Only if it was moved from…** leave **Any stage**, or pick the stage it has to come from. That list is stages only. It doesn’t include won or lost.

When the deal moves, is won, or is lost, every contact on the deal can enter the flow. When you only add a contact to the deal, just that contact enters, and only if you left **Any stage** on the “moved from” control.

## Flow actions

Two actions are in the same **Pipeline** group: **Create Deal** and **Move Deal**.

### Create Deal

This creates a deal for the contact who’s going through the flow, in the pipeline and stage you pick.

- **Name for this deal…** Replacement codes are allowed. If you leave it empty, the deal is named after the contact.
- **Which pipeline and stage to add the deal to…** The empty labels are *Select a pipeline…* and *Select a stage…*
- **Assign this deal to…** Choose the contact owner, yourself, or another user. The note under it says assigning a deal owner also changes the contact’s owner. If you leave the contact owner, the contact keeps their owner and the deal is assigned to that person.
- **This deal should close…** Choose **Within a time period** and a number of **Days**, **Weeks**, or **Months**. Or choose **By a specific date** and enter a date, a replacement code, or the name of a custom field that holds a date. If that doesn’t work out to a date for the contact, the deal uses the time period instead.
- **The chance of winning this deal?** A number from 0 to 100. It starts at 50.
- **Select a priority…** **High**, **Medium**, or **Low**.
- **What products should be added to the deal?** Each row is a product, price, and quantity. Replacement codes work in all three. The deal value is the total.
- **Notes to add to the deal…** This is a visual editor. Replacement codes work in the note.

### Move Deal

1. Add **Move Deal**.
2. Under **Which stage should the deal be moved to?** Choose the pipeline, then the stage.
3. At the bottom of the stage list, choose **Won** or **Lost** if you want the deal closed instead of moved.

Which deal it changes depends on how the flow got there:

- If **Create Deal** already ran earlier in this flow, Move Deal changes that deal.
- If the flow started with **Deal Entered Stage**, Move Deal changes the deal that triggered the flow.
- Otherwise, it changes every deal in the selected pipeline that’s tied to the current contact, including deals that are already closed.

## Deals on a contact, and the dashboard

Every contact has a **Deals** card. The Groundhogg dashboard has a **Deals** widget for the deals assigned to you. They look the same.

Each card shows the title, the value, the contact, and when it’s closing. You’ll see *Closing in* and a time, or *past close*, or *Won* / *Lost* and how long ago. A bar shows how far the deal is through its stages.

The pills along the top count what’s in the list:

- **in progress**
- **past close**, for open deals that are already past the projected close date
- **closing soon**, for open deals closing within 30 days that aren’t past due yet
- **won** and **lost**, on the contact card, where those deals are included

The amount on the right is the total value of the deals you’re looking at. Click a pill to limit the list. Click a deal to open it. If there’s nothing to show, you see “No deals yet.”

The dashboard widget only loads your open deals, up to 20, with the soonest close date first. So the won and lost pills don’t appear there.

If you use Companies, a company can also show a **Related Deals** card. That card is the same list.

## Deals in the mobile app

With Groundhogg 4.10 or newer, Sales Pipeline adds deals to the Groundhogg [mobile app](https://groundhogg.io/doc/mobile-app/), the web app you open on your phone. There’s nothing extra to install or turn on. Anyone who can view deals sees them in the app, and the app only offers the actions their role allows.

- **Deals** screen. Open **More** and tap **Deals**.
- **Deals needing attention** on the app’s Home screen.
- A **Deals** panel on each contact.
- **New deal** on the create (+) button, if you can add deals and view pipelines.
- Deal events in a contact’s activity: created, moved to a stage, won, and lost.

### The Deals screen

- Search with **Search deals**. It matches the deal title.
- Switch between **Open**, **Due soon**, **Won**, and **Lost**. **Due soon** is open deals that are past their expected close date or close within the next 7 days.
- Choose **My deals**, or **Everyone’s**. You only get this choice if you can see other people’s deals.
- Pick one pipeline, or leave **All pipelines**. This only shows when there’s more than one pipeline.
- On the **Open** view, when you aren’t searching, a **Recently viewed** card lists the last few deals you opened.
- Each row shows the title, the stage, the contact, and the value. An open deal also shows a pill: how many days late it is, **Closes today**, **Closes in** a number of days for the next 7 days, or the expected close date. Tap **Show more** to load more deals.

### Work a deal

Tap a deal to open it. At the top, you see the title, the value, the pipeline and stage, and a bar that shows how far the deal is through its stages. If you can edit the deal, you get these buttons:

- **Move** opens **Move to stage**. Tap a stage to move the deal there.
- **Won** and **Lost** ask you to confirm, then close the deal.
- **Reopen** takes a won or lost deal back to open.
- **Desktop** opens the same deal in the WordPress admin.

Under **Details,** you see when it’s expected to close, the owner, the win probability, how long it’s been in this stage, when it closed, and its last activity. Tap **Edit** to change the **Title**, **Win probability (%)**, and **Expected to close** date.

Below that are the deal’s contacts, with **Add** to add another, its **Products**, with **Edit** or **Add**, and its **Tasks** and **Notes**, if you’re allowed to see tasks and notes. The deal value is always the total of its products.

### Deals on Home and on a contact

The **Deals needing attention** card on Home lists your open deals that are late or close within 7 days. It doesn’t show when there aren’t any. Tap **See all** to open the Due soon view.

On a contact, the **Deals** panel lists their deals. Tap **New deal** to start one for that contact.

### Add a deal on your phone

1. Tap the create (+) button and choose **New deal**, or tap **New deal** on a contact.
2. Under **Contact**, tap **Choose a contact**. You can also leave it empty and add contacts later.
3. Enter a **Title**. You have to enter one.
4. Pick the **Pipeline** and **Stage**.
5. Check **Expected to close**. It starts 30 days from today.
6. Add products with **Add a product** if you like. The deal value is the total of its products.
7. Tap **Add deal**. The deal is assigned to you, and it opens.

If there are no pipelines yet, the app says “There are no pipelines yet. Add one on desktop first.”

**[IMAGE 19: 19-sales-pipeline-mobile-move-new.png]**
Alt text: Two phones showing the Groundhogg mobile app. On the left, the Move to stage sheet on a deal, listing the four stages with Closing marked as the current stage. On the right, the New deal sheet with Contact, Title, Pipeline, Stage, Expected to close, Products, and the Add deal button.

**GREGG TO CONFIRM:** In 3.9.1, the app’s deal screens show the names, email addresses, and phone numbers of the contacts on a deal even to a user who isn’t allowed to see contact personal information. The rest of the app shows `[redacted]` for those users. This paragraph should be removed once the add-on hides those details too, or replaced with a note if that’s intended.

## Reporting

Open **Groundhogg » Reporting** and choose the **Pipelines** tab. Or, on a board, open ⋮ and choose **Reporting**. That opens this pipeline’s report. You need permission to view reports.

The date range on the Reporting screen is what the closed-deal numbers use. **Forecast Range** is a separate dropdown for open deals you expect to close. It defaults to **This Month**. The other choices are This Week, This Quarter, This Year, Next Week, Next Month, Next Quarter, and Next Year.

### The numbers

On the overview, the cards are:

- **Revenue**, the value of deals won in the reporting range
- **Deals Won**
- **Win Rate**, deals won divided by deals closed in that range
- **Avg. Deal Size**, the average value of deals won in the range
- **Avg. Days to Close**, from the day the deal was created to the day it closed, for deals closed in the range
- **Sales Velocity ($/day)**, won deals times average deal size times win rate, divided by the average days to close
- **New Deals**, deals created in the range
- **Deals Lost**

Each card compares with the previous period. The comparison reads *vs. prev* and the length of that period.

When you open one pipeline, or one sales rep, the first card is labeled **Rep Revenue** instead of **Revenue**. It’s still the value of deals won. A pipeline report has a **Manage Pipeline** button back to the board.

### Charts and tables

- **Revenue** is a chart with Won and Lost. On a rep’s report the chart heading is **Rep Revenue**.
- **Leaderboard** is by rep. Columns are Rep, Won $, Win %, Avg $, and Wtd $.
- **Performance** on the overview, and **Performance by Pipeline** on a rep’s report, is by pipeline. Columns are Pipeline, Won $, Win %, Avg $, TTC, Wtd $, and Val $. TTC is time to close. Wtd $ is the value weighted by win probability. Val $ is the unweighted value.
- **Forecast Risk** groups open deals by win probability, but only deals whose projected close date falls in the Forecast Range. Columns are Bucket, Deals, Val $, and Wtd $. A deal at 100% is in 90-100%. Other deals fall into 10-point buckets such as 0-10% or 80-90%.
- **By Stage** is on a single pipeline’s report. Columns are Stage, Wtd $, and Val $.

## Filters

There are two places to filter, and they aren’t the same list.

### Filter contacts

In the contact filters, open the **Pipeline** group. You can combine these. Deal Value and Close Probability use Equals, Not equals, Less than, Less than or equal to, Greater than, Greater than or equal to, Is any of, and Is none of.

- **Deal Value**. A number, then a pipeline and a stage. Leave them on *Any pipeline…* and *Any stage…* to ignore that.
- **Close Probability**. A number from 0 to 100. No pipeline or stage.
- **Deal Owner**. Is one of or Is not one of.
- **Projected Close Date**. A pipeline, a stage, and a date comparison, including future dates.
- **Date Closed**. Won or Lost, a pipeline, and a date comparison. No stage. It starts on Won.
- **Date Created**. A pipeline and a date comparison. No stage.
- **Has Deal**. **Any status**, **Active**, **Won**, or **Lost**. You can limit it to one or more pipelines (*Any pipeline*) and stages (*Any stage*). Stages are listed as pipeline: stage, for example *New Business: Negotiation*, and only for the pipelines you picked. Then set **Reached the stage within (days)**, **Created within (days)**, and **Closed within (days)**. Leave a day field on *Any time* to skip it. **Closed within (days)** is hidden for Active deals. “Reached” counts the stage the deal is in now, and stages it passed through earlier.

### Filter the board and the Deals list

On the board, click **Filter deals**, then the filter icon that appears above the stages. On the Deals tab, use the table filters. These are deal filters, not the contact filters above.

You can filter by **Deal value**, **Close probability**, **Priority** (High, Medium, Low), **Projected close date**, **Date Created**, **Date closed**, **Last activity**, **Deal Owner**, and **Contact Query**. Contact Query lets you include or exclude contacts with the usual contact filters. An empty owner shows as *Any owner*.

## Replacement codes

In the email editor or the flow editor, the deal codes are in the **Deals** group. They use the contact’s most recently active open deal. If the contact has no open deal, they use the most recently active deal of any status.

| Name | Code | Description |
| --- | --- | --- |
| Deal Title | `{deal_title}` | The title of the contact’s most recently active deal. |
| Deal Value | `{deal_value}` | The formatted total of that deal. |
| Deal Products | `{deal_products}` | One line per product: quantity, name, and the unit price. |
| Deal Custom Field | `{deal_custom_field.internal_name}` | The value of a custom property. `internal_name` is the field’s internal name, or its ID. |

A product line looks like `2× Name at $10.00/unit`, using your currency settings. If the contact has no deal, the code doesn’t print a value.

## Use Sales Pipeline with an AI agent

When you [connect an AI agent to Groundhogg](https://groundhogg.io/doc/connect-an-ai-agent-to-groundhogg/), Sales Pipeline adds its own abilities in the **Groundhogg Pipeline** category, so the agent can find and manage deals and pipelines for you. The agent can only do what the WordPress user it signs in as is allowed to do. A sales rep’s agent only sees and changes that rep’s own deals.

| Ability | What it does | Needs |
| --- | --- | --- |
| List Pipelines | Lists every pipeline with its stages, in order. | view_pipelines |
| Create Pipeline | Creates a pipeline with its stages. Won and lost aren’t stages; every pipeline has them. | add_pipelines |
| Update Pipeline | Renames a pipeline, or archives or restores it. | edit_pipelines |
| Add Pipeline Stage | Adds a stage at the end, or at a position. | add_pipelines |
| Update Pipeline Stage | Renames a stage or moves it to another position. Deals stay in it. | edit_pipelines |
| Delete Pipeline Stage | Deletes a stage. It refuses while the stage has open deals, if it’s the pipeline’s only stage, and it stops to list any Create Deal, Move Deal, or Deal Entered Stage steps that use the stage, unless the agent is told to delete it anyway. | delete_pipelines |
| Search Deals | Finds and lists deals you’re allowed to see. | view_deals |
| Get Deal | Reads one deal, and optionally its contacts, notes, and custom properties. | view_deals |
| Create Deal | Creates an open deal in a stage, with contacts and products. | add_deals |
| Update Deal | Changes a deal’s details and products. A deal with products gets its value from them. | edit_deals |
| Delete Deal | Deletes a deal for good. | delete_deals |
| Move Deal | Moves an open deal to another stage, even in another pipeline. This runs the Deal Entered Stage trigger. | edit_deals |
| Set Deal Status | Marks a deal won or lost, or reopens it. Won and lost run the matching triggers. | edit_deals |
| Add Deal Contact | Adds a contact to a deal. On an open deal this runs the Deal Entered Stage trigger for that contact. | edit_deals |
| Remove Deal Contact | Takes a contact off a deal. Neither is deleted. | edit_deals |
| Add Deal Note | Adds a note to a deal. | add_notes |

An agent can also build flows that use the Pipeline steps. Create Deal, Move Deal, and Deal Entered Stage can be part of a flow it creates, and the flow is always created inactive so you can review it before you turn it on. See [Build and Edit with AI](https://groundhogg.io/doc/build-and-edit-with-ai/) and [Working with the Abilities API (MCP)](https://groundhogg.io/doc/working-with-the-abilities-api-mcp/).

## Settings

1. Go to **Groundhogg » Settings**.
2. Open **Pipeline**.
3. Under **Currency**, choose the currency. The description says “Products sold will be charged in the above currency.” That spelling is what the screen shows.
4. Under **Separators**, leave the box unchecked for 1,234.56. Check **Use a comma when formatting decimal amounts and use a period to separate thousands** if you want 1.234,56.
5. Under **Currency Position**, choose where the symbol goes. Left puts the symbol in front. Right puts it after the amount. Left with space puts the symbol in front with a space. The last option also reads Left with space, but its example puts the symbol after the amount with a space. Use the example next to the label, not the repeated words, if those two look the same.

## Roles

Sales Pipeline doesn’t add new roles. It adds capabilities to the Groundhogg roles you already have. See [User Roles & Capabilities](https://groundhogg.io/doc/user-roles-capabilities/).

A sales rep only sees their own deals on the board, in the Deals list, in the mobile app, and through an AI agent, and can only edit, move, win, or lose their own deals. If you’re on a team, deal lists are limited to that team, and you can only open someone else’s deal when that owner is on your team. Filtering by **Deal Owner** narrows that list further. It never shows deals you couldn’t see already.

| Capability | Administrator | Marketer | Sales Manager | Sales Rep |
| --- | --- | --- | --- | --- |
| view_pipelines | ✅ | ✅ | ✅ | ✅ |
| edit_pipelines | ✅ | ✅ | ❌ | ❌ |
| add_pipelines | ✅ | ✅ | ❌ | ❌ |
| delete_pipelines | ✅ | ❌ | ❌ | ❌ |
| add_deals | ✅ | ✅ | ✅ | ✅ |
| view_deals | ✅ | ✅ | ✅ | ✅ |
| view_others_deals | ✅ | ✅ | ✅ | ❌ |
| edit_deals | ✅ | ✅ | ✅ | ✅ |
| edit_others_deals | ✅ | ✅ | ✅ | ❌ |
| delete_deals | ✅ | ✅ | ✅ | ✅ |
| delete_others_deals | ✅ | ✅ | ✅ | ❌ |

Reporting uses the separate view-reports permission. It isn’t one of the pipeline capabilities above.

## Code snippets

### Add a Pipelines menu to the WordPress admin bar

This snippet adds a **Pipelines** item to the WordPress admin bar, with a link to each active pipeline. It isn’t part of the plugin. Add it with WPCode or another snippet plugin. It doesn’t change plugin files.

It only shows for someone who can manage options. A sales rep doesn’t see it unless they have that capability. It lists up to 50 pipelines.

```
<?php
/**
 * Groundhogg Sales Pipelines → WP Admin Bar
 *
 * Adds a "Pipelines" menu to the admin toolbar with direct links
 * to each Groundhogg Sales Pipeline.
 *
 * Safe to use as a WPCode snippet. Does not modify plugin files.
 */

add_action( 'admin_bar_menu', 'gh_snippet_add_pipelines_to_admin_bar', 9999 );

function gh_snippet_add_pipelines_to_admin_bar( $wp_admin_bar ) {

    if ( ! is_admin_bar_showing() ) {
        return;
    }

    if ( ! current_user_can( 'manage_options' ) ) {
        return;
    }

    if ( ! function_exists( '\Groundhogg\get_db' ) ) {
        return;
    }

    $db = \Groundhogg\get_db( 'pipelines' );

    if ( ! $db ) {
        return;
    }

    $wp_admin_bar->add_node( [
        'id'    => 'gh-pipelines-root',
        'title' => 'Pipelines',
        'href'  => admin_url( 'admin.php?page=gh_pipeline' ),
    ] );

    $pipelines = $db->query( [ 'status' => 'active', 'limit' => 50 ] );

    if ( empty( $pipelines ) ) {
        return;
    }

    foreach ( $pipelines as $pipeline ) {

        if ( empty( $pipeline->ID ) ) {
            continue;
        }

        $wp_admin_bar->add_node( [
            'id'     => 'gh-pipeline-' . $pipeline->ID,
            'parent' => 'gh-pipelines-root',
            'title'  => esc_html( $pipeline->title ),
            'href'   => admin_url(
                'admin.php?page=gh_pipeline&action=edit&pipeline=' . intval( $pipeline->ID )
            ),
        ] );
    }
}
```

## FAQs / Troubleshooting

### Why does WordPress say Sales Pipeline is NOT RUNNING?

Groundhogg is inactive, or the site is below WordPress 6.9, PHP 7.4, or Groundhogg 4.9. The notice names which requirement failed. Update that, then reload.

### Why don’t I see deals in the mobile app?

Deals in the app need Groundhogg 4.10 or newer, and your user needs permission to view deals. In the app, open **More** and tap **Deals**.

### Why can’t I delete a stage?

If the stage still has deals on the board, move or close them first. You also need permission to delete pipelines. Seeing Delete in the stage menu isn’t enough on its own.

### Why won’t the new deal save?

Enter a Title, and add at least one contact. The messages are “Make sure your deal has a title!” and “Add one or more contacts to the deal first.” In the mobile app, only the title is required.

### Why can’t I edit a won or lost deal?

Closed deals are locked. The editor says “This deal was closed and can no longer be edited.” Choose **Make active** from the deal menu if you need to change it, or tap **Reopen** in the mobile app. Turn on **Show closed deals** if you can’t see the card.

### Why do amounts look like 1.234,56?

Go to **Groundhogg » Settings » Pipeline** and uncheck **Separators**. Checked formats amounts as 1.234,56. Unchecked formats them as 1,234.56.
