How to identify discount failure in checkout

Topic summary

A developer is seeking methods to detect invalid discount codes in Shopify’s current checkout system and suggest alternatives to customers.

Previous Solution:

  • Used event listeners (‘page:load page:change’) in the old Shopify checkout to identify incorrect discount codes
  • This approach no longer works with the updated checkout system

Attempted Solutions:

  • Tried Shopify Functions
  • Tried Shopify Checkout UI Extensions
  • Neither fully addressed the use case

Current Need:

  • Looking for a solution or app that enables suggesting alternative discount codes when users enter invalid ones
  • The discussion remains open with no responses yet
Summarized with AI on November 1. AI used: claude-sonnet-4-5-20250929.

Hello everyone,

In the previous Shopify checkout system, we used event listeners like ‘page:load page:change’ to detect incorrect discount codes and suggest alternative ones when an invalid code was applied. We had tried multiple ways like we used Shopify functions and Shopify checkout UI extensions but that was solving use cases.

Additionally, is there a solution or an app for Shopify checkout that allows us to suggest alternative discount codes to users?

Really appreciate your response on this. Thanks