WooCommerce AND Logic Filter for Multiple Terms
A WooCommerce AND logic filter requires a product to match every selected term in that filter. This fashion demo applies AND to the Occasion taxonomy. Select Everyday and Work together to see only products assigned both occasion terms. The result count makes the intersection visible.
Try this: Pick Everyday and Work; only pieces tagged both remain.
How this demo is configured
- Create a filter by Occasion (product attribute pa_occasion). Show as Checkboxes. Match all selected options.
Showing 1–12 of 38 results
-
Select options This product has multiple variants. The options may be chosen on the product page
Alder All-Weather Jacket
Price range: $149.00 through $164.00 -
Read more
Arc'teryx Beta LT Jacket
$450.00 -
Add to cart
Carhartt WIP Detroit Jacket
$268.00 -
Read more
Carhartt WIP Double Knee Pant
$148.00 -
Read more
Carhartt WIP Essentials Bag
$59.00 -
Read more
Carhartt WIP Madison Cord Shirt
$118.00 -
Read more
COS A-Line Midi Dress
$135.00 -
Sale
Read more
COS Cashmere Sweater
Original price was: $225.00.$180.00Current price is: $180.00. -
Add to cart
COS Knitted Midi Dress
$175.00 -
Add to cart
COS Oversized Poplin Shirt
$89.00 -
Add to cart
COS Quilted Crossbody Bag
$99.00 -
Add to cart
COS Wide-Leg Trousers
$135.00
How AND logic changes a multi-select
With AND logic, a product appears in a combined Everyday and Work selection only when it carries both Occasion terms. The demo uses the Occasion filter to make that rule visible.
OR logic includes products matching either selected term. Pick Everyday and Work together, then compare the result with the checkbox demo that uses the default OR behavior.
When shoppers need all chosen terms
Use AND when the shopper is expressing conditions that must all be true. A product may need multiple tags, attributes, or categories to match the combination.
Check that the catalog assigns multiple terms to the same products. Tags for use cases, occasions, or material combinations often support this pattern.
Set a filter to AND logic
- Open a product Filter Set and add a taxonomy filter with a multi-select view.
- Set Filter name (shown to shoppers) and a unique URL keyword, then choose the taxonomy under Choose taxonomy.
- Under How shoppers choose, select Checklist (multi-select).
- Under Allow multiple selections?, choose No, one choice (AND). Despite the label, the query requires every selected term when multiple terms are checked.
- Save and test a pair of terms known to share products.