1require(['jquery'], function ($) { 2 $(function () { 3 //Aggiunta del bottone 'Maggiori info..' 4 $(".product-item-link").each(function () { 5 if (!$(this).parent().parent().text().includes('Più Informazioni')) { 6 $(this).parent().parent().append('<div class="view_product product-item-actions"><a href="' + $(this).attr('href') + '"><button class="view_product_button" type="button" title="Più Informazioni"><span>Più Informazioni</span></button></a></div>'); 7 } 8 9 var attribute_old = $(this).parent().parent().parent().parent().find("#testing").attr("attrold"); 10 var attribute_final = $(this).parent().parent().parent().parent().find("#testing").attr("attrfinal"); 11 var main_value = attribute_old - attribute_final; 12 var total = main_value.toFixed(2); 13 var total_main = total.replace(".", ",") 14 //var total = parseInt(main_value).toLocaleString(2); 15 $(this).parent().parent().parent().parent().find(".save_amount").text(total_main).attr('class', 'newsave_amount');; 16 }); 17 18 //Nascondere metodi di pagamento in funzione della spediizone 19 $('#shipping-method-buttons-container').click(function () { 20 if (parseInt(window.checkoutConfig['totalsData']['shipping_amount']) > 0) { 21 //Togli Vaglia 22 $('head').append('<style type="text/css">#checkmo{display:none !important;}</style>'); 23 } else { 24 //Togli Contrassegno 25 $('head').append('<style type="text/css">#cashondelivery{display:none !important;}</style>'); 26 } 27 }); 28 29 }); 30});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.