> For the complete documentation index, see [llms.txt](https://kb.moomoo.agency/uni-cpo-4-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.moomoo.agency/uni-cpo-4-documentation/usage/panel/shipping-classes-logic.md).

# Shipping Classes Conditional Logic

## Overview

Shipping classes conditional logic allows store owners to use different shipping methods and/or set shipping cost of their products created in Uni CPO with custom options. It levels up the possibility of product customization, including different shipping possibilities.

## Examples of use cases

* Offer different shipping cost depending on the weight calculated based on dimension options chosen.
* Differentiate shipping costs based on some material option.
* Etc.

## How it works

There is a new icon on the panel. It looks like this:

<figure><img src="/files/TJa7Nf6D8Ste7WrKRL4e" alt=""><figcaption><p>Shipping classes conditional logic icon</p></figcaption></figure>

This icon opens a new modal window where you can enable the conditional logic and add conditions:

<figure><img src="/files/o83P8hrzycixSrupSkWt" alt=""><figcaption><p>Shipping classes conditional logic modal window</p></figcaption></figure>

Adding conditions for shipping classes logic works exactly like adding conditions for formula logic or weight calculation logic. This is the example:

<figure><img src="/files/KrKOc5T619LmslU4wNsg" alt=""><figcaption><p>Adding a condition</p></figcaption></figure>

Important! Shipping classes must be added in advance in WooCommerce -> Settings -> Shipping -> Shipping classes. Example:

<figure><img src="/files/PqUTH3gSOHvPdizNcRFy" alt=""><figcaption><p>Shipping classes added in WooCommerce</p></figcaption></figure>

All shipping classes created in WooCommerce will be available in the select for the condition, as shown above. You can create simple or quite complex rules based on which a specific chosen shipping class will be added to the cart item dynamically!

Same as for any conditional logic builders in Uni CPO, this one works like this: the first match will stop iteration through conditions. **Based on this knowledge: only ONE shipping class can be added using shipping class conditional logic.**&#x20;
