Eden Park Motorcycle Helmet Barbarian< Motorbike Helmets
100% thermoplasticMotorcycle helmet in collaboration with Airoh. Outer shellSun Screen VisorAdjust…
// 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 Barbarian”, “url”: “https://www.eden-park.com/en/products/casque-h23ahtcq0002_blf”, “image”: [ “https://www.eden-park.com/cdn/shop/files/H23AHTCQ0002_BLF_b_hd_mface_e40f1ba9-893a-4ed0-841c-9461258356ac_1206x.png?v=1710495827” ], “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 contraste nUn 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”: “3606379036045”, “gtin13”: “3606379036045”, “brand”: { “@type”: “Brand”, “name”: “Eden Park” }, “offers”: [{ “@type” : “Offer”,”sku”: “3606379036083”,”availability” : “http://schema.org/InStock”, “price” : 299.0, “priceCurrency” : “EUR”, “url” : “https://www.eden-park.com/en/products/casque-h23ahtcq0002_blf?variant=47117861257551” },{ “@type” : “Offer”,”sku”: “3606379036069”,”availability” : “http://schema.org/InStock”, “price” : 299.0, “priceCurrency” : “EUR”, “url” : “https://www.eden-park.com/en/products/casque-h23ahtcq0002_blf?variant=47117861290319” },{ “@type” : “Offer”,”sku”: “3606379036045”,”availability” : “http://schema.org/InStock”, “price” : 299.0, “priceCurrency” : “EUR”, “url” : “https://www.eden-park.com/en/products/casque-h23ahtcq0002_blf?variant=47117861224783” },{ “@type” : “Offer”,”sku”: “3606379036038”,”availability” : “http://schema.org/InStock”, “price” : 299.0, “priceCurrency” : “EUR”, “url” : “https://www.eden-park.com/en/products/casque-h23ahtcq0002_blf?variant=47117861355855” },{ “@type” : “Offer”,”sku”: “3606379036076”,”availability” : “http://schema.org/InStock”, “price” : 299.0, “priceCurrency” : “EUR”, “url” : “https://www.eden-park.com/en/products/casque-h23ahtcq0002_blf?variant=47117861421391” },{ “@type” : “Offer”,”sku”: “3606379036021”,”availability” : “http://schema.org/InStock”, “price” : 299.0, “priceCurrency” : “EUR”, “url” : “https://www.eden-park.com/en/products/casque-h23ahtcq0002_blf?variant=47117861486927” }] }
.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; } }
.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();});