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.
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024