Hello Everyone and thank you for taking the time to read this and I really appreciate your help.
My site is: https://rusticfarmhousedesign.com/collections/all
Currently have an auto coupon setup at checkout which is 20% off.
I would like to be able to show the sale price on the collections page for each product on the page mentioned above.
I was able to get the sale price to show on the product display page with the following code changes below
In the Debut theme, I changed the product-price.liquid file and it worked perfectly .. just 2 line changes:
This is the first 10 lines of the file. In bold is what needs to be changed.
---------ORIGINAL--------------
{% if variant.title %}
{%- assign compare_at_price = variant.compare_at_price -%}
{%- assign price = variant.price -%}
{%- assign available = variant.available -%}
{% else %}
{%- assign compare_at_price = 1999 -%}
{%- assign price = 1999 -%}
{%- assign available = true -%}
{% endif %}
The following changes in red make every single product be 20% off which is what I needed. If I want to change it to 10% off I change the “times: 0.8 => times: 0.9”. This causes the original price to have a line through it then the sale price is next to it with the word “Sale”. Note: I already had created a 20% discount on the Discounts page which already makes the discount in the cart. If you don’t want it to show any sale price, just change the “times: 0.8 => times: 1.0”. This change below now shows the discount on the collection pages and on the product pages.
---------CHANGES IN RED--------------
{% if variant.title %}
{%- assign compare_at_price = variant.price -%}
{%- assign price = variant.price | times: 0.8 -%}
{%- assign available = variant.available -%}
{% else %}
{%- assign compare_at_price = 1999 -%}
{%- assign price = 1999 -%}
{%- assign available = true -%}
{% endif %}