---
title: Conditional Shipping by Product Tag
description: Show or hide a WooCommerce shipping method based on the product tags in the cart. Setup, options and use cases.
url: "https://wpfactory.com/docs/conditional-product-tags/"
updated: "2026-09-27"
category: How to
tags:
  - Conditional Shipping for WooCommerce
---

# Conditional Shipping by Product Tag

To show or hide a shipping method based on the product tags in the cart, use the Product Tags conditions in [Conditional Shipping for WooCommerce: Restrict Shipping Options by Anything](https://wpfactory.com/item/conditional-shipping-for-woocommerce/). Product tags are fully supported: you can require a method only when a tagged product is present, or hide a method when a tagged product is present.

![Product Tags condition section](https://wpfactory.com/wp-content/uploads/conditional-product-tags-1.png)

### How it works

WooCommerce lets you assign tags to products for organization and filtering. Conditional Shipping reads those tags from the items in the cart and matches them against the tags you select for a shipping method:

- **Require Product Tags** (`product_tag_incl`): the shipping method appears only when the cart contains a product with one of the selected tags.
- **Exclude Product Tags** (`product_tag_excl`): the shipping method is hidden when the cart contains a product with one of the selected tags.

### Step-by-step setup

1. Go to **WPFactory > Conditional Shipping** (also reachable at **WooCommerce > Settings > Conditional Shipping**).
2. Open the **Product Tags** section.
3. Tick **Enable condition** for Require Product Tags, Exclude Product Tags, or both.
4. For the shipping method you want to restrict (for example Flat rate or Local pickup), select one or more product tags in that method's value field. You only set a value for the method(s) you want to control, other methods are left untouched.
5. Save changes, then add a tagged product to the cart and check the available methods at cart or checkout.

### Options reference

| Label | Option ID | Type | Default | Free/Pro |
| --- | --- | --- | --- | --- |
| Require Product Tags (enable condition) | `wpjup_wc_cond_shipping_product_tag_incl_enabled` | Checkbox | No | Free |
| Require Product Tags (value, per method) | `wpjup_wc_cond_shipping_product_tag_incl_method[{method_id}]` | Multiselect of product tags | Empty | Free |
| Exclude Product Tags (enable condition) | `wpjup_wc_cond_shipping_product_tag_excl_enabled` | Checkbox | No | Free |
| Exclude Product Tags (value, per method) | `wpjup_wc_cond_shipping_product_tag_excl_method[{method_id}]` | Multiselect of product tags | Empty | Free |

**Note:** Require Product Tags honors the **Require all** general option. With Require all off (the default), the method shows if at least one cart item carries a selected tag. With Require all on, every item in the cart must carry a selected tag for the method to show.

### Use cases

- **Promotional shipping:** require a low-cost or free method only when a product tagged `sale` is in the cart.
- **Express for new arrivals:** require an express method only for products tagged `new_arrival`.
- **Keep bulky items off pickup:** exclude Local pickup when a product tagged `bulky` or `oversized` is in the cart.
- **Manage pre-orders:** exclude a method for products tagged `pre-order` while you fulfill regular stock first.

### Choosing Require or Exclude

- Use **Require Product Tags** to make a method available only when tagged products are present.
- Use **Exclude Product Tags** to hide a method when tagged products are present.

### Get more control

This feature is free. [Conditional Shipping for WooCommerce: Restrict Shipping Options by Anything](https://wpfactory.com/item/conditional-shipping-for-woocommerce/) Pro adds per shipping-instance conditions, so you can apply a rule to one specific shipping method instance inside one specific zone rather than to the method type everywhere. [See what Pro unlocks](https://wpfactory.com/item/conditional-shipping-for-woocommerce/).

Related articles

- [Conditional Shipping by Product Shipping Class](https://wpfactory.com/docs/conditional-product-classes/)
- [Conditional Shipping by Product Category](https://wpfactory.com/docs/conditional-category-shipping/)
- [Conditional Shipping by Product](https://wpfactory.com/docs/conditional-product-shipping/)
- [Getting Started with Conditional Shipping for WooCommerce](https://wpfactory.com/docs/how-to-use-conditional-shipping/)
- [Conditional Shipping by Date and Time](https://wpfactory.com/docs/date-time-conditional-shipping/)

 

[![Conditional Shipping for WooCommerce](https://wpfactory.com/wp-content/uploads/Conditional-Shipping-for-WooCommerce.webp)](https://wpfactory.com/item/conditional-shipping-for-woocommerce/)
