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.

Hey Cody,

Thanks so much for going into more detail with me, I really appreciate your two cents here! Both on the discounts and on the feedback about shipping. I can definitely see how adding better features to those would benefit you, and your business. I am passing this information along to our team of developers, and maybe this will be something we will be able to work on in the future.

Again, thanks for your time, and if you have any more feedback, we always love hearing it!

Have a great one,
Ann