// Sélectionne l’élément par son ID  const tracabilite_span = document.getElementById(‘tracabilite_event’);  // Ajoute un écouteur de clic à cet élément  tracabilite_span.addEventListener(‘click’, function() {    const iframe = document.getElementById(‘iframe_tracabilite’);    if (!iframe.src || iframe.src === window.location.href) {      iframe.src = iframe.dataset.src;    }  });  document.addEventListener(‘DOMContentLoaded’, function() {    function isIE() {      const ua = window.navigator.userAgent;      const msie = ua.indexOf(‘MSIE ‘);      const trident = ua.indexOf(‘Trident/’);      return (msie > 0 || trident > 0);    }    if (!isIE()) return;    const hiddenInput = document.querySelector(‘#product-form-template–15364109533380__main input[name=”id”]’);    const noScriptInputWrapper = document.createElement(‘div’);    const variantSwitcher = document.querySelector(‘variant-radios[data-section=”template–15364109533380__main”]’) || document.querySelector(‘variant-selects[data-section=”template–15364109533380__main”]’);    noScriptInputWrapper.innerHTML = document.querySelector(‘.product-form__noscript-wrapper-template–15364109533380__main’).textContent;    variantSwitcher.outerHTML = noScriptInputWrapper.outerHTML;    document.querySelector(‘#Variants-template–15364109533380__main’).addEventListener(‘change’, function(event) {      hiddenInput.value = event.currentTarget.value;    });  });  {    “@context”: “http://schema.org/”,    “@type”: “Product”,    “name”: “Motorcycle Helmet Navy Blue”,    “url”: “https://www.eden-park.com/en/products/casque-h23ahtcq0003_blf”,    “image”: [        “https://www.eden-park.com/cdn/shop/files/H23AHTCQ0003_BLF_a_hd_mface_34e08293-fdc2-4039-9444-3aa1396470ed_1206x.jpg?v=1710495791”      ],    “description”: “Casque de moto en collaboration avec Airoh. nnCalotte externennSun Screen VisornUne fermeture micrométrique réglablenDes intérieurs hypoallergéniques complètement amovibles et lavablesnDes coutures en contrastenUn système de ventilation et d’extraction d’air avec une finition carbon-look.nLogo Airoh à l’avantnLogo Eden Park sur les côtés et à l’arrière. n”,    “sku”: “3606379036137”, “gtin13”: “3606379036137”,    “brand”: {      “@type”: “Brand”,      “name”: “Eden Park”    },    “offers”: [{          “@type” : “Offer”,”sku”: “3606379036151”,”availability” : “http://schema.org/InStock”,          “price” : 299.0,          “priceCurrency” : “EUR”,          “url” : “https://www.eden-park.com/en/products/casque-h23ahtcq0003_blf?variant=47117861454159”        },{          “@type” : “Offer”,”sku”: “3606379036137”,”availability” : “http://schema.org/InStock”,          “price” : 299.0,          “priceCurrency” : “EUR”,          “url” : “https://www.eden-park.com/en/products/casque-h23ahtcq0003_blf?variant=47117861519695”        },{          “@type” : “Offer”,”sku”: “3606379036113”,”availability” : “http://schema.org/InStock”,          “price” : 299.0,          “priceCurrency” : “EUR”,          “url” : “https://www.eden-park.com/en/products/casque-h23ahtcq0003_blf?variant=47117861323087”        },{          “@type” : “Offer”,”sku”: “3606379036106”,”availability” : “http://schema.org/InStock”,          “price” : 299.0,          “priceCurrency” : “EUR”,          “url” : “https://www.eden-park.com/en/products/casque-h23ahtcq0003_blf?variant=47117861552463”        },{          “@type” : “Offer”,”sku”: “3606379036144”,”availability” : “http://schema.org/InStock”,          “price” : 299.0,          “priceCurrency” : “EUR”,          “url” : “https://www.eden-park.com/en/products/casque-h23ahtcq0003_blf?variant=47117861585231”        },{          “@type” : “Offer”,”sku”: “3606379036090”,”availability” : “http://schema.org/InStock”,          “price” : 299.0,          “priceCurrency” : “EUR”,          “url” : “https://www.eden-park.com/en/products/casque-h23ahtcq0003_blf?variant=47117861617999”        }]  }

