Why are my created discounts only visible at checkout?

Zeshanzaidi
Tourist
18 0 1

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

Replies 7 (7)

prakashVt
Shopify Partner
95 9 16

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.

- Did you find my response useful? Mark it as "Accepted solution"; so others can see it, or just like it.
- VTN Power Wishlist Looking for a Wishlist App for your store? Check this app with the free plan available.
- Feel free to Contact me
Zeshanzaidi
Tourist
18 0 1

Please tell me how can I do this

prakashVt
Shopify Partner
95 9 16

You can create a custom metafield first for products.

Step one: Create a metafield definition

  1. From your Shopify admin, go to Settings > Custom data.
  2. In the Metafields section, click Product metafields.
  3. Click Add definition.
  4. Name your metafield definition Care guide and click the standard metafield definition that is displayed. Learn more about standard metafield definitions.
  5. 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.

- Did you find my response useful? Mark it as "Accepted solution"; so others can see it, or just like it.
- VTN Power Wishlist Looking for a Wishlist App for your store? Check this app with the free plan available.
- Feel free to Contact me
Zeshanzaidi
Tourist
18 0 1

I didn't get it. Please simplify

Zeshanzaidi
Tourist
18 0 1

17092321126246258222825572896209.jpg

Zeshanzaidi
Tourist
18 0 1

It doesn't show edit button 

Ankit_Thakur
Shopify Partner
55 1 6

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. 

Shopify Developer/Consultant
If my suggestions are useful, please let me know by giving it a like or marking it as a solution.
And if you want to customize or develop new feature on Theme or App.
Skype:-ankit.thakur_5