Showing applicable discount codes on product page

Topic summary

Goal: Display all applicable discount codes per product directly on the product page (or an offers page) without customer input.

Shopify staff response: No native, automatic way in themes. Suggested workarounds include placing codes in product descriptions, using an announcement bar app with page targeting, or putting products “on sale” instead of requiring a code. Feedback was forwarded to developers; no official feature announced.

Community sentiment: Strong requests for a built‑in solution and for codes to appear in cart/product pages. Frustration with reliance on paid third‑party apps and comparisons to other platforms that offer this natively.

App option: A free app (“Automatic Discount Code Links”) was introduced, offering a product page coupon widget, storefront-applied discounts before checkout, and an infobar.

DIY approaches (no app):

  • Collection-based method: Name a manual collection “DISCOUNT-{code}-{amount}”, apply the discount to that collection, and add Liquid (Shopify’s templating language) in product-template.liquid to detect the collection and display “Use code X for Y off.” The collection must be on a sales channel.
  • Tag-based method: Tag products (e.g., DISCOUNT-5%) and use Liquid to calculate and display the discounted amount on the product page.

Status: No built‑in feature; solutions are apps or theme customizations. Images and code snippets are central to the shared examples. Discussion remains open.

Summarized with AI on December 14. AI used: gpt-5.

We may need to show one discount for a one-time use coupon and another discount for a coupon associated with an advertisement. Maybe we’re running a different sale. These should all be able to be used at the same time by different visitors, so the announcement bar isn’t solving this as far as I can tell.