> For the complete documentation index, see [llms.txt](https://magecomp.gitbook.io/shopify/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://magecomp.gitbook.io/shopify/apps/codfy-cash-on-delivery/codfy-cash-on-delivery.md).

# CODFY Cash on Delivery

As we discussed, this Shopify app allows admins to set the cash-on-delivery payment methods for their customers' orders.

To activate this, you must follow these few steps:

<mark style="color:blue;">**Step #1**</mark>

Go to your store's **Settings** and select the **Payments** option.

<figure><img src="/files/jpPQfaNnfb6IDBrweTJq" alt=""><figcaption></figcaption></figure>

<mark style="color:blue;">**Step #2**</mark>

Scroll down to **Manual payment methods,** select **+ manual payment method,** and add **Cash on Delivery (COD)** as the payment method.

<figure><img src="/files/zZVwy2GdRaYL0ITXHCjb" alt=""><figcaption></figcaption></figure>

<mark style="color:blue;">**Step #3**</mark>

Fill in the required details as per your preferences and **Activate Cash on Delivery (COD)**.

<figure><img src="/files/50fJXIkubNlsSlkGI3Et" alt=""><figcaption></figcaption></figure>

<mark style="color:blue;">**Step #4**</mark>

Return to the main page of the app backend and select the **Cash on Delivery (COD)** option.

<figure><img src="/files/HYlN1QpDaNrPH4NC3K3h" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/fMsh0leDskKq8buWOf4E" alt=""><figcaption></figcaption></figure>

After enabling COD, you can control its visibility using multiple conditions:

#### <mark style="color:$primary;">1. Order Amount Conditions:</mark>

You can restrict COD availability based on the total cart value.

#### Options:

* **Minimum Order Amount:** COD will only be available if the order value is equal to or greater than this amount
* **Maximum Order Amount:** COD will be available only if the order value is below this limit

<figure><img src="/files/LcMkofdoadDm6P4VXje5" alt=""><figcaption></figcaption></figure>

So, for example, we have set 1500 as the minimum order amount and 2500 as the maximum order amount.

So now, if any customer's total order amount **is less than 1500** or **more than 2500**, they will **not be able to leverage the Cash-on-Delivery payment method**. Whereas customers whose total order amount is between 1500 to 2500 can opt for the COD payment method.

When you are done with these settings, select the **Save** button.

After this, you will be able to select the Cash on Delivery option during the checkout process in the **Payments** section.

<figure><img src="/files/r9qXmNJxeYZ3miRCF5uO" alt=""><figcaption></figcaption></figure>

<mark style="color:blue;">**Frontend Result**</mark>

1. **COD option for order amounts above 1500**

<figure><img src="/files/ldUh3LHDsMz98S33ctun" alt=""><figcaption></figcaption></figure>

2. **COD option&#x20;**<mark style="color:red;">**not available**</mark>**&#x20;for order amounts&#x20;**<mark style="color:red;">**under 1500**</mark>

<figure><img src="/files/IfgoA0a4eS3rlkwqi1lC" alt=""><figcaption></figcaption></figure>

3. **COD option&#x20;**<mark style="color:red;">**not available**</mark>**&#x20;for order amounts&#x20;**<mark style="color:red;">**above 2500**</mark>

<figure><img src="/files/0Rv3Lh1lXb9hPY53qtwn" alt=""><figcaption></figcaption></figure>

#### <mark style="color:$primary;">2. Country-Based Configuration:</mark>

Control whether COD is available depending on the customer’s shipping country.

#### Available Settings:

* **Hide COD for specific countries:**\
  COD will not be shown if the customer belongs to selected countries
* **Show COD for specific countries:**\
  COD will only be shown for selected countries and hidden for all others

📌 **Tip:** Use this when COD is supported only in certain regions.

<figure><img src="/files/a2CbUkJAzExb4CtYrRzM" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/tmnq0Ossn2XfMV122Ug2" alt=""><figcaption></figcaption></figure>

#### <mark style="color:$primary;">3. Country & State-wise COD Hide/Show</mark>

The **Country & State-wise COD Hide/Show** feature allows you to control the availability of the **Cash on Delivery (COD)** payment method based on the customer's shipping country and state. You can either hide COD for selected locations or make COD available only for selected countries and states.

#### How to Configure

#### Step 1 : Navigate to Country & State Rules

Scroll down to the **Country & State Rules** section.

<figure><img src="/files/ezAnEsbVWmnH9ZJuppEc" alt=""><figcaption></figcaption></figure>

#### Step 2: Enable Country & State Rules

Enable the **Country & State Rules** option.

Once enabled, additional configuration options will appear.

#### Step 3: Select the Rule Action

Choose how you want the rule to work.

* **Hide** – Hide the Cash on Delivery payment method for customers from the selected country and state.
* **Show Only** – Display the Cash on Delivery payment method only for customers from the selected country and state.

#### Step 4: Select the Country

Choose the country where you want to apply the rule.

#### Step 5: Select the State

After selecting the country, choose one or more states or provinces where the rule should be applied.

#### Step 6: Save the Configuration

Click **Save** to apply the changes.

The rule will now be applied during checkout.

### Example 1 – Hide COD

#### Configuration

* **Country:** India
* **State:** Gujarat
* **Rule Action:** Hide

**Result**

Customers whose shipping address is in **Gujarat, India**, will not see the **Cash on Delivery** payment option during checkout.

### Example 2 – Show Only COD

#### Configuration

* **Country:** India
* **State:** Maharashtra
* **Rule Action:** Show Only

**Result**

Only customers with a shipping address in **Maharashtra, India**, will be able to use the **Cash on Delivery** payment method.

> **Note:**
>
> * The rule is evaluated using the customer's **shipping country and state** during checkout.
> * Make sure the customer enters a valid shipping address for the rule to be applied correctly.
> * If no configured rule matches the customer's location, the COD payment method will follow your app's default settings.

#### <mark style="color:$primary;">4. Limit COD by Products</mark>

The **Limit COD by Products** feature allows you to control the availability of the Cash on Delivery (COD) payment method based on specific products in the customer's cart.

This feature is useful if you want to disable COD for certain products such as expensive items, customized products, fragile products, or pre-order products. You can also choose to allow COD only for selected products.

<figure><img src="/files/Ei5YY9pFEU0uD4PrPn6i" alt=""><figcaption></figcaption></figure>

### Why Use Product Rules?

The Product Rules feature helps merchants control Cash on Delivery availability for specific products based on their business requirements.

Common use cases include:

* Disable COD for high-value products.
* Prevent COD for customized or made-to-order products.
* Restrict COD for fragile or oversized items.
* Allow COD only for selected products.
* Reduce fake COD orders and minimize delivery risks.

### How to Configure Product Rules

#### Step 1: Enable Product Rules

Open the **CODFY Cash on Delivery** app and scroll down to the **Product Rules** section.

Enable the **Limit COD by Products** option.

<figure><img src="/files/Qttva4RaugKH2Z0FXMG0" alt=""><figcaption></figcaption></figure>

#### Step 2: Choose Availability

After enabling the rule, select how you want the rule to work.

You will find two options:

* **Exclude** – Hide Cash on Delivery when the cart contains any of the selected products.
* **Allow Only** – Show Cash on Delivery only when the cart contains the selected products.

<figure><img src="/files/JYUAAnaOeXUnR8mgZqdb" alt=""><figcaption></figcaption></figure>

#### Step 3: Select Products

Click **Manage Products**.

Select one or more Shopify products for which you want to apply the rule.

The selected products will appear in the **Selected Products** list.

<figure><img src="/files/akw0UVDKdD47l1qN6xxS" alt=""><figcaption></figcaption></figure>

#### Step 4: Save the Configuration

Click **Save** to apply the Product Rules.

The rule will become active immediately on your storefront.

<figure><img src="/files/A83ONFH9WwYFWunJkz1M" alt=""><figcaption></figcaption></figure>

## Example 1 – Exclude Products

#### Configuration

**Availability:** Exclude

**Selected Product:** Flower Pot

#### Result

| Customer Cart      | Cash on Delivery          |
| ------------------ | ------------------------- |
| Flower Pot         | ❌ Hidden                  |
| Flower Pot + Chair | ❌ Hidden                  |
| Chair              | ✅ Available               |
| Table              | <p></p><p>✅ Available</p> |

**Explanation**

Since **Flower Pot** is added to the Exclude list, Cash on Delivery will not appear whenever the customer adds this product to the cart. All other products will continue to display COD normally.

## Example 2 – Allow Only Products

#### Configuration

**Availability:** Allow Only

**Selected Product:** Flower Pot

#### Result

| Customer Cart      | Cash on Delivery |
| ------------------ | ---------------- |
| Flower Pot         | ✅ Available      |
| Flower Pot + Chair | ✅ Available      |
| Chair              | ❌ Hidden         |
| Table              | ❌ Hidden         |

**Explanation**

When **Allow Only** is selected, Cash on Delivery will be available only if the cart contains one of the selected products. For all other products, the COD payment option will remain hidden.

> #### Note
>
> * You can select multiple products.
> * The rule is evaluated based on the products currently present in the customer's cart.
> * Always click **Save** after making any changes to ensure the configuration is applied successfully

#### <mark style="color:$tint;">5. Collection Rules</mark>

The **Collection Rules** feature allows you to control the availability of the **Cash on Delivery (COD)** payment method based on the Shopify collections to which the products in the customer's cart belong.

This feature is useful when you want to enable or disable COD for an entire collection instead of configuring individual products. For example, you can disable COD for premium collections or allow COD only for selected collections.

<figure><img src="/files/qnUKTnIPjrdTtsgq2r3Y" alt=""><figcaption></figcaption></figure>

### Why Use Collection Rules?

Collection Rules help merchants manage Cash on Delivery settings for groups of products instead of configuring products one by one.

Common use cases include:

* Disable COD for premium collections.
* Restrict COD for wholesale collections.
* Enable COD only for selected collections.
* Manage COD settings more efficiently for large product catalogs.
* Reduce manual configuration by applying rules at the collection level.

## How to Configure Collection Rules

#### Step 1: Enable Collection Rules

Open the **CODFY Cash on Delivery** app and navigate to the **Collection Rules** section.

Enable the **Limit COD by Collections** option.

<figure><img src="/files/GM5lHPNyEZ1d4vpZuQn5" alt=""><figcaption></figcaption></figure>

#### Step 2: Choose Availability

After enabling the rule, choose how you want the rule to work.

You will see two options:

* **Exclude** – Hide Cash on Delivery when the cart contains products from the selected collections.
* **Allow Only** – Show Cash on Delivery only when the cart contains products from the selected collections.

<figure><img src="/files/qgeOTjyA6OkWx53DWMli" alt=""><figcaption></figcaption></figure>

#### Step 3: Select Collections

Click **Manage Collections**.

Select one or more Shopify collections for which you want to apply the rule.

The selected collections will appear in the **Selected Collections** list.

<figure><img src="/files/ZY1xAqYVLS1YMPsSdxp6" alt=""><figcaption></figcaption></figure>

#### Step 4: Save the Configuration

Click **Save** to apply the Collection Rules.

The changes will be applied immediately to your storefront.

<figure><img src="/files/d79k4DcY8etC9XM3sYIX" alt=""><figcaption></figcaption></figure>

## Example 1 – Exclude Collections

#### Configuration

**Availability:** Exclude

**Selected Collection:** Electronics

#### Result

| Customer Cart              | Cash on Delivery |
| -------------------------- | ---------------- |
| Mobile Phone (Electronics) | ❌ Hidden         |
| Laptop (Electronics)       | ❌ Hidden         |
| Electronics + Clothing     | ❌ Hidden         |
| Clothing Only              | ✅ Available      |

**Explanation**

Since the **Electronics** collection is excluded, Cash on Delivery will not be available whenever the cart contains any product from the Electronics collection.

## Example 2 – Allow Only Collections

#### Configuration

**Availability:** Allow Only

**Selected Collection:** Furniture

#### Result

| Customer Cart     | Cash on Delivery |
| ----------------- | ---------------- |
| Chair (Furniture) | ✅ Available      |
| Sofa (Furniture)  | ✅ Available      |
| Furniture + Decor | ✅ Available      |
| Clothing Only     | ❌ Hidden         |

**Explanation**

When **Allow Only** is selected, Cash on Delivery will only be available if the cart contains products from the selected collection. For all other collections, COD will remain hidden.

> #### Note
>
> * You can select multiple Shopify collections.
> * The rule is evaluated based on the collections of the products currently in the customer's cart.
> * If any selected collection matches the configured rule, the COD payment option will be shown or hidden according to the selected availability.
> * Remember to click **Save** after making changes.

#### <mark style="color:$primary;">6. Vendor-wise COD Hide/Show</mark>

The **Vendor Rules** feature allows merchants to control whether **Cash on Delivery (COD)** should be available based on the vendor of the products added to the customer's cart.

#### Step 1: Enable Vendor Rules

Under **Vendor Rules**, enable:

**☑ Limit COD by Vendors**

This activates the vendor-based COD restriction settings.

<figure><img src="/files/GBGqUe6mkRoF7pe9Prws" alt=""><figcaption></figcaption></figure>

#### Step 2: Choose the COD Availability Rule

After enabling the option, you will see two choices:

**Option 1: Exclude**

Select **Exclude** when you want to **hide COD for selected vendors**.

For example, if you select:

**Vendor: ABC Electronics**

Then:

* ABC Electronics product → ❌ COD hidden
* XYZ Furniture product → ✅ COD available
* PQR Fashion product → ✅ COD available

**When should you use it?**

Use **Exclude** when certain vendors do not support COD or require customers to pay online.

<figure><img src="/files/fc2gV3Zl7JCIgTqrjKGu" alt=""><figcaption></figcaption></figure>

#### Step 3: Select “Allow Only”

Select **Allow Only** when you want COD to be available **only for selected vendors**.

For example, select:

**Vendor: XYZ Furniture**

Then:

* XYZ Furniture product → ✅ COD available
* ABC Electronics product → ❌ COD hidden
* PQR Fashion product → ❌ COD hidden

**When should you use it?**

Use **Allow Only** when the merchant wants to provide COD only for products supplied by specific vendors.

<figure><img src="/files/VOPmxP7Mu7Wr4u98D7e4" alt=""><figcaption></figcaption></figure>

#### Step 5: Add Vendors

Click the **Add Vendors** button.

Select the vendor(s) that you want to apply the COD rule to.

The selected vendors will appear under:

**Selected Vendors**

For example:

> Selected Vendors (2)\
> ABC Electronics\
> XYZ Furniture

<figure><img src="/files/63uSs76jX82tMsTEm4m6" alt=""><figcaption></figcaption></figure>

#### Step 6: Save the Settings

After selecting the vendors and configuring **Exclude** or **Allow Only**:

1. Review your selected vendors.
2. Check the availability rule.
3. Click **Save**.

The vendor-based COD restriction will now be applied to your store.

### How the Feature Works - Example

Imagine a store sells products from three vendors:

| Vendor          | COD Rule |
| --------------- | -------- |
| ABC Electronics | Excluded |
| XYZ Furniture   | Allowed  |
| PQR Fashion     | Allowed  |

If a customer adds an **ABC Electronics** product to the cart:

**COD → Not available ❌**

If the customer adds an **XYZ Furniture** product:

**COD → Available ✅**

This gives merchants more control over COD instead of applying the same payment rule to every product in the store.

#### <mark style="color:$primary;">7. Shipping Rate-wise COD Hide/Show</mark>

The **Shipping Rate Rules** feature allows merchants to control the availability of **Cash on Delivery (COD)** based on the shipping rate selected by the customer at checkout.

#### Step 1: Enable “Limit COD by Shipping Rate”

Enable the **Limit COD by Shipping Rate** option.

This activates the shipping-rate-based COD restriction.

<figure><img src="/files/N9XRd6QTXyeQ0wTw8itT" alt=""><figcaption></figcaption></figure>

#### Step 2: Choose the Availability Rule

After enabling the option, you will see two choices:

**Exclude**

Select **Exclude** when you want to **hide COD for specific shipping rates**.

For example, if you select **Express Shipping**:

* Express Shipping → ❌ COD unavailable
* Standard Shipping → ✅ COD available
* Free Shipping → ✅ COD available

This is useful when a particular shipping method does not support COD or has different payment requirements.

<figure><img src="/files/FxokdIC6txCTnWfTUFJU" alt=""><figcaption></figcaption></figure>

**Allow Only**

Select **Allow Only** when you want COD to be available **only for selected shipping rates**.

For example, if you select **Standard Shipping**:

* Standard Shipping → ✅ COD available
* Express Shipping → ❌ COD unavailable
* Free Shipping → ❌ COD unavailable

This is useful when the merchant wants to offer COD only with specific delivery options.

#### Step 3: Add Shipping Rates

Click **Add Shipping Rates**.

Select or enter the shipping rate(s) that you want to apply the COD rule to.

The selected rates will appear under **Selected Shipping Rates**.

For example:

**Selected Shipping Rates**

* Express Shipping
* Standard Shipping

<figure><img src="/files/hngQCm1ZwlHbcj9a8jS2" alt=""><figcaption></figcaption></figure>

#### Step 4: Save the Settings

After selecting the shipping rates:

1. Confirm the **Exclude** or **Allow Only** rule.
2. Check the selected shipping rates.
3. Save the settings.

The COD option will now be shown or hidden according to the customer's selected shipping rate.

#### Example

Suppose your store offers:

* **Standard Shipping – ₹50**
* **Express Shipping – ₹150**
* **Free Shipping – ₹0**

The merchant selects **Exclude** and adds **Express Shipping**.

When a customer selects **Express Shipping** at checkout:

**Cash on Delivery → ❌ Hidden**

If the customer selects **Standard Shipping**:

**Cash on Delivery → ✅ Available**

#### <mark style="color:$primary;">8. Delivery Method-wise COD Hide/Show</mark>

The **Delivery Method Rules** feature allows merchants to control the availability of **Cash on Delivery (COD)** based on how the customer's order will be delivered.

#### Step 1: Enable “Limit COD by Delivery Method”

Enable the **Limit COD by Delivery Method** option.

This allows the merchant to apply COD restrictions to specific delivery methods.

<figure><img src="/files/rGGQWWAXmAwslrVFV10G" alt=""><figcaption></figcaption></figure>

#### Step 2: Choose the Availability Rule

After enabling the option, you will see two choices:

**Exclude**

Select **Exclude** when you want to **hide COD for specific delivery methods**.

For example, if you select **Store Pickup**:

* Store Pickup → ❌ COD unavailable
* Home Delivery → ✅ COD available

This is useful when a particular delivery method does not support Cash on Delivery.

**Allow Only**

Select **Allow Only** when you want COD to be available **only for selected delivery methods**.

For example, if you select **Home Delivery**:

* Home Delivery → ✅ COD available
* Store Pickup → ❌ COD unavailable

This is useful when the merchant wants to offer COD only for certain delivery methods.

#### Step 3: Add Delivery Methods

Click **Add Delivery Methods**.

Select the delivery method(s) for which you want to apply the COD rule.

The selected methods will appear under **Selected Delivery Methods**.

For example:

**Selected Delivery Methods**

* Shipping
* Local Pickup
* Local Delivery
* Pickup Point

<figure><img src="/files/sNqsaHzMvDocIpdFyoar" alt=""><figcaption></figcaption></figure>

#### Step 4: Save the Settings

After selecting the delivery methods:

1. Confirm whether you want to **Exclude** or **Allow Only** them.
2. Review the selected delivery methods.
3. Click **Save**.

The COD option will then be automatically shown or hidden according to the selected delivery method.

#### Example

Suppose a store offers:

* **Home Delivery**
* **Store Pickup**
* **Local Delivery**

The merchant selects **Exclude** and adds **Store Pickup**.

When the customer chooses:

**Store Pickup → ❌ COD is hidden**

But when the customer chooses:

**Home Delivery → ✅ COD is available**

#### <mark style="color:$tint;">9. Gift Card Rules</mark>

The **Gift Card Rules** feature allows you to control whether the **Cash on Delivery (COD)** payment method is available when a customer's cart contains a **Shopify Gift Card** product.

This feature is useful because many merchants prefer not to offer Cash on Delivery for gift cards to prevent misuse and ensure payment is collected before the gift card is issued.

<figure><img src="/files/r53VWWBWpx2HnxxZy0i6" alt=""><figcaption></figcaption></figure>

### Why Use Gift Card Rules?

Gift cards are prepaid products that are typically delivered digitally. Allowing Cash on Delivery for gift cards may increase the risk of fraudulent or unpaid orders. This feature helps merchants manage COD availability specifically for gift card purchases.

Common use cases include:

* Prevent Cash on Delivery for Gift Card purchases.
* Reduce the risk of fraudulent orders.
* Ensure customers pay online before receiving a Gift Card.
* Apply separate COD rules for Gift Card and non-Gift Card products.

## How to Configure Gift Card Rules

#### Step 1: Enable Gift Card Rules

Open the **CODFY Cash on Delivery** app and navigate to the **Gift Card Rules** section.

Enable the **Limit COD by Gift Cards** option.

<figure><img src="/files/QIwPaydxHDTpKYLiGnG5" alt=""><figcaption></figcaption></figure>

#### Step 2: Choose Availability

Select how you want the Gift Card Rule to work.

You can choose one of the following options:

* **Exclude** – Hide the Cash on Delivery payment method whenever the cart contains a Gift Card product.
* **Allow Only** – Show the Cash on Delivery payment method only when the cart contains a Gift Card product.

<figure><img src="/files/lt6fszjJrvUFBpH0PSDm" alt=""><figcaption></figcaption></figure>

#### Step 3: Save the Configuration

Click **Save** to apply the Gift Card Rule.

The configuration will immediately take effect on your storefront.

<figure><img src="/files/rqlwMyZxndFUk3789g3J" alt=""><figcaption></figcaption></figure>

## Example 1 – Exclude Gift Cards

#### Configuration

**Limit COD by Gift Cards:** Enabled

**Availability:** Exclude

#### Result

| Customer Cart               | Cash on Delivery |
| --------------------------- | ---------------- |
| Shopify Gift Card           | ❌ Hidden         |
| Shopify Gift Card + T-Shirt | ❌ Hidden         |
| T-Shirt                     | ✅ Available      |
| Shoes                       | ✅ Available      |

**Explanation**

When **Exclude** is selected, the Cash on Delivery payment option is automatically hidden if the customer's cart contains a Shopify Gift Card product. If no Gift Card is present in the cart, COD will remain available according to your other configured rules.

## Example 2 – Allow Only Gift Cards

#### Configuration

**Limit COD by Gift Cards:** Enabled

**Availability:** Allow Only

#### Result

| Customer Cart           | Cash on Delivery |
| ----------------------- | ---------------- |
| Shopify Gift Card       | ✅ Available      |
| Shopify Gift Card + Mug | ✅ Available      |
| T-Shirt                 | ❌ Hidden         |
| Shoes                   | ❌ Hidden         |

**Explanation**

When **Allow Only** is selected, the Cash on Delivery payment method will only be available if the cart contains a Shopify Gift Card product. For all other carts, COD will remain hidden.

> #### Note
>
> * This feature works only with **Shopify Gift Card** products.
> * The app automatically detects when a Gift Card product is present in the customer's cart.
> * If the cart contains a Gift Card product, the selected **Availability** option (**Exclude** or **Allow Only**) will determine whether the Cash on Delivery payment method is displayed.
> * Click **Save** after making changes to apply the configuration.

####

#### <mark style="color:$primary;">10. Discount Amount-wise COD Hide</mark>

The **Discount Amount-wise COD Hide** feature allows you to automatically hide the **Cash on Delivery (COD)** payment method when the cart discount exceeds the maximum discount amount configured in the app.

#### How to Configure

#### Step 1: Navigate to Discount Rules

Scroll down to the **Discount Rules** section.

<figure><img src="/files/pMog6U6IGURwRw8muTi1" alt=""><figcaption></figcaption></figure>

#### Step 2: Enable the Feature

Enable the **Limit COD by Discount Amount** option.

This activates the discount-based COD restriction.

#### Step 3: Enter the Maximum Discount Amount

In the **Maximum Discount Allowed** field, enter the maximum discount amount that customers can receive while still being eligible for Cash on Delivery.

For example, enter **8** if you want to allow COD only when the cart discount is **8 or less**.

#### Step 4: Save the Configuration

Click **Save** to apply the changes.

The rule will be applied automatically during checkout.

### How It Works

The app compares the total discount applied to the customer's cart with the configured **Maximum Discount Allowed** value.

* If the cart discount is **less than or equal to** the configured amount, the **Cash on Delivery** payment method will remain available.
* If the cart discount **exceeds** the configured amount, the **Cash on Delivery** payment method will be hidden.

### Example

#### Configuration

* **Limit COD by Discount Amount:** Enabled
* **Maximum Discount Allowed:** **₹500**

| Cart Discount | COD Availability |
| ------------- | ---------------- |
| ₹200          | ✅ Available      |
| ₹500          | ✅ Available      |
| ₹650          | ❌ Hidden         |
| ₹800          | ❌ Hidden         |

> **Note:**
>
> * The app checks the **total discount applied to the cart** during checkout.
> * Cash on Delivery will be hidden only when the cart discount is **greater than** the configured **Maximum Discount Allowed** value.
> * If no discount is applied or the discount is within the configured limit, Cash on Delivery will remain available.

#### <mark style="color:$primary;">11. Customer Tag-wise COD Hide/Show</mark>

The **Customer Tag-wise COD Hide/Show** feature allows you to control the availability of the **Cash on Delivery (COD)** payment method based on Shopify customer tags. You can either hide COD for specific customer tags or allow COD only for customers with selected tags.

#### How to Configure

#### Step 1: Locate the Customer Tag Rules Section

On the app dashboard, scroll down to the **Limit by Customer Tags** section.

This section allows you to create rules based on Shopify customer tags.

<figure><img src="/files/DJnljdncOpuuZ7SXcriX" alt=""><figcaption></figcaption></figure>

#### Step 2: Enable Customer Tag Rules

Enable the **Enable customer tag rules** checkbox.

Once enabled, additional configuration options will become available.

#### Step 3: Choose the Rule Action

Select how the rule should work.

You can choose one of the following options:

* **Hide** – Customers with the selected tags will not see the Cash on Delivery payment method.
* **Show Only** – Only customers with the selected tags will be able to use the Cash on Delivery payment method.

#### Step 4: Select Customer Tags

Click **Edit Tags**.

Choose one or more Shopify customer tags that you want to include in the rule.

After selecting the tags, they will appear under the **Selected Tags** list.

#### Step 5: Save the Configuration

Click **Save** to apply the changes.

The customer tag rule will now be active.

### How It Works

When a customer reaches the checkout page, the app checks whether the customer is logged in and verifies their Shopify customer tags.

Depending on the selected **Rule Action**:

* If **Hide** is selected, customers with the selected tags will not see the Cash on Delivery payment option.
* If **Show Only** is selected, only customers with the selected tags will be able to use Cash on Delivery during checkout.

### Example

#### Example 1 – Hide COD

**Configuration**

* Enable Customer Tag Rules: **Yes**
* Rule Action: **Hide**
* Customer Tag: **Wholesale**

**Result**

Customers tagged as **Wholesale** will not see the Cash on Delivery payment option during checkout.

#### Example 2 – Show Only COD

**Configuration**

* Enable Customer Tag Rules: **Yes**
* Rule Action: **Show Only**
* Customer Tag: **VIP**

**Result**

Only customers tagged as **VIP** will see the Cash on Delivery payment option. All other customers will not have access to COD.

> **Note:**
>
> * Customer Tag Rules work only for **logged-in customers** because Shopify customer tags are associated with customer accounts.
> * Ensure that the required customer tags already exist in your Shopify store before configuring this feature.
> * If no matching customer tag is found, the COD payment method will follow the configured rule action.

#### <mark style="color:$primary;">12. Phone Number Restrictions:</mark>

Block COD for specific customers using their phone numbers.

#### How it works:

* Add phone numbers to the restriction list
* Customers using these numbers will not see COD at checkout

📌 Useful for:

* Preventing fake or high-risk orders
* Blocking repeat COD return users

<figure><img src="/files/Srn0HsFcxHxPL7bK1jMR" alt=""><figcaption></figcaption></figure>

#### <mark style="color:$primary;">13. Email Address Restrictions:</mark>

Restrict COD based on customer email addresses.

#### How it works:

* Add email IDs to the restriction list
* COD will be hidden for these customers

📌 Useful for:

* Blocking known fraud users
* Restricting internal/test accounts

<figure><img src="/files/h8kSlszV0CaUSKOZyOQG" alt=""><figcaption></figcaption></figure>

#### <mark style="color:$primary;">14. Postal Code (ZIP Code) Configuration:</mark>

You can allow or restrict COD based on delivery locations.

**Offer COD for Selected Postal Codes**

When this option is used:

* COD will be available **only for the specified postal codes**
* Customers outside these postal codes will **not see COD at checkout**

📌 **Use this when:**

* COD is limited to specific cities or regions
* You want strict control over serviceable delivery areas

To simplify large-scale configuration, you can upload postal codes using a CSV file.

<figure><img src="/files/NLeytheJVKlbmVUZJAev" alt=""><figcaption></figcaption></figure>

**Hide COD for these Postal Codes**

When this option is used:

* COD will be available everywhere **except the specified postal codes**
* Customers from restricted postal codes will **not see COD**

📌 **Use this when:**

* You want to block COD in **remote or high-risk areas**
* You need to prevent COD misuse in specific regions

<figure><img src="/files/oIQTTdOtevfaTCgzqbPC" alt=""><figcaption></figcaption></figure>

**How it works:**

* Upload a CSV file containing a list of postal codes
* The system will automatically apply them to **enable or disable COD** based on your selection

## 2. Set Up Shipping Rate for COD

Even if COD is enabled, it will not appear unless a shipping rate is configured.

#### Steps to Create Shipping Rate:

1. Go to **Settings ➜ Shipping and Delivery**

<figure><img src="/files/9Etnidd5YnDZgPIqK3g0" alt=""><figcaption></figcaption></figure>

2. Navigate to your **Shipping Profile.**

<figure><img src="/files/X6gMxrXFQAZH6sFYqX6D" alt=""><figcaption></figcaption></figure>

3. Under **General Shipping Rates**, click **+ Add Rate.**

<figure><img src="/files/nHqZlkUb9NHWsMzy2WTJ" alt=""><figcaption></figcaption></figure>

3. Enter:

   * **Rate Name:** (e.g., Cash on Delivery)
   * **Price:** (can include COD charges if needed)
   * Optional conditions (based on weight or price)

   <figure><img src="/files/Jrz3q6lEbveWPhjfoClh" alt=""><figcaption></figcaption></figure>
4. Click **Done** to save

<figure><img src="/files/lRo2Aq3SEFx1fCXXbqXL" alt=""><figcaption></figcaption></figure>

📌 **Important:**\
Without a valid shipping rate, COD may not be displayed at checkout.
