---
title: Can I select products by SKU in a pricing rule?
description: "Yes. Pricepep's product fields search by name or SKU, and Product metadata with the key _sku matches SKU patterns such as every SKU starting WIN-."
url: "https://pricepep.com/docs/can-i-select-products-by-sku-in-a-pricing-rule/"
updated: "2026-12-02"
category: FAQ
---

# Can I select products by SKU in a pricing rule?

Yes, in two ways. In a rule's **Products** (or **Items**, with a per cart item or per cart line method), the **Product** and **Product variation** fields find products by name or SKU (by ID too when a product has no SKU), and show the SKU in brackets. To cover a whole SKU range, add **Product metadata** with the key `_sku`, for example **begins with** `WIN-`: all winter products get the discount, including ones you add later.

## How do I pick products by SKU?

1. In the rule, under **Products**, click **Add Product** and choose **Product** (or **Product variation**) and **in list**.
2. Type the start of the SKU, or the start of a part of it after a dash or other punctuation (for HD-XXL: "HD" or "XXL"). Matches appear as "Name (SKU)", or "Name (#ID)" for products without a SKU.
3. Pick each product. The search shows up to 50 results, not counting products already selected; type more of the SKU to narrow it down.
4. Click **Save Changes**.

## How do I match every SKU with a prefix?

Example: 15% off every product whose SKU starts with `WIN-`.

1. Go to **WooCommerce > Pricepep > Product Pricing** and click **Add Rule**.
2. Set **Method** to **Simple adjustment**, and under **Adjustment** choose **Percentage discount** and type `15`.
3. Under **Products**, click **Add Product**, choose **Product metadata**, type `_sku` in "data key", choose **begins with** and type `WIN-` in "value".
4. Click **Save Changes**.

| Product | SKU | Price |
| --- | --- | --- |
| Wool coat | WIN-001 | $120.00 → $102.00 |
| Scarf | WIN-014 | $20.00 → $17.00 |
| Sun hat | SUM-002 | $25.00 (no change) |

## What should I know?

- **SKU patterns are case-sensitive:** `win-` doesn't match `WIN-001`. **contains**, **ends with**, **equals** and **does not equal** work too.
- **Variations** are compared by the parent product's SKU. If only the variations have SKUs, a prefix rule doesn't match them: give the parent product a SKU with the prefix, or use **Product variation**.
- **Many products** are easier to target by category, tag or attribute than by long product lists; see [can I import pricing rules from a CSV file?](/docs/can-i-import-pricing-rules-from-csv/)

More about the metadata condition in [discounts by a custom field](/docs/can-i-discount-products-by-a-custom-field/) and the [product conditions](/docs/product-conditions/) reference.

## Frequently asked questions

### Can I paste a list of SKUs?

No. Pick the products one by one, or match many SKUs at once with Product metadata, the key _sku and begins with, contains or ends with.

### Why don't I see every matching product?

A search shows at most 50 results, not counting products already selected. Type more of the name or SKU to narrow it down.

## Related articles

- [Product conditions: products, categories, tags, price](https://pricepep.com/docs/product-conditions/)
- [Can I discount products by a custom field?](https://pricepep.com/docs/can-i-discount-products-by-a-custom-field/)
- [Can I import pricing rules from a CSV file?](https://pricepep.com/docs/can-i-import-pricing-rules-from-csv/)

All articles in [FAQ](https://pricepep.com/docs-category/faq/)
