# 3. Configuration

Plugin settings are located at **Extensions → My Extensions → Margins & Purchase Prices in Product Listing → ... → Configure**.

![Plugin configuration page](https://459847022-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LtiS3-dzuXFp_IH7yRw-1972196547%2Fuploads%2Fgit-blob-b6d03afbc1fc7d7b2e3550fbfc3f551276cbd2ef%2F4.png?alt=media)

## Calculation Method

### Percentage Calculation Method

Determines how the percentage margin in the **Margin %** column is calculated.

| Option                                | Formula                                               | Description                                  |
| ------------------------------------- | ----------------------------------------------------- | -------------------------------------------- |
| **Margin (Gross Margin)** *(default)* | `(Net Price − Purchase Price) / Net Price × 100`      | Profit as a percentage of the selling price  |
| **Markup**                            | `(Net Price − Purchase Price) / Purchase Price × 100` | Profit as a percentage of the purchase price |

**Example:** Purchase price €60, net price €100

* Gross Margin: (100 − 60) / 100 × 100 = **40%**
* Markup: (100 − 60) / 60 × 100 = **66.7%**

***

## Margin Thresholds

The thresholds control the color coding in the **Margin %** column.

### Low Margin Threshold (%)

**Default: 10**

Margins below this value are shown in **red**. Red indicates that the margin is critically low or even negative (selling below purchase price).

### Medium Margin Threshold (%)

**Default: 30**

* Margins between the low threshold and this value are shown in **yellow**.
* Margins at or above this value are shown in **green**.

**Example with default values:**

* Margin < 10% → Red
* 10% ≤ Margin < 30% → Yellow
* Margin ≥ 30% → Green
