Pricepep can use any product taxonomy as a condition, for example brands. Enable the taxonomy in WooCommerce > Pricepep > Settings > Enabled custom taxonomy conditions, and a condition with the taxonomy's name appears in the Custom Taxonomy group of the product condition list.
How do I give a discount on a brand?
- Go to WooCommerce > Pricepep > Settings.
- In the Conditions section, select the taxonomy in Enabled custom taxonomy conditions (for WooCommerce Brands it is
product_brand) and click Save Changes. - Open the Product Pricing tab and add a rule, for example Simple adjustment with Percentage discount 15.
- In Products, click Add Product, choose the condition named after the taxonomy (group Custom Taxonomy), keep in list and select the brand.
- Click Save Changes.
The list in Settings shows the taxonomy names (slugs) as registered by WordPress, for example product_brand, not their display labels. The condition in the rule editor has the same name.
What does a custom taxonomy condition check?
- Checks: the terms of the product in that taxonomy. For a variation, its own terms when it has any, otherwise the parent product's terms.
- Fields: terms of the taxonomy. When the taxonomy is hierarchical, selecting a term also matches its child terms.
- Operators: "in list", "not in list".
- Available in: Product pricing rules (Products / Products - Buy, Products - Get, Product Group); Cart discounts (Items); Checkout fees (Items).
- Example:
product_brandin list "Acme" in a cart discount's Items with Percentage discount per cart item 10 gives 10% off the Acme items in the cart.
Which taxonomies can I enable?
Every taxonomy registered for the product or product_variation post type, except product categories (product_cat), product tags (product_tag) and shipping classes (product_shipping_class), which have their own conditions. Typical examples are WooCommerce Brands and brand, vendor or collection taxonomies added by other plugins.
Developers can change the list with the rp_wcdpd_custom_condition_taxonomies and rp_wcdpd_custom_condition_taxonomy_object_types filters (see the filter reference).
Can I discount one marketplace vendor's products?
Yes, when your marketplace plugin keeps vendors in a product taxonomy, as WooCommerce Product Vendors and YITH WooCommerce Multi Vendor do: enable the vendor taxonomy here and select the vendor in the rule, as with a brand. Dokan, WCFM Marketplace and WC Vendors save the vendor as the product's author instead, and no Pricepep condition checks a product's author; a developer can add one as a custom condition.
What happens if I disable a taxonomy that rules use?
The rules keep the condition, but the editor shows "Custom taxonomy condition was disabled. Enable it or delete this placeholder after reviewing your settings." If the taxonomy no longer exists at all (the plugin that added it was removed), the message is "Custom taxonomy no longer exists. Delete this placeholder after reviewing your settings."
Related: how conditions work, product conditions, settings reference.
Frequently asked questions
How do I discount all products of a brand?
Enable the brand taxonomy (product_brand for WooCommerce Brands) in WooCommerce > Pricepep > Settings > Enabled custom taxonomy conditions, then add that condition, in list, with the brand in the rule's Products section.
Why is my taxonomy not in the list?
Only taxonomies registered for products or variations are listed, and categories, tags and shipping classes are left out because they have their own conditions.
Can I use a custom taxonomy in cart conditions?
No. Custom taxonomy conditions are product conditions: Products, Products - Get and Product Group in product pricing rules, and Items in cart discounts and checkout fees.
Can I discount the products of one marketplace vendor?
Yes, if the marketplace plugin keeps vendors in a product taxonomy, as WooCommerce Product Vendors and YITH WooCommerce Multi Vendor do. Dokan, WCFM and WC Vendors save the vendor as the product's author, which no Pricepep condition checks.