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.