* Em compras à partir de '+ show_in_cash_discount +'
'; cash_discount_alert = '*'; } let special_html = ''; let default_html = ''; if(special){ $(value).find('.product-price-old').html('de ' + price); $(value).find('.product-price-new').html('Por: ' + special); if(special_discount){ $(value).find('.product-price-discount').html('ou '+ special_discount +' à vista' + text_discount + cash_discount_alert + cash_discount); } special_html += `${special} em`; if (show_interest_installment == 2 && parcel_simulator && (Number(parcel_simulator) > Number(no_interest_installments))) { special_html += `${no_interest_installments}x de ${special_parcel ? special_simulator_no_interest : price_simulator_no_interest} ${text_no_interest}
ou`; } special_html += `${parcel_simulator}x de ${special_parcel ? special_simulator : price_simulator} ${text_interest}`; $(value).find('.product-price-simulator').html(special_html); }else{ $(value).find('.product-main-price').html(price); if(price_discount){ $(value).find('.product-price-discount').html('ou '+price_discount+' à vista ' + text_special_porcent + text_discoun_avista + text_discount + cash_discount_alert + cash_discount); } default_html+= `${price} em`; if (show_interest_installment == 2 && parcel_simulator && (Number(parcel_simulator) > Number(no_interest_installments))) { default_html += `${no_interest_installments}x de ${price_simulator_no_interest} ${text_no_interest}
ou`; } default_html += `${parcel_simulator}x de ${price_simulator} ${text_interest}`; $(value).find('.product-price-simulator').html(default_html); } }, error: function (XMLHttpRequest, textStatus, errorThrown) { console.log(XMLHttpRequest.responseText); } }); }, 200); } $('.size-name-cart').click(function() { priceOptionClickProductList($(this).closest('.product-grid')); }); $('body').on('change', '.product-grid .product-block-hover input[type="number"]', function() { priceOptionClickProductList($(this).closest('.product-grid')); });