.section-template–15364109533380__complete_the_look-padding {    padding-top: 27px;    padding-bottom: 27px;  }  @media screen and (min-width: 750px) {    .section-template–15364109533380__complete_the_look-padding {      padding-top: 36px;      padding-bottom: 36px;    }  }
  

     

                                                                                         Free delivery
from 99 € purchase

     

                                                                                         Secure payment
via Paypal, Visa, Mastercard, Apple Pay

                                                                                      Returns
within 14 days
                                                       Customer service
+33 1 55 90 44 00
  

           {        “@context”: “http://schema.org”,        “@type”: “Product”,        “aggregateRating”: {            “@type”: “AggregateRating”,            “ratingValue”: “5.0”,            “reviewCount”: “2”        },        “name”:”Motorcycle Helmet Navy Blue”,        “image”:[“https://www.eden-park.com/cdn/shop/files/H23AHTCQ0003_BLF_a_hd_mface_34e08293-fdc2-4039-9444-3aa1396470ed.jpg?v=1710495791&width=480”],        “offers”: {            “@type”: “Offer”,            “availability”: “http://schema.org/InStock”,            “price”: “299.0”,            “priceCurrency”: “EUR”,            “sku”: “3606379036137”,            “url”: “https://www.eden-park.com/en/products/casque-h23ahtcq0003_blf?variant=47117861519695”        },        “brand”: {          “@type”: “Brand”,          “name”: “Eden Park”        },        “description”: “Casque de moto en collaboration avec Airoh. nnCalotte externennSun Screen VisornUne fermeture micrométrique réglablenDes intérieurs hypoallergéniques complètement amovibles et lavablesnDes coutures en contrastenUn système de ventilation et d’extraction d’air avec une finition carbon-look.nLogo Airoh à l’avantnLogo Eden Park sur les côtés et à l’arrière. n”,        “sku”: “3606379036137”      }          

.section-template–15364109533380__cfe7b410-ff69-4bd4-aeb5-8aca002aef00-padding {  padding-top: calc(0px * 0.75);  padding-bottom: calc(0px  * 0.75);}@media screen and (min-width: 750px) {  .section-template–15364109533380__cfe7b410-ff69-4bd4-aeb5-8aca002aef00-padding {    padding-top: 0px;    padding-bottom: 0px;  }}

 

   window.addEventListener(‘load’, () => {  const _learnq = window._learnq || [];  let klAjax = true;   const addedToCart = async () => {    try {      const response = await fetch(`${window.location.origin}/cart.js`);      if (!response.ok) {        throw new Error(‘Network response was not ok’);      }      const data = await response.json();      const cart = {        total_price: data.total_price / 100,        $value: data.total_price / 100,        total_discount: data.total_discount,        original_total_price: data.original_total_price / 100,        items: data.items,        …(typeof item !== ‘undefined’ && item)      };       if (klAjax) {        console.log(‘Pushing to _learnq:’, cart); // Logging for debugging        _learnq.push([‘track’, ‘Added to Cart’, cart]);        klAjax = false;      }    } catch (error) {      console.error(‘Error fetching cart data:’, error);    }  };   const originalFetch = window.fetch.bind(window);  window.fetch = (…args) => {    return originalFetch(…args).then(response => {      if (response.url.includes(`${window.location.origin}/cart/add.js`)) {        addedToCart();      }      return response;    });  };   const debounce = (func, wait) => {    let timeout;    return (…args) => {      clearTimeout(timeout);      timeout = setTimeout(() => func.apply(this, args), wait);    };  };   const handleAddToCartClick = debounce(() => {    if (klAjax) {      console.log(‘Tracking add to cart click’); // Logging for debugging      _learnq.push([‘track’, ‘Added to Cart’, item]);      klAjax = false;    }  }, 200);   const observeAddToCartButtons = () => {    const atcButtons = document.querySelectorAll(“form[action*=’/cart/add’] button[type=’submit’]”);    atcButtons.forEach(button => {      button.removeEventListener(“click”, handleAddToCartClick);      button.addEventListener(“click”, handleAddToCartClick);    });  };   const observer = new MutationObserver(observeAddToCartButtons);  observer.observe(document.body, { childList: true, subtree: true });   observeAddToCartButtons();});