# Put a Wholesale Discount on One Product Category

> Sets a percentage off a whole category for a wholesale role, and checks a product in that category before and after.

- Job: [Pricing & wholesale](https://storeagent.ai/mcp-recipes/job/pricing/)
- What it does: Asks first: changes your store, only after you say yes
- Time saved: ~15 min vs doing it by hand
- Requires: StoreAgent (free plugin, MCP on every plan) + Wholesale Suite
- Works in: Claude, ChatGPT, Cursor and any MCP client connected to the store through StoreAgent MCP
- Web page: https://storeagent.ai/mcp-recipes/category-wholesale-discount/

## The prompt

```text
Set a [15]% wholesale discount for the [wholesale_customer] role on the product category with ID [category ID]. Before you change anything, check what a customer in that role pays now for product [product ID], which is in that category. Show me the plan and wait for my OK, because this replaces any discount the category has for that role. After saving, check the same product again and show me the new price.
```

## What happens when you paste it

You: Set a [15]% wholesale discount for the [wholesale_customer] role on the product category with ID [category ID]…

Assistant: Sample customer Brightline Cafe pays $12.00 for product 1182 now, which is its saved wholesale price. Calling: `wholesale-suite/list-wholesale-customers`, `wholesale-suite/get-effective-price`, `wholesale-suite/set-category-wholesale-discount`.

Assistant: This will make changes in WooCommerce. Do you want me to go ahead?

Assistant: Category 37 now has 15% off for Wholesale Customer. Product 1182 is still $12.00 for Brightline Cafe because its saved product price takes priority.

## Abilities this recipe calls

- **List wholesale customers** (`wholesale-suite/list-wholesale-customers`, read only, from Wholesale Suite): Lists wholesale customers with their role, last order date and lifetime spend.
- **Get effective price** (`wholesale-suite/get-effective-price`, read only, from Wholesale Suite): Shows the wholesale price a specific customer pays for a product after pricing rules.
- **Set category wholesale discount** (`wholesale-suite/set-category-wholesale-discount`, asks first, from Wholesale Suite): Sets or removes a percentage discount on a whole category for a wholesale role.

## Variations

Add one of these to the end of the prompt. Swap anything in [brackets] for your own details.

- Remove the category discount for that role instead.
- Do the same for category IDs [ID, ID].

## Related recipes

- [Spot Wholesale Prices Below Your Margin](https://storeagent.ai/mcp-recipes/wholesale-margins.md): Checks every wholesale price against retail so nothing sells at a loss after the last price change.
- [Put a Group of Products on Sale](https://storeagent.ai/mcp-recipes/bulk-sale-prices.md): Sets a sale price on every product you name, or that matches a search, and shows the old and new prices before anything changes.
- [Check What a Wholesale Customer Actually Pays](https://storeagent.ai/mcp-recipes/check-customer-wholesale-price.md): Answers "what price does this account see" by comparing the saved wholesale price with the final price after category and role rules.

---

Part of the StoreAgent WooCommerce MCP Recipes directory: https://storeagent.ai/mcp-recipes/ (index for LLMs: https://storeagent.ai/mcp-recipes/llms.txt). Get StoreAgent free: https://app.storeagent.ai/sign-up/
