# Reorder Link for a Regular Customer

> Rebuilds a customer's last order with current stock and prices, and sends a Payplug link to pay.

- Job: [Customers](https://storeagent.ai/mcp-recipes/job/customers/)
- 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) + Payplug
- Works in: Claude, ChatGPT, Cursor and any MCP client connected to the store through StoreAgent MCP
- Web page: https://storeagent.ai/mcp-recipes/payplug-repeat-order-link/

## The prompt

```text
My customer [customer email] wants to reorder what they bought last time. Find their most recent WooCommerce order and list its items. Check each product for current stock and price, and tell me what changed since that order. Suggest a swap for anything out of stock. Show me the new total and ask me to confirm. After I confirm, create a Payplug payment link with those items and their saved address, and give me the link and a short message to send.
```

## What happens when you paste it

You: My customer [customer email] wants to reorder what they bought last time…

Assistant: The last order from Hugo Bernard, 6 weeks ago, had 4 items. Coffee Beans 1kg went up from 24.00 to 26.50 EUR. The Ceramic Dripper is out of stock; the Glass Dripper is the closest match. Calling: `woocommerce/orders-query`, `woocommerce/products-query`, `payplug/create-payment-link`.

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

Assistant: After your OK, order #5107 was created for 118.50 EUR with the Glass Dripper in place of the Ceramic one. The Payplug link and a short message are ready.

## Abilities this recipe calls

- **Find orders** (`woocommerce/orders-query`, read only, from WooCommerce): Finds orders by status, customer, email or date, with the items in each order.
- **Find products** (`woocommerce/products-query`, read only, from WooCommerce): Finds products by name, SKU, status, type or stock status, with prices and stock.
- **Create a payment link** (`payplug/create-payment-link`, asks first, from Payplug): Creates an order for a customer and a Payplug link they can use to pay for it online.

## Variations

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

- Double the quantities from the last order.
- Use their order from last December instead.

## Related recipes

- [Answer a Where Is My Order Question](https://storeagent.ai/mcp-recipes/trackship-where-is-my-order.md): Paste a customer's email and get the full tracking story plus a ready reply.
- [Find Failed Shipping Notifications](https://storeagent.ai/mcp-recipes/trackship-failed-shipping-notifications.md): See which tracking emails and texts never reached customers, and who needs a manual update.
- [Tag Customers Who Stopped Opening My Emails](https://storeagent.ai/mcp-recipes/mail-mint-win-back-quiet-customers.md): Finds paying customers who have not opened an email in 90 days, checks their order history, and tags them for a win-back email after your OK.

---

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/
