App startpagina

#App-Start

App-Link:

App-Productlijst:0

App-Productlijst-Titel:Diabetes

App-Product:0

App-Category:621

 /></p>
<p>#App-End</p> <script type= if (typeof __robin !== 'undefined' && isLoggedIn()) { var customer = getCustomer(); var robin_settings = { callback: function (event, data) { if (event == 'init') { var name = customer.fullname; var email = customer.email; if (email != null && email != '') { var ws = __robin.getWebStore(); ws.conversationTemplate.useAnonymousChat = true; __robin.setShopper(email, name); } } } }; } /** * Function to check if customer is logged in * @returns {boolean} */ function isLoggedIn() { var mageCacheStorage = getMageCacheStorage(); return mageCacheStorage != null && typeof mageCacheStorage.customer !== 'undefined'; } /** * Get the customer from the local storage, because the PHP customer session is depersonalized on cached pages * @returns {Object} */ function getCustomer() { var mageCacheStorage = getMageCacheStorage(); if (mageCacheStorage != null && typeof mageCacheStorage.customer !== 'undefined') { return mageCacheStorage.customer; } return { fullname: 'Unknown', email: 'unknown@unknown.com' }; } /** * @returns {Object|null} */ function getMageCacheStorage() { if (localStorage.getItem('mage-cache-storage') != null) { return JSON.parse(localStorage.getItem('mage-cache-storage')); } return null; }