Need help showing discount on collection and product pages

Hello,

I’ve looked at many tutorials and videos but am not finding any that work for me.

I have a promotion going for the month of November, 20% certain products. Discount is already set up, but at this time you can only see what the discounted price is when you view your cart.

I would like to have the discounted price show on the product page as well as the collection page. I don’t want to have to use compare price, as every video I’ve seen has shown how it has to be higher than your price, but that’s confusing because it’s not actually giving a discount, it’s raising the price to then show the original price is the discount.

So i’m really in need of help and proper code to help solve this issue.

Thank you so much!

Jenni

@JCaloBC please try the solution given by @Davids_Solution , if you find it very difficult then you can ask someone to edit the code in your theme.

Are you familiar with the coding?

Hi David,

Thanks for getting back to me, however I can’t find either product-template.liquid, or collection-template.liquid. I have DAWN theme, not sure if that has anything to do with it?

Thanks!

Hi @JCaloBC ,

You can follow the steps here:

Step 1: Shopify admin > Online store > Edit code: https://prnt.sc/sszShKqyPRWe

Step 2: In the file card-product.liquid, add the code into this line: https://prnt.sc/Y0xaB-Bj5Y1A

Here is the code for step 2:

{% if settings.currency_code_enabled %}
               

Discounted Price: {{ card_product.price | times: 0.8 | money_with_currency }}

            {% else %}
               

Discounted Price: {{ card_product.price | times: 0.8 | money }}

            {% endif %}

Here is the result:

Let me know if it works!

Best,

Daisy

Hi Daisy,

Thank you so much! That did work, but I’m wondering if there’s a way to have a strike through the original price with the sale price as opposed to all this extra stuff. (see screenshot)

Thank you!

Jenni

Hi Daisy,

Also I just realized that it put a discount on ALL of my products. No idea how? My discount is only set up for specific products. I re-published my older version just so it doesn’t cause me issues with customers.

Hi @JCaloBC ,

Can you share the specific products you have set discounts for?

Also, may I ask where have you set discounts for these products?

These information will help me check further.

Look forward to your response!

Best,

Daisy