Shopify themes, liquid, logos, and UX
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>
<span class="product-price">{{ product.price | money }}</span>
{% else %}
<span class="product-price">{{ product.price | money }}</span>
{% 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.
User | RANK |
---|---|
204 | |
172 | |
80 | |
58 | |
48 |
Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023