> ## Documentation Index
> Fetch the complete documentation index at: https://docs.joinerywp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Rule types

> Every condition and action, and which plugin adds it.

## Conditions

| ID | Label | Looks at | Plugin |
| - | - | - | - |
| `customer_role` | Customer role | Cart | Core (free) |
| `cart_quantity` | Quantity | Cart | Core (free) |
| `cart_subtotal` | Cart subtotal | Cart | Core (free) |
| `product_category` | Product category | Line | Core (free) |
| `date_range` | Date | Cart | Core (free) |
| `dp_weekday` | Day of the week | Cart | Dynamic Pricing |
| `dp_first_order` | Customer’s orders (first order, or ordered before) | Cart | Dynamic Pricing |
| `b2b_trade_tier` | Trade tier | Cart | B2B & Wholesale |

## Actions

| ID | Label | Changes | Plugin |
| - | - | - | - |
| `percentage_off` | Percentage off each item | Line price | Core (free) |
| `cart_percentage_off` | Percentage off the cart | Cart total | Core (free) |
| `dp_tiered_price` | Tiered price by quantity | Line price | Dynamic Pricing |
| `dp_fixed_price` | Fixed price for each item | Line price | Dynamic Pricing |
| `dp_fixed_amount_off` | Fixed amount off each item | Line price | Dynamic Pricing |
| `dp_buy_x_get_y` | Buy X, get Y | Money off the cheapest qualifying lines, as its own cart line | Dynamic Pricing |
| `dp_free_gift` | Free gift | Adds a product to the cart at no charge | Dynamic Pricing |
| `gc_store_credit` | Give store credit | Customer's wallet, after the order is paid or completed | Gift Cards & Store Credit |

The IDs are what you'll see in the [REST API](https://docs.joinerywp.com/api-reference) and when [extending Joinery](https://docs.joinerywp.com/developers/extending.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.