> ## Documentation Index
> Fetch the complete documentation index at: https://aiodapp.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Shipping Discount

> Template for creating free shipping or discounted shipping offers in AIOD.

Use **Shipping Discount** when a merchant wants to discount shipping rates.

This template is mainly for shipping-only offers. It can apply to all shipping methods, specific shipping methods, or all shipping methods except selected ones.

The template card says: "Offer free shipping or discounted shipping when conditions are met." The example shown in AIOD is "Free shipping for orders above \$100."

## When to use this template

Use this template for:

* Free shipping on all shipping methods.
* A percentage shipping discount.
* A fixed amount shipping discount.
* A fixed final shipping price.
* Free shipping when the cart meets a subtotal, quantity, weight, product, customer, or destination condition.
* A shipping discount that only applies to selected shipping methods.
* A shipping discount that excludes selected shipping methods.

Use another template when the merchant also needs product discounts, gifts, order discounts, BOGO logic, or multiple discount actions under one code.

## Entry point

In Shopify admin, open **Apps** > **AIOD Discount & Gift** > **Discount Templates**.

Click **Create** on the **Shipping Discount** card. AIOD opens a form titled **Shipping Discount**.

## Top-level controls

The form includes:

* **Custom Rule Builder**.
* **Discount ID (For your reference)** with placeholder `eg: FREE SHIPPING`.
* **Automatic discount** and **Discount code** methods.
* **When to apply discount**.
* **Apply discount to**.
* **Discount Type**.
* **Discount Value**.
* **Customer Segment**.
* **This discount can be combined with**.
* **Active Dates**.

AIOD also shows Shopify rule size, such as `Rule Size: 1.10 KB / 10 KB`.

### Status mode

The top-right status dropdown controls who can use or see the discount.

| Status                          | Meaning                                                                                |
| ------------------------------- | -------------------------------------------------------------------------------------- |
| **Live**                        | The discount is active for customers.                                                  |
| **Testing** or **Testing mode** | The discount is visible to the merchant for testing, but it is not live for customers. |
| **Deactive**                    | The discount is turned off.                                                            |

## Discount method

The **Discount Method** section has two modes.

| Method                 | Use it for                                                     |
| ---------------------- | -------------------------------------------------------------- |
| **Automatic discount** | Apply the shipping discount automatically in cart or checkout. |
| **Discount code**      | Require customers to enter a code at checkout.                 |

Automatic discounts show **Title** and **Keep same as identifier**.

Discount-code mode shows:

* **Discount Code**
* **Generate random code**
* **Copy discount code**
* **Add bulk discount codes**
* **Maximum Discount Code Uses**
* **Limit number of times this discount can be used in total**
* **Limit to one use per customer**

## When to apply discount

The **When to apply discount** section controls the condition for the shipping discount.

The default condition is **Always**.

The condition picker contains these categories:

| Category           | Conditions                                                                                         |
| ------------------ | -------------------------------------------------------------------------------------------------- |
| General            | **Always**                                                                                         |
| Cart/Order Details | **Cart Subtotal Amount**, **Order Weight**, **Cart Quantity**                                      |
| Product Details    | **Product**, **Collection**, **Variant**, **Variant Whose Metafield**, **Purchase Type**           |
| Shipping           | **Country**, **City**, **Zipcode**, **Method**                                                     |
| Customer Details   | **Customer Tags**, **Number of past orders**, **Customer Should Be Logged In**, **Customer Email** |

Some conditions reveal extra fields. For example, **Cart Quantity** shows an operator and quantity input.

Condition groups can include **AND condition** and **OR condition** controls.

## Apply discount to

The **Apply discount to** section controls which shipping methods receive the discount.

Options:

* **To all shipping methods**
* **To specific shipping methods**
* **To all shipping methods excluding these**

**To all shipping methods** was selected by default in the observed form.

When **To specific shipping methods** or **To all shipping methods excluding these** is selected, AIOD shows:

* A match dropdown with **Is** and **Contains**.
* A textbox labeled **Enter shipping methods one in each line**.

Use **To specific shipping methods** when only named shipping methods should receive the discount.

Use **To all shipping methods excluding these** when most shipping methods should receive the discount, except named methods.

## Discount value

The **Discount Type** dropdown controls how AIOD discounts shipping.

Options:

* **Percentage**
* **Fixed Discount**
* **Fixed Final Price**

The observed default was **Percentage**.

Enter the amount in **Discount Value**.

## Customer segment

The **Customer Segment** section restricts the shipping discount to selected Shopify customer segments.

AIOD describes this section as: "This discount will be only applicable for customers in the selected segments."

Use **Customer segments** to choose eligible Shopify customer segments.

### How should this discount combine with other discounts?

Read [**This discount can be combined with**](/docs/app/common-template-settings#this-discount-can-be-combined-with) for information about this.

## Active dates

The **Active Dates** section controls when the discount starts and ends.

Default fields:

* Start **Date**
* Start **Time**

Enable **Set end date** to reveal end date and time fields.

## Save

Click **Save** after configuring the discount method, conditions, shipping methods, discount value, customer segment, combinations, and active dates.
