#7';$('.lg-thumb-item').find('img[src="https://netra.pl/storage/products/photos/18760/medium/61e1938746dcc_8094m_38.jpeg"]') .after('
' + html);});$('.more-details').click(function(){$(this).parent().css('display', 'none');$('.less-details').parent().css('display', 'block');$('.non-visible').css('display', 'block');});$('.less-details').click(function(){$(this).parent().css('display', 'none');$('.more-details').parent().css('display', 'block');$('.non-visible').css('display', 'none');});$('#generateEML').click(function () {window.location = generateEMLUrl();});$('#generatePDF').click(function () {window.location = generatePDFUrl();});});function generatePDFUrl() {var products = '',amount = '',totalAmount = 0,productPrice = '',productPriceTotal = '';productInfo = '';$('.table__detalis:visible').each(function(){products += $(this).find('.product-amount').data('productId')+',';amount += $(this).find('.product-amount').data('productId')+':'+$(this).find('.product-amount').val()+',';totalAmount += $(this).find('.product-amount').val()*1;productPrice += $(this).find('.product-amount').data('productId')+':'+$(this).find('.product-price').text().trim()+',';productPriceTotal += $(this).find('.product-amount').data('productId')+':'+$(this).find('.product-price-total').text().trim()+',';productInfo += $(this).find('.product-amount').data('productId')+':'+$(this).find('.table__detalis-tooltip.price-extra-info').text().trim()+',';});var services = '';$("select.service-type").each(function(){var id = $(this).data('service-id'),sId = $(this).find(":selected").data('service-id'),value = $(this).val().replace(" ", "_");services += id+':'+value+':'+sId+':'+($(this).closest('.service-table').find('.orange.fa-minus').is(':visible'))+',';});var servicesSetupFee = '';$("select.pricelist-setup-fee").each(function(){var id = $(this).data('service-id'),value = $(this).val().replace(" ", "_");servicesSetupFee += id+':'+value+',';});var servicesPrice = '';$(".pricelist-price").each(function(){var id = $(this).data('service-id'),value = $(this).text().trim().replace(" ", "_");servicesPrice += id+':'+value+',';});$(".pricelist-price-sale").each(function(){var id = $(this).data('service-id'),value = $(this).val();servicesPrice += id+':'+value+',';});var servicesPriceTotal = '';$("span.pricelist-price-sum").each(function(){var id = $(this).data('service-id'),value = $(this).text().trim().replace(" ", "_");servicesPriceTotal += id+':'+value+',';});var servicesRunFee = '';$("span.pricelist-run-fee").each(function(){var id = $(this).data('service-id'),value = $(this).text().trim().replace(" ", "_");servicesRunFee += id+':'+value+',';});var serviceAmount = '';$(".pricelist-amount-service, .pricelist-amount-service-sale").each(function(){var id = $(this).data('service-id'),value = $(this).val().replace(" ", "_");serviceAmount += id+':'+value+',';});var servicesKg = '';$("span.product-kg").each(function(){var id = $(this).data('service-id'),value = $(this).text().trim().replace(" ", "_");servicesKg += id+':'+value+',';});var servicesM3 = '';$("span.product-m3").each(function(){var id = $(this).data('service-id'),value = $(this).text().trim().replace(" ", "_");servicesM3 += id+':'+value+',';});var servicesBoxSize = '';$("span.box-size").each(function(){var id = $(this).data('service-id'),value = $(this).text().trim().replace(" ", "_");servicesBoxSize += id+':'+value+',';});var servicesInfo = '';$('span.pricelist-extra-info:visible').each(function() {var id = $(this).data('service-id');value = $(this).text().trim();servicesInfo += id+':'+value+';';});var url = "&products="+products+"&amount="+amount+"&totalAmount="+totalAmount+"&product_price="+productPrice+"&download=1&product_price_total="+productPriceTotal+"&product_info="+productInfo+"&services="+services+"&services_setup_fee="+servicesSetupFee+"&services_price="+servicesPrice+"&services_run_fee="+servicesRunFee+"&services_price_total="+servicesPriceTotal+"&services_amount="+serviceAmount+"&services_kg="+servicesKg+"&services_m3="+servicesM3+"&services_box_size="+servicesBoxSize+"&services_info="+servicesInfo;url = url.replace("??.??","--.--");return "https://netra.pl/products/generateProductPDF?id=18760"+url;} function generateEMLUrl() {var products = '',amount = '',totalAmount = 0,productPrice = '',productPriceTotal = '',productInfo = '';$('.table__detalis:visible').each(function(){products += $(this).find('.product-amount').data('productId')+',';amount += $(this).find('.product-amount').data('productId')+':'+$(this).find('.product-amount').val()+',';totalAmount += $(this).find('.product-amount').val()*1;productPrice += $(this).find('.product-amount').data('productId')+':'+$(this).find('.product-price').text().trim()+',';productPriceTotal += $(this).find('.product-amount').data('productId')+':'+$(this).find('.product-price-total').text().trim()+',';productInfo += $(this).find('.product-amount').data('productId')+':'+$(this).find('.table__detalis-tooltip.price-extra-info').text().trim()+',';});var services = '';$("select.service-type").each(function(){var id = $(this).data('service-id'),sId = $(this).find(":selected").data('service-id'),value = $(this).val();services += id+':'+value+':'+sId+':'+($(this).closest('.service-table').find('.orange.fa-minus').is(':visible'))+',';});var servicesSetupFee = '';$("select.pricelist-setup-fee").each(function(){var id = $(this).data('service-id'),value = $(this).val();servicesSetupFee += id+':'+value+',';});var servicesPrice = '';$(".pricelist-price").each(function(){var id = $(this).data('service-id'),value = $(this).text().trim().replace(" ", "_");servicesPrice += id+':'+value+',';});$(".pricelist-price-sale").each(function(){var id = $(this).data('service-id'),value = $(this).val();servicesPrice += id+':'+value+',';});var servicesPriceTotal = '';$("span.pricelist-price-sum").each(function(){var id = $(this).data('service-id'),value = $(this).text().trim();servicesPriceTotal += id+':'+value+',';});var servicesRunFee = '';$("span.pricelist-run-fee").each(function(){var id = $(this).data('service-id'),value = $(this).text().trim();servicesRunFee += id+':'+value+',';});var serviceAmount = '';$(".pricelist-amount-service, .pricelist-amount-service-sale").each(function(){var id = $(this).data('service-id'),value = $(this).val();serviceAmount += id+':'+value+',';});var servicesKg = '';$("span.product-kg").each(function(){var id = $(this).data('service-id'),value = $(this).text().trim();servicesKg += id+':'+value+',';});var servicesM3 = '';$("span.product-m3").each(function(){var id = $(this).data('service-id'),value = $(this).text().trim();servicesM3 += id+':'+value+',';});var servicesBoxSize = '';$("span.box-size").each(function(){var id = $(this).data('service-id'),value = $(this).text().trim();servicesBoxSize += id+':'+value+',';});var servicesInfo = '';$('span.pricelist-extra-info:visible').each(function() {var id = $(this).data('service-id');value = $(this).text().trim();servicesInfo += id+':'+value+';';});return "https://netra.pl/products/generateProductEML?id=18760&products="+products+"&amount="+amount+"&totalAmount="+totalAmount+"&product_price="+productPrice+"&product_price_total="+productPriceTotal+"&product_info="+productInfo+"&services="+services+"&services_setup_fee="+servicesSetupFee+"&services_price="+servicesPrice+"&services_run_fee="+servicesRunFee+"&services_price_total="+servicesPriceTotal+"&services_amount="+serviceAmount+"&services_kg="+servicesKg+"&services_m3="+servicesM3+"&services_box_size="+servicesBoxSize+"&services_info="+servicesInfo;}
Ta strona używa plików cookies. Korzystanie ze strony bez zmiany ustawień przeglądarki w tym zakresie, oznacza zgodę na ich używanie. Więcej informacji na ten temat znajduje się w naszej
polityce prywatności.