")); if ( variant.compare_at_price > variant.price ) { productPrice.addClass("sale-price") comparePrice .html(Shopify.formatMoney(variant.compare_at_price, "${{amount}}")) .show(); $('.product-price__sale-label').show(); } else { comparePrice.hide(); $('.product-price__sale-label').hide(); productPrice.removeClass("sale-price"); } var form = $('#' + selector.domIdPrefix).closest('form'); for (var i=0,length=variant.options.length; i