Introduction
Sometimes you might want to prevent customers from combining a large discount with a costly shipping method, like one that includes a Cash on Delivery fee. By controlling the visibility of your shipping rate based on the applied discount, you can protect your margins.
For example, you could:
Hide the COD-enabled shipping option if a customer uses any discount code.
Hide it only when the discount value is particularly high (e.g., more than $20).
This guide will show you exactly how to set this up.
Before you start:
This guide assumes you have already connected a shipping rate to your COD payment method. If you haven't, please follow this guide first:
How to Connect Your Shipping Rate to Cash on Delivery payment method.
Start on the main page of the Progus COD app.
Find and click the "Add cash on delivery visibility rule" button.

Step 3: Choose the condition
A new configuration form will appear.
Example: Hide COD shipping option if any discount is applied
Imagine you want to disable the COD delivery option whenever a customer uses a discount code.
Open the “Order Details” tab.
Scroll to the “Condition: Order Summary” section.
Click and select the option “Hide based on discount amount”.

Step 4: Set the value
Input fields labeled Min and Max will now appear. You can use them to define the discount range that will trigger the rule.
To hide the shipping option if any discount is applied, set the range as follows:
In the Min field, enter 1.
Leave the Max field empty.
This rule means: "Hide the COD shipping option if the total discount is $1 or more."
> Tip: You can also set both Min and Max to define a specific range.

Step 5: Save your rule
In the top-left corner of the form, click “Save”.
That's it! Your Cash on Delivery shipping rate will now be intelligently hidden at checkout whenever a customer's order includes a discount that matches your rule.