Niimbot B21

9 tuotetta

per sivu
View as Ruudukko Luettelo

9 tuotetta

per sivu
View as Ruudukko Luettelo

Namly Design - Shop Under Maintenance

Sorry, we are working to improve the online shop. We will be up and running very soon. Please check back soon. Thank you!

" let _customerEmail = "" window.CRISP_SESSION_ID = $crisp.get('session:identifier'); $crisp.push(['set', 'session:segments', [['magento']]]); if (_customerEmail) { $crisp.push(['set', 'user:email', _customerEmail]); } if (_customerId) { postData("customer", {id: parseInt(_customerId)}) } require(["Magento_Customer/js/customer-data"], (customerData) => { setTimeout(() => { let _cartType = "cart" let _cart = customerData.get("cart"); let _customer = customerData.get("customer"); let _cartData = _cart() let _customerData = _customer() let _currency = "EUR" if ((_customerData || {}).fullname) { $crisp.push(['set', 'user:nickname', _customerData.fullname]); } if ((_cartData || {}).items) { if (_currency !== null) { _cartData.currency = _currency } postData(_cartType, _cartData); } _cart.subscribe((data) => { if (_currency !== null) { data.currency = _currency } postData(_cartType, data); }); }, 200); }) } function postData(type, body) { fetch( crispPluginURL + "/visitors/website/" + window.CRISP_WEBSITE_ID + "/session/" + window.CRISP_SESSION_ID + "/" + type, { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json", }, body: JSON.stringify(body), } ); }