Coppel.com – Coppel Mejora tu vida


“+absoluteURL); console.debug(“URL->”+absoluteURLSercurity); var imageDirectoryPath = “https://cdn2.coppel.com/wcsstore/AuroraStorefrontAssetStore/”; var styleDirectoryPath = “images/colors/color1/”; var supportPaymentTypePromotions = false; var subsFulfillmentFrequencyAttrName = “fulfillmentFrequency”; var subsPaymentFrequencyAttrName = “paymentFrequency”; var subsTimePeriodAttrName = “timePeriod”; var storeNLS = null; var storeUserType = “G”; var ios = false; var android = true; var multiSessionEnabled = false; // Store the amount of time of inactivity before a re-login is required, this value is retrieved from wc-server.xml, default is 30 mins var inactivityTimeout = 604800000; // Store the amount of time the inactivity warning dialog will be displayed before it closes itself, default is 20 seconds var inactivityWarningDialogDisplayTimer = 20000; // Store the amount of time to display a inactivity warning dialog before a re-login is required, default is 30 seconds var inactivityWarningDialogBuffer = 30000; // Store the timing event to display the inactivity dialog var inactivityTimeoutTracker = null; // Store the timing event to close the inactivity dialog var dialogTimeoutTracker = null; //Summary: Returns the absolute URL to use for prefixing any Ajax URL call. //Description: Dojo does not handle the case where the parameters in the URL are delimeted by the “/” forward slash. Therefore, in order to // workaround the issue, all AJAX requests must be done using absolute URLs rather than relative. //Returns: The absolute URL to use for prefixing any Ajax URL call. function getAbsoluteURL() { if (absoluteURL != “”) { var currentURL = document.URL; var currentProtocol = “”; if (currentURL.indexOf(“://”) != -1) { currentProtocol = currentURL.substring(0, currentURL.indexOf(“://”)); } var savedProtocol = “”; if (absoluteURL.indexOf(“://”) != -1) { savedProtocol = absoluteURL.substring(0, absoluteURL.indexOf(“://”)); } if (currentProtocol != savedProtocol) { absoluteURL = currentProtocol + absoluteURL.substring(absoluteURL.indexOf(“://”)); } } return absoluteURL; } //Summary: Returns the path pointing to the shared image directory. //Description: In order to get the image directory path in any javascript file, this function can be used. //Returns: The path to reference images. function getImageDirectoryPath() { return imageDirectoryPath; } //Summary: Returns the path pointing to the directory containing color-dependant image files. //Description: In order to get the directory containing color-dependant image files in any javascript file, this function can be used. //Returns: The path to reference color-dependant image files. function getStyleDirectoryPath() { return styleDirectoryPath; } //Adding new functions for disabled menu function disableDoubleClickMenu(menu,level,textContent) { console.log(“coppelClientCoppel disableDoubleClickMenu”); categoryLevelClicked(menu,level,textContent); if (typeof(_linkEnabled)==”undefined”) _linkEnabled = true; setTimeout(“blockClick()”, 100); return _linkEnabled; } function disableDoubleClickDeparment(menu,level,textContent) { console.log(“coppelClientCoppel disableDoubleClickDeparment”); categoryLevelClicked(menu,level,textContent); if (typeof(_linkEnabled)==”undefined”) _linkEnabled = true; setTimeout(“blockClick()”, 100); return _linkEnabled; } function blockClick() { _linkEnabled = false; setTimeout(“_linkEnabled=true”, 1000); } ]]> -1); ie7 = (navigator.userAgent.toLowerCase().indexOf(“msie 7.0”) > -1); ie8 = (navigator.userAgent.toLowerCase().indexOf(“msie 8.0”) > -1); } if (location.href.indexOf(‘UnsupportedBrowserErrorView’) == -1 && (ie6 || ie7 || ie8) && url_valor != “adesigner”) { document.write(”); } ]]> .menuDesktop > div > div > .opciones2′). append( `

  • ` ); await $(‘#header .navbar > .container-fluid > .menuMovil’).append(`
  • Modo oscuro `); if (localStorage.getItem(‘darkMode’) === ‘true’) { if($(“#dark-mode-styles”).length === 0) { var headElementDarkMode = document.getElementsByTagName(‘head’)[0]; var scriptElementDarkMode = document.createElement(‘link’); scriptElementDarkMode.type = ‘text/css’; scriptElementDarkMode.rel = ‘stylesheet’; scriptElementDarkMode.id = ‘dark-mode-styles’; scriptElementDarkMode.href = “https://cdn2.coppel.com/wcsstore/AuroraStorefrontAssetStore/” + ‘css/less/dark-mode.css’; headElementDarkMode.appendChild(scriptElementDarkMode); } $(“.modo-oscuro-mobile span”).text(“Modo claro”) $(“.modo-oscuro-mobile span”).css(“color”, “#cfcfce”) $(‘#switch-default’).attr(‘checked’, true) $(“.modo-oscuro img”).prop(‘src’, ‘https://cdn2.coppel.com/wcsstore/AuroraStorefrontAssetStore/emarketing/dark-mode/Claro3x_1.svg’) $(“.modo-oscuro-mobile img”).prop(‘src’, ‘https://cdn2.coppel.com/wcsstore/AuroraStorefrontAssetStore/emarketing/dark-mode/Claro3x_1.svg’) $(“.modo-oscuro img”).prop(‘title’, ‘Modo claro’) $(“.modo-oscuro-mobile img”).prop(‘title’, ‘Modo claro’) $(‘#headerWrapper’).addClass(‘dark-mode’) $(‘#contentWrapper’).addClass(‘dark-mode’) $(‘#footerWrapper’).addClass(‘dark-mode’) $(‘#page’).addClass(‘dark-mode’) } else { localStorage.setItem(‘darkMode’, ‘false’) $(“.modo-oscuro-mobile span”).text(“Modo oscuro”) $(“.modo-oscuro-mobile span”).css(“color”, “#333”) $(“.modo-oscuro img”).prop(‘src’, ‘https://cdn2.coppel.com/wcsstore/AuroraStorefrontAssetStore/emarketing/dark-mode/Oscuro3x_1.svg’) $(“.modo-oscuro-mobile img”).prop(‘src’, ‘https://cdn2.coppel.com/wcsstore/AuroraStorefrontAssetStore/emarketing/dark-mode/Oscuro3x_1.svg’) $(“.modo-oscuro img”).prop(‘title’, ‘Modo oscuro’) $(“.modo-oscuro-mobile img”).prop(‘title’, ‘Modo oscuro’) } } } function darkMode(){ if (localStorage.getItem(‘darkMode’) === ‘false’ || localStorage.getItem(‘darkMode’) === null) { if($(“#dark-mode-styles”).length === 0) { var headElementDarkMode = document.getElementsByTagName(‘head’)[0]; var scriptElementDarkMode = document.createElement(‘link’); scriptElementDarkMode.type = ‘text/css’; scriptElementDarkMode.rel = ‘stylesheet’; scriptElementDarkMode.id = ‘dark-mode-styles’; scriptElementDarkMode.href = “https://cdn2.coppel.com/wcsstore/AuroraStorefrontAssetStore/” + ‘css/less/dark-mode.css’; headElementDarkMode.appendChild(scriptElementDarkMode); } document.cookie = “darkMode=false” $(‘#headerWrapper’).addClass(‘dark-mode’) $(‘#contentWrapper’).addClass(‘dark-mode’) $(‘#footerWrapper’).addClass(‘dark-mode’) $(‘#page’).addClass(‘dark-mode’) localStorage.setItem(‘darkMode’, ‘true’) $(“.modo-oscuro-mobile span”).text(“Modo claro”) $(“.modo-oscuro-mobile span”).css(“color”, “#cfcfce”) $(“.modo-oscuro img”).prop(‘src’, ‘https://cdn2.coppel.com/wcsstore/AuroraStorefrontAssetStore/emarketing/dark-mode/Claro3x_1.svg’) $(“.modo-oscuro-mobile img”).prop(‘src’, ‘https://cdn2.coppel.com/wcsstore/AuroraStorefrontAssetStore/emarketing/dark-mode/Claro3x_1.svg’) $(“.modo-oscuro img”).prop(‘title’, ‘Modo claro’) $(“.modo-oscuro-mobile img”).prop(‘title’, ‘Modo claro’) dataLayer.push({ nd1: ‘Menú’, nd2: ‘Modo oscuro’, nd3: ‘Encendido’, nd4: ”, event: ‘clicGeneral’ }); return } $(‘#headerWrapper’).removeClass(‘dark-mode’) $(‘#contentWrapper’).removeClass(‘dark-mode’) $(‘#footerWrapper’).removeClass(‘dark-mode’) $(‘#page’).removeClass(‘dark-mode’) localStorage.setItem(‘darkMode’, ‘false’) $(“.modo-oscuro-mobile span”).text(“Modo oscuro”) $(“.modo-oscuro-mobile span”).css(“color”, “#333”) $(“.modo-oscuro img”).prop(‘src’, ‘https://cdn2.coppel.com/wcsstore/AuroraStorefrontAssetStore/emarketing/dark-mode/Oscuro3x_1.svg’) $(“.modo-oscuro-mobile img”).prop(‘src’, ‘https://cdn2.coppel.com/wcsstore/AuroraStorefrontAssetStore/emarketing/dark-mode/Oscuro3x_1.svg’) $(“.modo-oscuro img”).prop(‘title’, ‘Modo oscuro’) $(“.modo-oscuro-mobile img”).prop(‘title’, ‘Modo oscuro’) dataLayer.push({ nd1: ‘Menú’, nd2: ‘Modo oscuro’, nd3: ‘Apagado’, nd4: ”, event: ‘clicGeneral’ }); } ]]>
  • Samsung: pantallas, celulares y audio | Coppel.com 0)if(a&&”performance”in a&&a.performance&&”function”==typeof a.performance.setResourceTimingBufferSize)a.performance.setResourceTimingBufferSize();!function(){if(BOOMR=a.BOOMR||{},BOOMR.plugins=BOOMR.plugins||{},!BOOMR.plugins.AK){var e=””==”true”?1:0,t=””,n=”y67tq4tinkzgsyf6w75q-f-17bbec4bd-clientnsv4-s.akamaihd.net”,i={“ak.v”:”31″,”ak.cp”:”953042″,”ak.ai”:parseInt(“610467″,10),”ak.ol”:”0″,”ak.cr”:37,”ak.ipv”:4,”ak.proto”:”h2″,”ak.rid”:”1743a82″,”ak.r”:29952,”ak.a2″:e,”ak.m”:”dsca”,”ak.n”:”essl”,”ak.bpcip”:”199.191.56.0″,”ak.cport”:33702,”ak.gh”:”104.112.235.236″,”ak.quicv”:””,”ak.tlsv”:”tls1.3″,”ak.0rtt”:””,”ak.csrc”:”-“,”ak.acc”:””,”ak.t”:”1623111675″,”ak.ak”:”hOBiQwZUYzCg5VSAfCLimQ==PcrziuEI7Uy+bY5Kr9MsQ8N4ogdtYlFaLcV1KGYYmj9eOhRj27VeBZjsy9s89rzeL7tYok6UpCnu64sJxpS76K70WzNwIijWlfEmO40EJWgBmCRgaQWTbRz6Bf8Y4SlJBRHXdfEll8kBvCWdH5w8ahG3KqAqPym0nHjvv3ArSKQQv7pN8Hrb8ZRwvhRoAEqp7qlChyeejemVLpEvUUiARTglb6j4/40ASEjrTwzheCsoRxOOEGYJTFTLEKqc/8l1ZMN96Y0oOVNr5YMAfrqxTPd+gRmQst4qe9ryElzvDwe3r/dpRDNmb7SgB1wvGhLedY3KtctFMChWZojueBb6UxKqV0cIGRSIEtNDqd6WMPxudANfTtEeKC50yBWv6eJ5O/ARgjxt5HWpLWWHblyjoNV6xlHeLginyfifIQY8lv8=”,”ak.pv”:”130″,”ak.dpoabenc”:””};if(“”!==t)i[“ak.ruds”]=t;var _={i:!1,av:function(e){var t=”http.initiator”;if(e&&(!e[t]||”spa_hard”===e[t]))i[“ak.feo”]=void 0!==a.aFeoApplied?1:0,BOOMR.addVar(i)},rv:function(){var a=[“ak.bpcip”,”ak.cport”,”ak.cr”,”ak.csrc”,”ak.gh”,”ak.ipv”,”ak.m”,”ak.n”,”ak.ol”,”ak.proto”,”ak.quicv”,”ak.tlsv”,”ak.0rtt”,”ak.r”,”ak.acc”,”ak.t”];BOOMR.removeVar(a)}};BOOMR.plugins.AK={akVars:i,akDNSPreFetchDomain:n,init:function(){if(!_.i){var a=BOOMR.subscribe;a(“before_beacon”,_.av,null,null),a(“onbeacon”,_.rv,null,null),_.i=!0}return this},is_complete:function(){return!0}}}}()}(window);]]> Diálogo Mensaje Mostrar mensaje de actualización div’).onclick( function(event) { ga(‘send’, ‘event’, “Crea una cuenta”, ‘click’, ‘iniciar’); }); dojo.query(‘#page > div.wrapper-narrow.static_content > div > section > aside > a’).onclick( function(event) { ga(‘send’, ‘event’, “Recarga tiempo aire aquí”, ‘click’); }); dojo.query(‘#contentRecommendationWidget_4_-1012_6801 > div > a’).onclick( function(event) { sendGas(“”, getMenuTitles(), this.title,’click’) }); dojo.query(‘#contentRecommendationWidget_2_-1000_3802 > div > ul > li > a’).onclick( function(event) { var title = document.getElementById(‘title_2_-1000_3802’).textContent.trim(); ga(‘send’, ‘event’, title, ‘click’, this.textContent.trim()); }); dojo.query(‘#guestShopperContinue’).onclick( function(event) { sendGuestInformationOnCheckout(); }); }); // this function is for CatalogEntryRecommendation_Horizontal_UI.jspf clicks function recommendationsClicked(widget, id, widgetId){ var title = “”; var click = “click”; var categ = false; var menuTitle = ”; if (widget == “catalogEntryRecommendationWidget_2_-1002_3303”) { title = “Nuevos artículos”; } else if (widget == “catalogEntryRecommendationWidget_6_-1002_1307”) { //CAMBIA title = “Recomendaciones”; } else if (widget == “catalogEntryRecommendationWidget_6_-1002_25601”) { //CAMBIA title = “Lo más vendido”; } else if (widgetId == ‘_4_-1012_1313’) { menuTitle = getMenuTitles(); title = menuTitle + ‘-Brands Slider’; click = ‘Brands Slider’; categ = true; } else if (widgetId == ‘_7_-1012_3305’) { menuTitle = getMenuTitles(); title = ‘Conoce más de ‘+ menuTitle; click = title; categ = true; } else if (widgetId == ‘_6_-1012_3304’) { menuTitle = getMenuTitles(); title = menuTitle + ‘ Companies’; click = title; categ = true; } else { title = document.getElementById(‘title’+widgetId).textContent.trim(); } var recommendationlIsclicked = “”; if (widgetId == ‘_3_-1000_1301’) { recommendationlIsclicked = document.getElementById(widget).getElementsByTagName(‘h3’)[id].textContent.trim(); title = ‘Más servicios, más beneficios’; } else { //recommendationlIsclicked = document.getElementById(widget).getElementsByTagName(‘img’)[id].getAttribute(‘alt’); recommendationlIsclicked = dojo.query(‘#’+widget).query(‘.swiper-slide:not(.swiper-slide-duplicate)’).query(‘img’)[id].getAttribute(‘alt’); //CAMBIA } if (categ) { sendGasCategory(id, title, recommendationlIsclicked,click,menuTitle); } else { sendGas(id, title, recommendationlIsclicked,click); } } function getMenuTitles(){ if (document.getElementById(‘widget_breadcrumb’)!=null){ var title = document.getElementById(‘lastBreadCrumbItem’).value; return title; } } function getBreadcrumTitles(){ if (document.getElementById(‘widget_breadcrumb’)!=null){ var title = document.getElementById(‘breadCrumbItem’).value; return title; } } function sendGas(id, name, alt, click){} function sendGasCategory(id, name, alt, click,maintitle){} function getTitle(widgetId){ var title = document.getElementById(widgetId).textContent.trim(); return title; } function NewAccountClicked() { ga(‘send’, ‘event’, ‘Nueva cuenta’, ‘Click’, ‘Crear una nueva cuenta’); } function carouselClicked(id, name) { var slider_cat = dojo.query(‘#contentCarousel_1_1003_1302’).query(‘.swiper-slide:not(.swiper-slide-duplicate) ‘).query(‘.btn:first-of-type’)[id-1].dataset.categoria; // CAMBIA ga(‘ec:addPromo’,{ ‘id’: ‘SliderH_’+id, //CAMBIA ‘name’: “HomePage-Carosuel”, ‘creative’: ‘Slider_’+id.toString()+’-‘+slider_cat, //CAMBIA ‘position’: id }); ga(‘ec:setAction’, ‘promo_click’); ga(‘send’, ‘event’, ‘HomePage-Carousel’, ‘click’, ‘Slider_’+id.toString()+’-‘+slider_cat); //CAMBIA } function onClickEvent(thisObj,eventObj,serviceName){ var targetURL = null; var dataSlotId = null; var alt = null; var pageName = ‘Samsung’; if(eventObj.target.getAttribute(“alt”) != ‘undefined’ && eventObj.target.getAttribute(“alt”) != ‘null’ && eventObj.target.getAttribute(“alt”) != ” && eventObj.target.getAttribute(“alt”) != null){ targetURL = dojo.query(eventObj.target).parent(“a”); dataSlotId = dojo.query(thisObj).parent().attr(“data-slot-id”); alt = eventObj.target.getAttribute(“alt”); } else { targetURL = dojo.query(eventObj.target)[0].attr(‘href’); dataSlotId = dojo.query(thisObj).parent().attr(“data-slot-id”); alt = dojo.query(eventObj.target)[0].textContent; } ga(‘send’, ‘event’, pageName, serviceName, alt); // Home Page } function sendLogedInInformationOnCheckout(){ var map = { ‘step’: ‘1’, ‘options’: ‘Logged In’ }; ga(‘ec:setAction’, ‘checkout’, map); ga(‘send’, ‘event’, ‘Checkout Steps’, ‘Login’); } function categoryLevelClicked(menu,level,textContent){ ga(‘send’, ‘event’, menu, level, textContent); } function searchFacetCategoryClicked(widgetSuffix,text){ var name = ‘Left Menu’; if (widgetSuffix==’_5_-1009_1105′){ name = getBreadcrumTitles(); } ga(‘send’, ‘event’, name, getMenuTitles(), text.trim()); } function sectionlistmfNameClicked(text){ ga(‘send’, ‘event’, getBreadcrumTitles(), getMenuTitles(), text.trim()); } function paymentoptions(){ var optionsToSend = document.getElementById(“selectedMethod_1″).value; var paymentMethod = ”; if (optionsToSend == ‘PayU’){ paymentMethod = document.getElementById(“establishmentId_1”).value; optionsToSend = ‘Efectivo’; } else if (optionsToSend == ‘CreditoCoppel’){ if (document.getElementById(“establishmentId_2”)!=’undefined’ && document.getElementById(“establishmentId_2”)!=null){ paymentMethod = document.getElementById(“establishmentId_2”).value; } else { paymentMethod = ‘Tarjeta de crédito/débito’; } optionsToSend = ‘Credito Coppel’; } else if (optionsToSend == ‘Master Card’){ optionsToSend = ‘Tarjeta de crédito/débito’; } if (optionsToSend != ‘Tarjeta de crédito/débito’){ if (paymentMethod == ‘banamex’){ optionsToSend = optionsToSend +’ – ‘+’Bancomer/HSBC/Banamex’; } else if (paymentMethod == ‘scotia’){ optionsToSend = optionsToSend +’ – ‘+’SCOTIABANK’; } else if (paymentMethod == ‘Tarjeta de crédito/débito’){ optionsToSend = optionsToSend +’ – ‘+’Tarjeta de crédito/débito’; } else{ optionsToSend = optionsToSend +’ – ‘+paymentMethod.toUpperCase(); } } return optionsToSend; } function contentRecomClicked(widgetId,banerType,id){} ]]> 6){ contentRecommendationUItotallength = (contentRecommendationUIh3Array.length / 6); }else{ contentRecommendationUItotallength = 1; } var contentRecommendationUIlengthOfRecommendations = new Array(); var contentRecommendationUIimagesUserHasSeen = new Array(); for(var i = 0; i 6){ contentRecommendationUIlengthOfRecommendations[i] = 6; }else{ contentRecommendationUIlengthOfRecommendations[i] = contentRecommendationUIh3Array.length; } } for(var a = 0; a 4){ catalogEntryRecommendationsLength = (catalogEntryRecommendationsImagesArray.length / 4); }else{ catalogEntryRecommendationsLength = catalogEntryRecommendationsImagesArray.length; } var catalogEntryRecommendationsLengthOfRec = new Array(); var catalogEntryRecommendationsImagesUserHasSeen = new Array(); for(var i = 0; i 4){ catalogEntryRecommendationsLengthOfRec[i] = 4; }else{ catalogEntryRecommendationsLengthOfRec[i] = catalogEntryRecommendationsImagesArray.length; } } for(var position = 0; position 6){ catalogEntryRecommendationsLengthSlider = (catalogEntryRecommendationsImagesArraySlider.length / 6); }else{ catalogEntryRecommendationsLengthSlider = catalogEntryRecommendationsImagesArraySlider.length; } var catalogEntryRecommendationsLengthOfRecSlider = new Array(); var catalogEntryRecommendationsImagesUserHasSeenSlider = new Array(); for(var i = 0; i 6){ catalogEntryRecommendationsLengthOfRecSlider[i] = 6; }else{ catalogEntryRecommendationsLengthOfRecSlider[i] = catalogEntryRecommendationsImagesArraySlider.length; } } for(var position = 0; position 4){ slideLength = (slideArray.length / 4); }else{ slideLength = slideArray.length; } var slideLengthSlider = new Array(); var slideMap = new Array(); for(var i = 0; i 4){ slideLengthSlider[i] = 4; }else{ slideLengthSlider[i] = slideArray.length; } } for(var position = 0; position 1) { for(var i = 0; i 6){ catalogEntryItemsOfIterestImgesLength = (catalogEntryItemsOfIterestImgesArray.length / 6); }else{ catalogEntryItemsOfIterestImgesLength = catalogEntryItemsOfIterestImgesArray.length; } var catalogEntryItemsOfIterestImgesLengthRec = new Array(); var catalogEntryItemsOfIterestImgesUserHasSeenSlider = new Array(); for(var i = 0; i 6){ catalogEntryItemsOfIterestImgesLengthRec[i] = 6; }else{ catalogEntryItemsOfIterestImgesLengthRec[i] = catalogEntryItemsOfIterestImgesArray.length; } } for(var position = 0; position
    Source