---
title: Can I give discounts based on a custom user field?
description: "Yes. Pricepep's User meta condition reads any field saved on a customer's account, such as a trade approval or membership level, and compares it."
url: "https://pricepep.com/docs/can-i-give-discounts-based-on-a-custom-user-field/"
updated: "2026-12-02"
category: FAQ
---

# Can I give discounts based on a custom user field?

Yes. Add the condition **User meta** to a rule, type the field's meta key, choose an operator and type the value. Example: approved trade customers have a "trade_approved" checkbox ticked in their user profile. A **Simple adjustment** with **Percentage discount** 20 and **User meta** `trade_approved` **is checked** gives them a $100.00 product for $80.00; other customers pay $100.00.

## How do I set it up?

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 `20`.
3. Under **Conditions**, click **Add Condition** and choose **User meta**.
4. Type the meta key in the first box ("data key"), for example `trade_approved`.
5. Choose the operator, for example **is checked**, and type a value in the last box ("value") if the operator needs one.
6. Click **Save Changes**.

## Which operators can I use?

| Operator | Example |
| --- | --- |
| **equals**, **does not equal** | `membership_level` equals `gold` |
| **contains**, **does not contain**, **begins with**, **ends with** | `customer_group` begins with `trade-` |
| **is checked**, **is not checked** | `trade_approved` is checked: any value except empty or 0 counts as ticked, "no" too; for yes/no fields use **equals** `yes` |
| **is empty**, **is not empty** | `billing_company` is not empty |
| **less than**, **less or equal to**, **more than**, **more or equal to** | `loyalty_points` more or equal to 500 |

Text comparisons are case-sensitive: "Gold" doesn't equal "gold".

## What should I know?

- **Logged-in customers only.** Guests have no user meta; only **is empty**, **does not contain**, **does not equal** and **is not checked** match them.
- **WooCommerce account fields** work by their meta key, for example `billing_company` or `billing_country`. They hold what the customer saved in their account, not what they type at checkout.
- **Membership plugins:** if a plugin gives members a role or a capability, use **User role** or **User capability** instead. With the Groups plugin active, **User capability** lists the Groups capabilities.
- **Show the price in the shop:** set **Change display prices in shop** to **Change - Include simple adjustments** on the **Settings** tab.

Every customer condition is in [customer conditions](/docs/customer-conditions/); for single accounts, see [prices for specific customers](/docs/can-i-set-special-prices-for-specific-customers/).

## Frequently asked questions

### Where do I find the meta key?

It's the name the field is saved under in the user's meta data. Custom field plugins normally use the field's name; a developer can look it up in the user meta table.

### Does User meta work for guests?

No. Guests have no account, so only is empty, does not contain, does not equal and is not checked match them.

### Can I use the company name customers saved in their account?

Yes. WooCommerce's billing_company works as a meta key, for example billing_company is not empty for customers who saved a company name.

## Related articles

- [Customer conditions: roles, users and order history](https://pricepep.com/docs/customer-conditions/)
- [Can I set special prices for specific customers?](https://pricepep.com/docs/can-i-set-special-prices-for-specific-customers/)
- [Can I set different prices for user roles?](https://pricepep.com/docs/can-i-set-different-prices-for-user-roles/)

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