How to add shipping method based on After Discount rule

Note: Applied these rules from version 3.9.2 onwards

With this feature, we can set the shipping rules based on the "After Discount" applied by the users using the coupon codes.

Let us explain with some examples and cases so we can get a better idea about this after discount shipping rules.

Case 1: Discount applied

The order subtotal amount is: $25

The discount price is: $10

Condition will check $25 - $10= $15

So, once discount applied, it will consider the subtotal after discount price = $15

Case 2: if Discount does not apply

The order amount is: $25

The discount price is: 0(Mean no coupon applied)

So, in this case, it will consider the subtotal price = $25