Càpsules de cafè, Cafeteres i Accessoris | Nespresso ®

Skip to content

Encapçalament

BENVINGUT/DA A NESPRESSO: CÀPSULES DE CAFÈ, MÀQUINES I ACCESSORIS

let adresses; let clientFromMadrid = false; const cpMadrid = ["28001","28002","28003","28004","28005","28006","28007","28008","28009","28010","28012","28013","28014","28015","28016","28017","28019","28020","28027","28028","28029","28030","28033","28035","28036","28037","28038","28039","28043","28046","28040","28023","28024","28220","28221","28222","28223","28224","28231","28232","28660","28668","28669","28901","28902","28903","28904","28905","28906","28907","28909","28911","28912","28913","28914","28915","28916","28917","28918","28919","28921","28922","28923","28924","28925","28941","28942","28943","28944","28945","28946"]; napi.customer().getAddresses().then(function(values) { // IF PROMISE FULLFILLED adresses = values; adresses.forEach(function(adress){if(cpMadrid.includes(adress.zipCode)) {clientFromMadrid = true}}); if (clientFromMadrid) {executeCasper()}; // IF PROMISE REJECTED }, function(reason) { }); function executeCasper() { new casperEventHub.Experience("logged-in-homebanner-BTQMadrid") .visitorIs({ status: "Active", }) .executeOnMatch(function (data) { document.querySelector('.free-html[data-label="HomeBanner_BTQ_Madrid"]').style.display = 'block'; data.unsubscribe(); }) .evaluate(); }