> For the complete documentation index, see [llms.txt](https://help.mimeeq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.mimeeq.com/commerce-and-integrations/woocommerce/discount-codes.md).

# Discount Codes

Use WooCommerce coupons with Mimeeq configured products — the mimeeq-custom tag, product-specific discounts, and bundle-pricing quirks.

## Quick Overview

WooCommerce's regular coupon system works with Mimeeq products. This guide covers the simple case (a single configured product) and the case where several parts are bundled together in one cart.

***

## The Basics

### Every Configured Product Gets a Tag Automatically

Products created from a customer's configuration are automatically tagged **`mimeeq-custom`** — you don't have to set this up yourself. You can use this tag to target Mimeeq products specifically with a coupon, without having to list every product one by one.

### Bundled Products Need a Little More Care

If several parts are bundled together into one cart line (see [Add to Cart Methods](/commerce-and-integrations/woocommerce/add-to-cart.md)), a coupon aimed at "one product" needs to specifically target the right part of that bundle — more on this below.

***

## Setting Up a Basic Discount Code

### Step 1 (Optional): Group Your Mimeeq Products

You can filter or group products by the automatic `mimeeq-custom` tag, or create your own product category and assign it manually if you'd like more control over which products a coupon applies to.

1. Go to **WP Admin → WooCommerce → Products**
2. Filter by tag: `mimeeq-custom`

### Step 2: Create the Coupon

1. Go to **WP Admin → WooCommerce → Coupons**
2. Click **Add coupon**
3. Enter a coupon code
4. Choose the discount type (fixed amount, percentage, or free shipping)
5. Restrict it to Mimeeq products — two ways to do this, depending on what you need:

* **By product or category** — WooCommerce's own **Usage restriction → Products** or **Product categories** fields
* **By the `mimeeq-custom` tag** — WooCommerce doesn't support restricting by tag out of the box, so this plugin adds its own **"Mimeeq products only"** checkbox to the **Usage restriction** tab, right under "Individual use only". Tick it and the coupon only applies when the cart contains at least one product tagged `mimeeq-custom` — no need to list products or maintain a category

6. Set any other conditions you need
7. **Publish** the coupon

![Screenshot: Mimeeq products only checkbox in the coupon's Usage restriction tab](https://621103948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsqWfi8ifBhTdkvf1vOlY%2Fuploads%2FySLsAd6DAXrEw4c37iAX%2F08-discount-codes-01-mimeeq-pr_dgjgs4.png?alt=media)

### Step 3: Test It

1. Visit your store
2. Add a Mimeeq-configured product to the cart
3. Go to checkout
4. Apply the discount code
5. Confirm it applies correctly

***

## Discount Codes with Bundled Products

### Discounts for the Whole Order

These work exactly as you'd expect, no special setup needed:

* A percentage off the whole order
* A fixed amount off the whole order
* Free shipping

### Discounts Targeting a Specific Product

This is where it gets a little less obvious: when several parts are bundled into a single cart line, WooCommerce only "sees" one main (master) item for that line. So a coupon restricted **by product or category** needs to target that **master component** specifically — either directly, or through a category it belongs to. (The **"Mimeeq products only"** tag-based checkbox doesn't have this limitation — it checks the whole cart, not a specific line item.)

> **Important to know:** the discount applies to the value of the **entire bundle**, not just the master component's own price.

**Example:** if the master component is worth £1,000 inside a £3,000 bundle, a 10% coupon targeting that master component gives a £300 discount (10% of the full £3,000), not £100.

***

## Best Practices

* When discounting bundles, target the master component
* Test any bundle-related coupon before making it live
* Keep a note of which products act as "master" components in your bundles, so this doesn't catch anyone off guard later
* For simplicity, consider order-level discounts instead of product-specific ones when bundles are involved

***

## Other Ways to Offer a Discount

* **Adjust the price directly in Mimeeq** if you want the discount to simply show up as the price — no coupon code needed
* **WooCommerce automatic discounts**, for storewide or category-wide promotions that don't need a code
* **Dynamic pricing plugins** (such as WooCommerce Dynamic Pricing) can be used alongside Mimeeq products

***

## Related Articles

* [Admin Settings](/commerce-and-integrations/woocommerce/admin-settings.md)
* [Add to Cart Methods](/commerce-and-integrations/woocommerce/add-to-cart.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.mimeeq.com/commerce-and-integrations/woocommerce/discount-codes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
