World Explorations Paris Espresso | Kaffeekapseln (2024)

`; } html += `

`; html += `

`+USPContent.text+`

`+interaction_html+`

`; html += interaction_html; html += `

`; html += interaction_html; html += `

`; html += ``; return html; } function buildInteractionElements(data){ let html = ""; html += `

`; data.forEach(function(item, index) { let css_class = item.show_mobile == false ? "hide_mobile": ""; switch(item.type){ case 'link': html += ``; html += item.text; html += ``; break; case 'popup': html += `

`; html += item.text; html += `

`; needPopup = true; break; } }); html += `

`; return html; } function buildPopupDom(){ let html = ""; html += `

`; html += `

`; html += `

`; html += `

`; html += `

`; html += `

`; html += `

`; html += `

`; html += `

`; return html; } function fillPopupContent(index){ $('#USP_popup_headline').html(USPContent.interaction_elements[index].popup_content.headline); $('#USP_popup_text').html(USPContent.interaction_elements[index].popup_content.text); } '; var bottom =''; var content_wrapper_interval = setInterval(function(){ if (document.querySelector(".MiniBasketDropdown__content-wrapper") !== null) { var basketMainContent = $(".MiniBasketDropdown__content-wrapper"); basketMainContent.before(top); basketMainContent.after(bottom); updateFreeDeliveryContent(true); clearInterval(content_wrapper_interval); } }, 200); } function updateFreeDeliveryContent(initial = false) { clog("updateFreeDeliveryContent called"); var content_top = $("#fd_content_top"); var content_bottom = $("#fd_content_bottom"); content_bottom.html(""); content_top.html(getTopMessage()); var progressBar = getProgressBar(fd_state.total_price, fd_options.free_delivery_amount); var progressMessage = getProgressMessage(fd_state.total_price, fd_options.free_delivery_amount); content_bottom.append(progressBar); var pec = getPercent(fd_state.total_price, fd_options.free_delivery_amount); if(pec==100){ var successIcon = getSuccessIcon(); successIcon.css("visibility", "hidden"); content_bottom.append(successIcon); setTimeout(function(){ new Vivus('fd_icon', {duration: 200, onReady: function(vivusInstance){ vivusInstance.el.style.visibility = 'visible'; vivusInstance.el.classList.add('finished'); }}, function(vivusInstance){ }); },4000); } content_bottom.append(progressMessage); if (initial) { content_top.show(); content_bottom.show(); } } function removeFreeDeliveryContent() { $("#fd_content_top").remove(); $("#fd_content_bottom").remove(); } function getInternalPrice(input) { //input needs to have 2 fraction digits return (input.replace(/[^0-9]+/g, "") / 100).toFixed(2); } function getOutputPrice(input, currencySymbol = true) { var language = fd_state.language; var number = input.toLocaleString(language, { minimumFractionDigits: 2, maximumFractionDigits: 2 }); return (currencySymbol) ? getCurrency() + number : number; } function clog(data) { console.log("%c FD: " + data, "color: #bada55"); } function getCurrency(){ var language = fd_state.language; var currency = { de: "€", en: "€" }; return currency[language]; } function getProgressIcon(){ var icon = $(''); icon.html(free_devlivery_icon); return icon;; } function getSuccessIcon(){ var icon = $(''); icon.html($(free_devlivery_icon).attr("id","fd_icon")); return icon;; } function getTopMessage(){ var language = fd_state.language; var message = { de: 'Versandkostenfreie Lieferung ab '+getOutputPrice(fd_options.free_delivery_amount)+'Bestellwert', en: 'Free shipping from '+getOutputPrice(fd_options.free_delivery_amount)+' order value' } return message[language]; } function getProgressMessage(current_amount, goal_amount){ var language = fd_state.language; var missing = goal_amount - current_amount; var message = $(''); var messages = { progress: { de: 'Nur noch ' + getOutputPrice(missing)+ ' bis zur versandkostenfreien Lieferung', en: 'Nur noch ' + getOutputPrice(missing)+ ' bis zur versandkostenfreien Lieferung', }, goal: { de: 'Glückwunsch – Ihre Bestellung wird versandkostenfrei geliefert', en: 'Glückwunsch – Ihre Bestellung wird versandkostenfrei geliefert' } } message.html(missing > 0 ? messages.progress[language] : messages.goal[language]); return message; } function getPercent(current_amount, goal_amount){ var pec = current_amount/(goal_amount/100); if(current_amount>=goal_amount) pec = 100; return pec; } function getProgressBar(current_amount, goal_amount){ var pec = getPercent(current_amount,goal_amount); var progressBar = $(''); progressBar.attr("data-from", getCurrency()+" 0"); progressBar.attr("data-to", getCurrency()+" "+goal_amount); var progress = $(''); progress.css("width", pec+"%"); progressBar.append(progress); if(pec==100){ progressBar.append(getProgressIcon()); progressBar.addClass("completed"); } return progressBar; }});
Sie befinden sich im Hauptinhalts-Bereich '); } }) } function initPDP() { //for nb-sku-coffee - but only for first .cb-price (not product carousel) if ($("nb-sku-main-info").length && $(".cb-price").length) { var el = $(".cb-price").first(); //fetch the item data var data = $(el).closest("nb-sku-coffee").attr("data"); //parse it to turn it as an object var skuObj = JSON.parse(data); //get the id and slice it to obtain the sku*/ //alert((skuObj.id).slice(16)); //var sku = $(el).closest("nb-sku-coffee").attr("data-product-item-id"); var sku = (skuObj.id).slice(16); var amount = (sleeveExceptions.find(item => item.sku == sku)) ? sleeveExceptions.find(item => item.sku == sku).amount : 10; var textSleeveBefore = (sleeveExceptions.find(item => item.sku == sku)) ? "Per capsule: €" : textSleevePrices.before; if (amount > 0) { console.log("here pdp") var price = $(el).find(".cb-price-current span").text().replace(",", ".").replace("€", "").replace(" ", ""); var sleevePrice = (price * amount).toFixed(2).toString().replace(".", ","); var singlePrice = parseFloat(price).toFixed(2).toString().replace(".", ","); $(el).append('

' + textSleeveBefore + singlePrice + textSleevePrices.after + '

'); // set sleeve Price and text $(el).find(".cb-price-current span").text( "€ "+sleevePrice ); $(el).find(".cb-price-current").append('

/'+amount+'

'); } } //for nb-plp-product-card if ($("nb-plp-product-card").length) { var sku = $("nb-plp-product-card").attr("data-product-item-id"); var amount = (sleeveExceptions.find(item => item.sku == sku)) ? sleeveExceptions.find(item => item.sku == sku).amount : 10; if (amount > 0) { var price = $(".cn_card__priceWrapper--current span").text().replace(",", ".").replace("€", "").replace(" ", ""); var sleevePrice = (price * amount).toFixed(2).toString().replace(".", ","); var singlePrice = parseFloat(price ).toFixed(2).toString().replace(".", ","); $(".cn_card__priceInnerWrapper").append('

' + textSleevePrices.before + singlePrice + textSleevePrices.after + '

'); // set sleeve Price and text $(".cn_card__priceWrapper--current span").text( "€ "+sleevePrice ); $(".cn_card__priceWrapper--current").append('

/'+amount+'

'); } } // if in pdp check for sliders // check for slider var check_for_slider = setInterval(function(){ console.log("waiting for sliders"); if( $(".nb-cross-sell__slider nb-slider nb-plp-product-card-expandable").length || $("nb-slider-natural nb-sku-coffee").length ) { clearInterval(check_for_slider); // var parent_ele = $(".nb-cross-sell__slider").length ? $(".nb-cross-sell__slider") : $("nb-slider-natural"); setTimeout(function(){ console.log("fiering slider mod"); if( $(".nb-cross-sell__slider").length ) { $.each( $(".nb-cross-sell__slider nb-slider nb-plp-product-card-expandable"), function(i,e) { var its_data = JSON.parse($(e).attr("data")); console.log("###sleeves", i , its_data) if( its_data.type == "capsule" ) { var its_sku = its_data.sku; var is_ol = its_data.range != "VERTUO"; var price = parseFloat(its_data.price.replace(",", ".").replace("€", "").replace(" ", "").trim()); var amount = (sleeveExceptions.find(item => item.sku == its_sku)) ? sleeveExceptions.find(item => item.sku == its_sku).amount : 10; var textSleeveBefore = (sleeveExceptions.find(item => item.sku == its_sku)) ? "Per capsule: €" : textSleevePrices.before; set_for_slider( price, amount, $(e), is_ol , textSleeveBefore) } }); } else { $.each( $("nb-slider-natural nb-sku-coffee"), function(i,e) { var its_data = JSON.parse($(e).attr("data")); console.log("###sleeves", i , its_data) if( its_data.type == "capsule" ) { var its_sku = its_data.sku; var is_ol = its_data.range != "VERTUO"; var price = parseFloat(its_data.price.replace(",", ".").replace("€", "").replace(" ", "").trim()); var amount = (sleeveExceptions.find(item => item.sku == its_sku)) ? sleeveExceptions.find(item => item.sku == its_sku).amount : 10; var textSleeveBefore = (sleeveExceptions.find(item => item.sku == its_sku)) ? "Per capsule: €" : textSleevePrices.before; set_for_slider_new( price, amount, $(e), is_ol , textSleeveBefore) } }); } },500); } },400); function set_for_slider(price, amount, obj_space, is_ol, textSleeveBefore){ if (amount > 0) { // console.log("here pdp") // var price =.text().replace(",", ".").replace("€", "").replace(" ", ""); var sleevePrice = (price * amount).toFixed(2).toString().replace(".", ","); var singlePrice = parseFloat(price).toFixed(2).toString().replace(".", ","); // set sleeve Price and text $(obj_space).find(".plp-product-card-expandable__price").text( "€ "+sleevePrice ); $(obj_space).find(".plp-product-card-expandable__price").css( "display", "inline-block" ); $(obj_space).find(".plp-product-card-expandable__priceInnerWrapper").append('

/'+amount+'

'); // set the text $(obj_space).find(".plp-product-card-expandable__priceInnerWrapper").append('

' + textSleeveBefore + singlePrice + textSleevePrices.after + '

'); } } function set_for_slider_new(price, amount, obj_space, is_ol, textSleeveBefore){ if (amount > 0) { // console.log("here pdp") // var price =.text().replace(",", ".").replace("€", "").replace(" ", ""); var sleevePrice = (price * amount).toFixed(2).toString().replace(".", ","); var singlePrice = parseFloat(price).toFixed(2).toString().replace(".", ","); // set sleeve Price and text $(obj_space).find(".cb-price-current span").text( "€ "+sleevePrice ); // $(obj_space).find(".plp-product-card-expandable__price").css( "display", "inline-block" ); $(obj_space).find(".cb-price-current").append('

/'+amount+'

'); // set the text $(obj_space).find(".cb-price").append('

' + textSleeveBefore + singlePrice + textSleevePrices.after + '

'); } } } });')); // } } }); }; createIconPDP(bioProducts, bioIcon); createIconPDP(fairTradeProducts, fairTradeIcon); } else { // console.log("#**** in plp"); } })(jQuery);}, 1500);
'; DOM += ''; return DOM; } function searchSKU(findSku){ return LaunchProducts.find(function(el){ return el.sku == findSku; }) }
World Explorations Paris Espresso | Kaffeekapseln (2024)
Top Articles
Latest Posts
Article information

Author: Rev. Porsche Oberbrunner

Last Updated:

Views: 5832

Rating: 4.2 / 5 (53 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Rev. Porsche Oberbrunner

Birthday: 1994-06-25

Address: Suite 153 582 Lubowitz Walks, Port Alfredoborough, IN 72879-2838

Phone: +128413562823324

Job: IT Strategist

Hobby: Video gaming, Basketball, Web surfing, Book restoration, Jogging, Shooting, Fishing

Introduction: My name is Rev. Porsche Oberbrunner, I am a zany, graceful, talented, witty, determined, shiny, enchanting person who loves writing and wants to share my knowledge and understanding with you.