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?
- Go to WooCommerce > Pricepep > Product Pricing and click Add Rule.
- Set Method to Simple adjustment, and under Adjustment choose Percentage discount and type
20. - Under Conditions, click Add Condition and choose User meta.
- Type the meta key in the first box ("data key"), for example
trade_approved. - Choose the operator, for example is checked, and type a value in the last box ("value") if the operator needs one.
- 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_companyorbilling_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; for single accounts, see 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.