Vertuo Pop Coconut White | Kaffeemaschine (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

"+labellimited+"

"for (var i=0;i=10) clearInterval(checklifallproductssready);}, 750);
').appendTo(bg_discount_container); $('

' + langAssets[bannerLanguage]["oldPraefix"] + ' ' + formatPrice(price) + '

').appendTo(bg_discount_container); $('

' + discountData["label"][bannerLanguage] + '

').appendTo(bg_discount_container); if (discountData["percentage"]) { //calculate new Price console.log("calc percent") let newPrice = price - ((price / 100) * discountData["percentage"]); bg_discount_container.find(".newPrice .price").text(formatPrice(newPrice)); } if (discountData["fixedAmount"]) { //calculate new Price console.log("calc fixed") let newPrice = price - discountData["fixedAmount"]; bg_discount_container.find(".newPrice .price").text(formatPrice(newPrice)); } if (discountData["newPrice"]) { //just write the given price console.log("fixed") bg_discount_container.find(".newPrice .price").text(formatPrice(discountData["newPrice"])); } priceContainer.append(bg_discount_container); } function buildDiscountDomPageBuilder(currentCard, discountData){ console.log(discountData); let nodeName = currentCard.prop("nodeName"); switch(nodeName){ case "NB-SKU-ACCESSORY": case "NB-SKU-COFFEE": case "NB-SKU-MACHINE": //Page Builder Product Grid (NEXT V1) var priceContainerClass = "cb-price"; var priceCurrentClass = "cb-price-current"; var priceoldClass = "cb-price-old"; break; case "NB-PLP-PRODUCT-CARD": //Page Builder SKU Main Info (NEXT V1) var priceContainerClass = "cn_card__priceInnerWrapper"; var priceCurrentClass = "cn_card__priceWrapper--current"; var priceoldClass = "cn_card__priceWrapper--old"; break; case "NB-PLP-PRODUCT-CARD-EXPANDABLE": //Page Builder Product Slider Cross Sell (NEXT V1) var priceContainerClass = "plp-product-card-expandable__priceInnerWrapper"; var priceCurrentClass = "plp-product-card-expandable__price"; var priceoldClass = "cn_card__strikethroughPrice"; break; } let priceContainer = currentCard.find("."+priceContainerClass).first(); let priceCurrentContainer = currentCard.find("."+priceCurrentClass).first(); let price = getPriceIntFromElement(priceCurrentContainer); var priceNewContainer = priceCurrentContainer.clone().css("display", "block"); var priceOldContainer = priceCurrentContainer.clone().css("display", "block"); console.log(price); //console.log("----------"); //console.log(priceContainer); //console.log(priceCurrentContainer); //console.log("########"); //Now start modify priceCurrentContainer.hide(); //hide the original price container // modify new price container priceNewContainer.addClass("bg_rabatt_plp");//just some class to identify custom blaugrau stuff if(nodeName=="NB-PLP-PRODUCT-CARD-EXPANDABLE"){ priceNewContainer.html(""); priceNewContainer.prepend(""); }else{ priceNewContainer.find("span").addClass("price"); } priceNewContainer.prepend(""+langAssets[bannerLanguage]["newPraefix"]+""); //modify old price container priceOldContainer.addClass("bg_rabatt_plp");//just some class to identify custom blaugrau stuff priceOldContainer.removeClass(priceCurrentClass); priceOldContainer.addClass(priceoldClass); priceOldContainer.find("span").addClass("price"); priceOldContainer.prepend(""+langAssets[bannerLanguage]["oldPraefix"]+""); if (discountData["percentage"]) { //calculate new Price console.log("calc percent") let newPrice = price - ((price / 100) * discountData["percentage"]); priceNewContainer.find(".price").text(formatPrice(newPrice)); } if (discountData["fixedAmount"]) { //calculate new Price console.log("calc fixed") let newPrice = price - discountData["fixedAmount"]; priceNewContainer.find(".price").text(formatPrice(newPrice)); } if (discountData["newPrice"]) { //just write the given price console.log("fixed") priceNewContainer.find(".price").text(formatPrice(discountData["newPrice"])); } priceOldContainer.insertAfter(priceCurrentContainer); priceNewContainer.insertAfter(priceCurrentContainer); addCardLabel(currentCard, discountData["label"][bannerLanguage], discountData["labelColor"], discountData["labelBackground"] ); if( discountData["customButton"] ) { buildDiscountButtonDOM(currentCard, discountData); } } function buildDiscountButtonDOM(currentCard, discountData) { console.log("here, in button" ,whereWeAreVar.page_type, ) var ctaHTML, style; if (whereWeAreVar.page_type == "lp" && currentCard.find("nb-cta").length ) { if( currentCard.find(".addingCapsulesButton").length == 0 ) { ctaHTML = currentCard.find("nb-cta"); style = "border-radius: 3em;margin-top: 10px; margin-bottom: 10px; width: auto !important; padding: 1rem 1.5rem 0.875rem;position: initial !important;"; // ctaHTML.css("margin-bottom", "15px"); $('' + discountData["customButtonText"][bannerLanguage] + '').insertAfter(ctaHTML) } } else { if (whereWeAreVar.page_type == "lp") { ctaHTML = currentCard.find(".ProductListElement__details-link"); style = ""; } if (whereWeAreVar.page_type == "dp") { ctaHTML = currentCard.find(".ProductDetails__add-to-basket .AddToBagButton__container"); style = "float: left; position: initial !important;"; } ctaHTML.css("margin-bottom", "15px"); $('' + discountData["customButtonText"][bannerLanguage] + '').insertAfter(ctaHTML) } } function checkTiming(discountData) { //if timing is set if (typeof discountData.timingStart !== 'undefined' && typeof discountData.timingEnd !== 'undefined') { //check if is in range let startDate = discountData.timingStart != "" ? new Date(discountData.timingStart) : new Date(); let endDate = discountData.timingEnd != "" ? new Date(discountData.timingEnd) : new Date(8640000000000000); let debugDate = getDiscountDebug(); let currDate; //console.log(debugDate); if (!debugDate) { currDate = new Date(); } else { currDate = debugDate; } if ( currDate.getTime() >= startDate.getTime() && currDate.getTime() <= endDate.getTime() ) { return true; // timing set and inside range - show it } else { return false; // timing set and outside range - dint show it } } return true; // timing not set, show it } function formatPrice(price) { if (bannerLanguage == "de") { return "€ " + ("" + price.toFixed(2)).replace('.', ','); } if (bannerLanguage == "en") { return "€" + ("" + price.toFixed(2)); } } function getPriceIntFromElement(el) { if (bannerLanguage == "de") { return Number(el.text().replace(/[^0-9\.-]+/g, "")).toFixed(2) / 100; } if (bannerLanguage == "en") { return Number(el.text().replace(/[^0-9,-]+/g, "")).toFixed(2) / 100; } } function getLanguage() { napi.getConfig().then(function (e) { bannerLanguage = e.language; }); } function searchSKU(findSku) { //console.log("check sku "+findSku); return discounts.find(function (el) { if (isArray(el.sku)) { //console.log("is array"); //object has array of skus if (el.sku.includes(String(findSku))) { //console.log("includes sku"); //array includes current sku if (checkTiming(el)) { //console.log("inside timing"); //timing of object is within range return true; } else { //console.log("outside timing"); //timing of object is out of range return false; } } else { //console.log("doesnt include sku"); //array dosnt include current sku return false } } else { //object has string as sku if (el.sku == findSku) { //string includes current sku if (checkTiming(el)) { //timing of object is within range return true; } else { //timing of object is out of range return false; } } else { //string dosnt include current sku return false; } } }) } function whereAreWe() { var url = window.location.pathname; var urlEx = new RegExp('\/order\/(capsules|machines|accessories)\/(original|vertuo)(\/?)(.*)'); var matches = url.match(urlEx); console.log("##### WHERE ARE WE"); if (matches == null) { return { category: "capsules", subcategory: "vertuo", page_type: "lp" }; } // console.log("matches", matches); var product_cat = matches[1]; var sub_cat = matches[2]; var page_type; if (matches[4] == "") { // landing page page_type = "lp"; } else { // detail page page_type = "dp"; } return { category: product_cat, subcategory: sub_cat, page_type: page_type }; } function isArray(obj) { return Object.prototype.toString.call(obj) === '[object Array]'; } function getDiscountDebug() { var params = new URLSearchParams(window.location.search); if (params.has('discountDebug')) { var debugDate = new Date(Date.parse(params.get('discountDebug'))); if (dateIsValid(debugDate)) return debugDate; return false; } return false; } function dateIsValid(date) { return date instanceof Date && !isNaN(date); } function addCardLabel(card, labelText, labelColor, labelBackground){ var label = $(''+labelText+''+labelText+''); console.log(label); if(card.find("nb-card-labels").length){ //card does already have a label card.find("nb-card-labels").append(label); }else{ //card doesnt have a label yet let labelContainer = $(""); labelContainer.append(label) labelContainer.insertBefore(card.find(".cb-content")); } } '):$("nb-add-to-cart").length?$(".cb-AddToCart").after('

'):$(".ProductDetails__add-to-basket").after('

')),$(".machine_compare_lp_entry_wrapper[data-sku='"+t+"']").find("[name='machine_compare_checkbox']").change(function(e){var t=$(this).parents(".machine_compare_lp_entry_wrapper"),a=t.data("real-sku");(t.find("input:checked").length?machine_compare_add_entry:machine_compare_remove_entry)(a)}),$(".machine_compare_lp_entry_wrapper[data-sku='"+t+"']").parents("nb-sku-machine").find("nb-color").click(function(e){console.log("my_color",$(this));$(this).attr("sku");setTimeout(function(){console.log("startup new single-setup-for",t),single_check_box_machine_init(t)},1e3)})}function machine_compare_init(){console.log("machine_compare_ init...",machine_compare_allowed_skus,machine_compare_translations);var i=[];$.each(machine_compare_allowed_skus,function(e,t){i.push(t.sku)}),machine_compare_simplified_allowed_skus=i;var e=$("#replace_helper").html();$("#replace_helper").remove(),$("body").append(e);var a,t,n,c=machine_compare_whereAreWe(),r=window.langAttr;""!=r&&void 0!==r||(r="de"),$.each($(".machine_compare_sticky_container, .machine_compare_error_container").find("[data-text]"),function(e,t){$(t).html(machine_compare_translations[r][$(t).attr("data-text")])}),"machines"==c.category&&($("#main").attr("machine_compare_is_set",1),getAndSetCurrentStorageNumber(a=machine_compare_get_storage()),"lp"==c.page_type?$.each($("nb-sku-machine nb-cta"),function(e,t){var a=$(t).parents("nb-sku-machine").attr("data"),n=JSON.parse(a).colors;console.log("machine_colors",n);var c,r=!1,s=[];$.each(n,function(e,t){s.push(t.sku),r||-1!=i.indexOf(t.sku)&&(r=!0,t.sku)}),r&&(c=$(t).parents("nb-sku-machine").attr("id"),console.log("this_html_sku",c),single_check_box_machine_init(c))}):$("nb-add-to-cart").length?(t=$("nb-sku-machine").attr("data-product-section").toUpperCase(),machine_compare_allowed_skus[t].sku,void 0!==machine_compare_allowed_skus[t]&&(n=$("nb-sku-machine").attr("id"),console.log("this_html_sku",n),single_check_box_machine_init(n))):(t=$(".ProductDetails__specs").text().toUpperCase(),machine_compare_allowed_skus[t].sku,void 0!==machine_compare_allowed_skus[t]&&(n=$(".ProductDetails").attr("id").replace("ProductDetail__erp.at.b2c/prod/",""),console.log("this_html_sku",n),single_check_box_machine_init(n))),$.each(machine_compare_allowed_skus,function(e,t){void 0!==t.display_image&&void 0!==t.display_image&&$(".machine_compare_sticky_container .content_entries").append('

'+t.display_name+"

")}),$(".mach_entry").click(function(){var e=$(this).data("sku");$(".machine_compare_lp_entry_wrapper[data-real-sku='"+e+"'] [name='machine_compare_checkbox']").prop("checked",!1),machine_compare_remove_entry(e)}),$(".machine_compare_lp_entry_wrapper").on("click",function(e){e.stopPropagation()}),$(".ProductListElement__machine").click(function(e){}),$(".machine_compare_error_container .error_close").click(function(){$("html").removeClass("show_machine_compare_error")}),$(".machine_compare_error_container .error_bg").click(function(){700

2

Vertuo Pop Coconut White | Kaffeemaschine (2024)
Top Articles
Latest Posts
Article information

Author: Frankie Dare

Last Updated:

Views: 6371

Rating: 4.2 / 5 (53 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Frankie Dare

Birthday: 2000-01-27

Address: Suite 313 45115 Caridad Freeway, Port Barabaraville, MS 66713

Phone: +3769542039359

Job: Sales Manager

Hobby: Baton twirling, Stand-up comedy, Leather crafting, Rugby, tabletop games, Jigsaw puzzles, Air sports

Introduction: My name is Frankie Dare, I am a funny, beautiful, proud, fair, pleasant, cheerful, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.