Discount tag appears in checkout when discount is not applied, only before shipping costs are calculated

Hi there,

We’ve recently received a report from a merchant using our app that a specific discount code was being applied when it wasn’t supposed to. However, when we investigated this, what we found wasn’t that the discount was being applied erroneously, but that the discount code appears as a tag in the checkout if shipping costs haven’t been calculated yet, regardless of whether the discount is actually applicable.

I’ve attached a few annotated screenshots of the following cases:

  • Customer not logged in, shipping costs calculated → :white_check_mark: No discount applied (expected)
  • Ineligible customer logged in, shipping costs calculated → :white_check_mark: No discount applied (expected)
  • Customer not logged in, shipping costs not yet calculated → :cross_mark: Discount tag appears (despite no discount actually being applied)
  • Ineligible customer logged in, shipping costs not yet calculated → :cross_mark: Discount tag appears (despite no discount actually being applied)

Some information about the discount in question:

  • It’s a Shopify Functions discount
  • API version 2025-04
  • This discount is a combined product/shipping discount

This leads us to a few questions:

  1. Is this by design? (I could understand if this is an intentional way to provide feedback to customers who have entered a shipping discount if the shipping costs haven’t been calculated yet.)
  2. Is there any way that merchants can disable this behavior?

Thanks in advance,
Tobe

Hi Tobe,

This doesn’t feel like the intended functionality - and could expose discount codes that merchants otherwise do not want to display by default. Is there a way I can reproduce this? I can DM you if you need to share a private store link.

Hi Liam, thanks for looking into this! I’ve recorded a Loom video demonstrating how to reproduce this, and I also have the store URL. I can’t see how to DM you.

I’ll DM you now :slight_smile:

(only admins can dm)

Hi @tobebuilds @Liam-Shopify
Is this issue resolved ? am also facing similar issue where discount code/tag appears when there is no discount applied

No. It’s been forwarded to the Discounts team, and we’re waiting for an update.

Bump any update from the Discounts team?