# Set a Store-Wide Discount for a Wholesale Role

> Shows what a sample customer pays now, sets a flat percentage off every product for one role, then checks the new prices.

- 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: ~20 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/role-wide-wholesale-discount/

## The prompt

```text
I want the [Gold] wholesale role to get [25]% off the regular price of every product. First list my wholesale roles and show the pricing rule overview. Pick one customer in that role and show me what they pay now on [3] products. Then tell me exactly what you will change and wait for my OK, because this replaces any flat discount the role has now. After saving, check the same 3 products again and show me before and after.
```

## What happens when you paste it

You: I want the [Gold] wholesale role to get [25]% off the regular price of every product…

Assistant: Gold has 34 members and 2 role-level discounts exist in the store. Sample customer Hartley Foods pays $30, $18 and $7.20 on the 3 products. Calling: `wholesale-suite/list-wholesale-roles`, `wholesale-suite/get-pricing-overview`, `wholesale-suite/list-wholesale-customers`, `woocommerce/products-query`, `wholesale-suite/get-effective-price`, `wholesale-suite/set-global-wholesale-discount`.

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

Assistant: Gold now gets 25% off retail on every product without its own wholesale price. Products with a saved Gold price keep that price. 1 of the 3 sample prices changed.

## Abilities this recipe calls

- **List wholesale roles** (`wholesale-suite/list-wholesale-roles`, read only, from Wholesale Suite): Lists every wholesale role with its member count and tax exempt status.
- **Get pricing overview** (`wholesale-suite/get-pricing-overview`, read only, from Wholesale Suite): Counts the wholesale pricing rules set up at product, category, role and quantity level.
- **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.
- **Find products** (`woocommerce/products-query`, read only, from WooCommerce): Finds products by name, SKU, status, type or stock status, with prices and stock.
- **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 global wholesale discount** (`wholesale-suite/set-global-wholesale-discount`, asks first, from Wholesale Suite): Sets or removes a flat percentage off every product 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 flat discount from the [Gold] role.
- Use [15]% for the [Wholesale Customer] role instead.

## 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/
