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.
- In the Metafields section, click Product metafields.
- Click Add definition.
- Name your metafield definition Care guide and click the standard metafield definition that is displayed. Learn more about standard metafield definitions.
- 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.
