Skip to main content

How discounts affect your rates

How discount codes affect the rates shown at checkout

Written by Veno Herceg

Discounts work with Zapiet - Rates by Distance out of the box. This applies to any discount on the order, whether it's a Shopify discount code, an automatic Shopify discount, or a discount created by a third-party app.

By default, rates are calculated against the order total before discounts.


Which rates are affected

Discounts only affect price-based rates.

Weight-based rates are matched on the weight of the order, so a discount code never changes which rate is returned.


Choose how discounts affect your rates

  1. Click Settings.

  2. Under Calculate order value, select an option:

    • Before discounts
      Discounts are not deducted from the order value. This is the default. A £30 order with a £20 discount is checked as £30.

    • After discounts
      Discounts are deducted from the order value. A £30 order with a £20 discount is checked as £10.

  3. Click Save.

Your price-based rates will now use the selected option when calculating rates.


Example

A store has a price-based rate offering free delivery on orders over £90. A customer with a £100 cart applies a 20% discount code, bringing their total to £80.

  • With Before discounts selected, the app matches against £100, so the customer is offered free delivery even though they are paying £80.

  • With After discounts selected, the app matches against £80, so the free delivery rate is not offered.


Notes

  • Applying a discount code refreshes the rates at checkout, but removing one doesn't. The previous rates may stay on screen until the customer changes their cart or delivery address [Shopify limitation].

  • If a cart includes products from more than one shipping profile, Shopify requests rates for each profile separately. The discount is split between them based on their value, so it's only deducted once.

    • For example, a £200 cart with a £20 discount (10%) split evenly across two profiles is matched as £90 for each part, not £80.

If you're seeing a different rate than you expect after a discount is applied, let us know the details on chat and we'll be happy to help.

Did this answer your question?