For the complete documentation index, see llms.txt. This page is also available as Markdown.

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:

Step #1

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

Step #2

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

Step #3

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

Step #4

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

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

1. Order Amount Conditions:

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

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.

Frontend Result

  1. COD option for order amounts above 1500

  1. COD option not available for order amounts under 1500

  1. COD option not available for order amounts above 2500

2. Country-Based Configuration:

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.

3. Country & State-wise COD Hide/Show

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.

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.

4. Limit COD by Products

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.

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.

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.

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.

Step 4: Save the Configuration

Click Save to apply the Product Rules.

The rule will become active immediately on your storefront.

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

✅ Available

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

5. Collection Rules

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.

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.

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.

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.

Step 4: Save the Configuration

Click Save to apply the Collection Rules.

The changes will be applied immediately to your storefront.

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.

6. Vendor-wise COD Hide/Show

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.

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.

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.

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

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.

7. Shipping Rate-wise COD Hide/Show

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.

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.

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

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

8. Delivery Method-wise COD Hide/Show

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.

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

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

9. Gift Card Rules

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.

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.

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.

Step 3: Save the Configuration

Click Save to apply the Gift Card Rule.

The configuration will immediately take effect on your storefront.

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.

10. Discount Amount-wise COD Hide

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.

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.

11. Customer Tag-wise COD Hide/Show

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.

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.

12. Phone Number Restrictions:

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

13. Email Address Restrictions:

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

14. Postal Code (ZIP Code) Configuration:

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.

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

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

  1. Navigate to your Shipping Profile.

  1. Under General Shipping Rates, click + Add Rate.

  1. Enter:

    • Rate Name: (e.g., Cash on Delivery)

    • Price: (can include COD charges if needed)

    • Optional conditions (based on weight or price)

  2. Click Done to save

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

Last updated