Why are my created discounts only visible at checkout?

Topic summary

Discounts created in Shopify are showing only at checkout; the requester wants them displayed on product (and possibly collection) pages.

Proposed solution: add a product metafield (custom data field) to store the discount, then update the theme’s product template using Liquid (Shopify’s templating language) to conditionally render it (e.g., product.metafields.custom_discount.discount).

Guidance provided: steps to create a product metafield via Settings > Custom data > Product metafields, then output the value in the product page Liquid file with an if-check.

Latest developments/blockers: the requester asked for simpler instructions, shared an image, and noted that an “Edit” button isn’t visible in their interface, preventing changes.

Alternative path: another participant suggested custom theme changes and offered to review the store via URL, or to use a third-party Discount app from the Shopify App Store to handle on-page discount display.

Status: unresolved. Next actions involve clarifying the missing Edit button/UI issue, providing the store URL for help, or trying an app-based solution.

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

I created some discounts but they are not showing on the product page, only at checkout is shown

Hello @Zeshanzaidi
To display discounts on the product page, you’ll need a custom solution that allows you to add product-specific discount codes.

Let me know if you require further assistance.

If this information helps you, please mark this as resolved. However, if you require further assistance, please do not hesitate to message me privately.

Please tell me how can I do this

You can create a custom metafield first for products.

Step one: Create a metafield definition1. From your Shopify admin, go to Settings > Custom data.

  1. In the Metafields section, click Product metafields.
  2. Click Add definition.
  3. Name your metafield definition Care guide and click the standard metafield definition that is displayed. Learn more about standard metafield definitions.
  4. Click Save.

After your metafield definition has been saved, you can start adding values to metafields.

Add discount as a value which you want to show for a particular product.

Let’s say the metafield namespace is “custom_discount” and the key is “discount”

Then you can add a condition code in liquid file of the product page where you want to show the discount

{% if product.metafields.custom_discount.discount %}
{{product.metafields.custom_discount.discount}}
{% endif %}

If you still require further assistance please don’t hesitate to contact me.

If this information helps you, please mark this as resolved.

I didn’t get it. Please simplify

It doesn’t show edit button

Hi @Zeshanzaidi To display the discounts on the product/collection page you have to make custom changes to your Store. Please share me the URL to your store so that I can have a look at it and update you accoridngly.

Or if you want you can try using any Discount App from the Shopify App store to get this done for you.