Impulse Theme - Display store-wide sales prices for products similar to Dawn theme solution here

I have thousands of product variants, which make editing compare_at prices impossible. I am running an automatic discount store-wide for all products, and I want to show the sale price on my product page, home page, and collections.
Someone kindly provided the following solution for the Dawn theme (which works great!) and I am looking for how I can edit my Impulse theme to achieve the same result.

In the Dawn theme code, they assigned the compare_at_price to be the same as the current price, then assigned the price to equal the current price multiplied by 0.8, which triggered all of the pages to show the sale and strikethrough, etc. And the automatic discount took care of the cart display, separately.

For the Dawn theme, this change below shows the discount on the collection pages and on the product pages.

– snippet/product-price.liquid –

{% if variant.title %}
{%- assign compare_at_price = variant.price -%}
{%- assign price = variant.price | times: 0.8 -%}

Please help me figure out how to accomplish the same for the Impulse theme, as it has different liquid files.

Hi @CluckinAwesome ,

You will need to do 2 steps for this:

  • Step 1: You need to create an automatic discount code for all products with the % discount you want.

  • Step 2: You need to change the price display code. Please send me the code price.liquid file, I will check it for you

There is no price.liquid file, or any files labeled with price, pricing, etc. That’s part of why I’m having difficulty identifying which files need to be edited.

Hi @CluckinAwesome ,

You can find it in the product-template.liquid file.

Or can I send you a collaborator invite? it will help me find all the files and change it

I emailed you the product-template.liquid file, as it is quite long. Hopefully that has what we are looking for.

Could you share the solution here? Thank you!

Hi @elizklein ,

Please send the website link, I will check it for you