All things Shopify and commerce
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.
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.
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025