Conditions based on product categories
- Show or hide fields & sections based on product categories. Below is the list of conditions available to display fields & sections based on the categories of the products in the cart.
- Cart contains
- Cart not contains
- Cart only contains
Example #1:Show field xyz if the cart contains products only from the category ‘All Categories’
![](https://jcodex.com/wp-content/uploads/2023/08/WooCommerce-Checkout-Register-Form-Editor-‹-jcodex-—-WordPress-01-07-2025_11_32_AM-2.png)