---
title: "How to offer cash on delivery only for selected shipping rates"
description: "Show cash on delivery in checkout only for the shipping rates you choose, and charge a COD fee with a separate, more expensive rate."
url: https://help.shipdockapp.eu/en/articles/11764747-how-to-offer-cash-on-delivery-only-for-selected-shipping-rates
collection: "Cash on Delivery"
updated: 2026-11-19
language: en
---

# How to offer cash on delivery only for selected shipping rates

Show cash on delivery in checkout only for the shipping rates you choose, and charge a COD fee with a separate, more expensive rate.

With this rule, the payment methods in checkout depend on the name of the shipping rate the customer picked. A rate with one of your keywords shows only COD payment methods; a rate without a keyword hides them.

## Before you start

-   You need a paid plan (Lite or higher). Without it, the **Enable** switch is locked.
    
-   Your COD payment method is active in Shopify: [How to set up cash on delivery (COD)](https://help.shipdockapp.eu/en/articles/9579888.md).
    
-   A COD method with another name than **Cash on Delivery (COD)** is in your **Custom payment methods** list. Otherwise the rule treats it like a card payment.
    

## Step 1: Put a keyword in the names of your COD rates

Use two versions of each rate, for example _PPL_ and _PPL (Cash on Delivery + 50 Kč)_.

-   **Manual rates mapping:** in Shopify **Settings → Shipping and delivery**, create a copy of each rate with the keyword in its name.
    
-   **CCS - Dynamic Rates:** on the courier's tab, click **Add shipping rate** under the country and put the keyword into the **Shipping name**.
    
-   **CCS - Nearest Pickup Points:** put the keyword into the **Shipping name**. COD is then allowed for every nearby point.
    

![Normal rates and their Cash on Delivery copies in a Shopify shipping profile](https://staticfiles.gleap.io/helpcenter/689513158d8ec6346f95e23f/20250808130327_0863.png)

## Step 2: Map the new rates to the courier

Only for rates created in Shopify (CCS rates already belong to the courier). Otherwise the orders are "not assigned to any provider".

1.  In ShipDock, open **Providers** and select the courier.
    
2.  On the **Pickup points** or **Home delivery** tab, add the new rate name to the **Manual rates mapping**, next to the original rate.
    
3.  Save.
    

## Step 3: Turn on the rule in ShipDock

1.  Open **Settings → Cash on Delivery**.
    
2.  In the **Cash on Delivery fee** card, turn on **Enable**.
    
3.  Under **Cash on delivery keywords**, check **Your keywords**. The defaults are **Cash on delivery**, **COD** and **Dobírka**; add more with **Add keyword**.
    
4.  Click **Save**. ShipDock adds the payment customization "Hide COD for non selected shipping rates" to your Shopify store.
    

![Cash on Delivery fee card with Enable turned on and the default keywords](https://staticfiles.gleap.io/ghelparticle/4Igi5b9vFB86h9jwkDC8Gk7VgJRjvmCkJbKi9vuN7q0fRLKqKYaTr9dFQb6ZxURR2WdmPdIK3Mf.png)

> **Important:** Keep at least one keyword under **Your keywords**. With an empty list the rule does nothing and COD is offered for every rate.

Words under **From the cart widget** and **Built in** (the COD word of 23 languages, for example _dobierka_) also allow COD and can't be edited here.

## What your customers see

Before a shipping rate is selected, all payment methods are visible, COD included.

![Checkout: the payment methods change with the selected shipping rate](https://staticfiles.gleap.io/p68949ce73cfde7b987f63c30/ZsMwLzk0uwlJTY7OlRNThQZwIJEQTGls9JMWWYKx9RnGE7BHExWSPWHsVp1MnUjUrjbb0jakPnv.gif)

## Charge a COD fee

ShipDock adds no surcharge and does not edit the order. The fee is the price difference between the two rates: _PPL_ costs 100 Kč, _PPL (Cash on Delivery + 50 Kč)_ costs 150 Kč.

## Limits

-   Keywords match any part of the rate name, in upper or lower case. **COD** also matches _Barcode Express_ or a town like _Codlea_.
    
-   **CCS - Nearest Pickup Points** rate names can include the point's street or city, so a short keyword can match by accident. Use longer keywords.
    
-   A rate with a keyword allows only COD. Customers who choose it cannot pay by card.
    

## Troubleshooting

-   **COD is offered for every rate:** the rule is not saved, **Your keywords** is empty, a keyword is too broad, or the payment customization was deleted in Shopify (save again).
    
-   **COD is never offered:** the rate name contains no keyword, or the COD method is not active in Shopify.
    
-   **The switch is locked:** to turn the rule off, delete "Hide COD for non selected shipping rates" in Shopify **Settings → Payments**, or upgrade.
    

## Related articles

-   [How to set up cash on delivery (COD)](https://help.shipdockapp.eu/en/articles/9579888.md)
    
-   [How to set up shipping rates](https://help.shipdockapp.eu/en/articles/11764754.md)

## Related

- [How to set up cash on delivery (COD)](https://help.shipdockapp.eu/en/articles/9579888-how-to-set-up-cash-on-delivery-cod.md)
- [How to mark COD orders as paid automatically](https://help.shipdockapp.eu/en/articles/11764743-how-to-mark-cod-orders-as-paid-automatically.md)
