No content to show
User Activity
You sure can.These two lines make the string you want to display. The first one is the $$ saved, and the second one is the %. var priceSaving = timber.formatSaleTag( Shopify.formatMoney(variant.compare_at_price - variant.price, moneyFormat) );
...
Assets / theme.js.liquid Look for that comment. (You can use ctrl+f to search) The code should be pretty similar, as I pretty much just changed the inside of the formula.
So, it ended up looking like this:// Also update and show the product's compare price if necessary
if ( variant.compare_at_price > variant.price ) {
var priceSaving = timber.formatSaleTag( Shopify.formatMoney(variant.compare_at_pric...
Thanks so much! That is exactly what I needed to fix!
I'm trying to change the savings amount to percentages from dollars, and I'm having problems with it showing up correctly on the product page. I updated the price-sale.liquid, so it shows correctly on the collections pages, but when I go to the produ...