How to display list of discount codes at cart page

Topic summary

A Shopify store owner wants to dynamically display active discount codes on the cart page, automatically updating when new codes are created, rather than manually listing them.

Technical Challenge:

  • Dynamic discount code display requires multiple API access scopes and cannot be implemented directly through standard theme customization
  • Static lists can be added via theme sections (Online Store > Themes > Customize > Cart), but this doesn’t meet the dynamic requirement

Proposed Solutions:

  1. Shopify Apps - Several apps were recommended:

    • Discount on Cart Pro
    • Available Discount Coupon List on Cart Page
    • Discount Coupon Field in Cart Page
    • Discount Before Checkout (identified as top performer)
    • Discount in Cart (runner-up option)
  2. Custom Coding - Mentioned as an alternative, though no specific code examples were provided in the thread

Key Findings:
One user tested multiple apps and found issues with stacking discounts and free shipping compatibility. A detailed review and 2025 AI-assisted research both concluded that “Discount Before Checkout” is the most reliable solution.

Status: The original poster’s question about coding references remains unanswered; the discussion primarily points toward app-based solutions.

Summarized with AI on October 24. AI used: claude-sonnet-4-5-20250929.

Hi @Anshul_arora ,

Thanks for the app suggestion. But I preferred it to do via coding. Is there any reference code you have that I can use?