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?
- In the rule, under Products, click Add Product and choose Product (or Product variation) and in list.
- 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.
- Pick each product. The search shows up to 50 results, not counting products already selected; type more of the SKU to narrow it down.
- Click Save Changes.
How do I match every SKU with a prefix?
Example: 15% off every product whose SKU starts with WIN-.
- Go to WooCommerce > Pricepep > Product Pricing and click Add Rule.
- Set Method to Simple adjustment, and under Adjustment choose Percentage discount and type
15. - Under Products, click Add Product, choose Product metadata, type
_skuin "data key", choose begins with and typeWIN-in "value". - 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 matchWIN-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?
More about the metadata condition in discounts by a custom field and the 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.