Function Discount Not showing discount message in Checkout

Topic summary

Issue: A Shopify Functions discount returns a 20% percentage discount targeting a specific product variant with a custom message (“20% OFF VIP CUSTOMER”), but at Checkout only the Discount Code field appears and the custom message does not display.

Context details:

  • Function output includes: discounts.message, targets.productVariant (id, quantity), value.percentage (20), and discountApplicationStrategy: “ALL”.
  • The JSON/code snippet is central to understanding the setup.

Suggestions raised:

  • Verify whether discount combination settings are enabled for this special discount.
  • Check for conflicts with other active discounts that might suppress or override the message.

Open questions / next steps:

  • Are there specific prerequisites or settings in Shopify Checkout required for custom discount messages from Functions to display?
  • Confirm whether discount combinations or other active promotions are preventing the message from appearing.

Status: No resolution yet; awaiting clarification on settings and potential conflicts.

Summarized with AI on January 8. AI used: gpt-5.

Here is my output:

{
  "discounts": [
    {
      "message": "20% OFF VIP CUSTOMER",
      "targets": [
        {
          "productVariant": {
            "id": "gid://shopify/ProductVariant/XXXXX",
            "quantity": 2
          }
        }
      ],
      "value": {
        "percentage": {
          "value": 20
        }
      }
    }
  ],
  "discountApplicationStrategy": "ALL"
}

And in Checkout it only shows Discount Code, but not custom message. Maybe there are some other pre-requisites I’m missing?

1 Like

Is the combination selected for the special discount? Could it conflict with other discounts?