Display discounted price (without compare price) on product pages with Dawn theme

Hi,

I have an automatic discount of 10% setup - I already have the liquid code for the discounted price to display on the collection and home pages, however, I need a code for the discounted price to display on the actual product pages. I do NOT have compare at price setup. I am using Dawn theme. Can anyone assist?

Replace price code with this:

{% if product.compare_at_price > product.price %}
  <del>{{ product.compare_at_price | money }}</del>
  {{ product.price | money }}
{% else %}
  {{ product.price | money }}
{% endif %}

Hi, thanks for your response. Is this code only for if a compare at price has been entered in the product listing? If so, I do not have any compare at prices setup for my products.

Hi,

Where does this code go? Thanks.