learnshopify.dev/Workspace
code writing

Right now the snippet shows a plain price for everything, even items on sale. Add the sale case: when `product.compare_at_price > product.price`, render a `<span class="nw-price nw-price--sale">` containing the old price in an `<s class="nw-price__was">{{ product.compare_at_price | money }}</s>` and the new price in an `<ins class="nw-price__now">{{ product.price | money }}</ins>`. Otherwise, keep the plain `<span class="nw-price">{{ product.price | money }}</span>`.

0 / 3 tasks solved
northwind-coffee.com
Live Storefront