{"categories":[{"id":"267","name":"Inbouwdeel","required":true,"multiple":true,"expanded":true,"single_product":false,"products":[{"product_id":"41022","sku":"A71951223613853","name":"Grohe basisgarnituur voor hoofddoucheset Messing","image":"https:\/\/media.saniweb.nl\/cdn-cgi\/image\/fit=pad,format=auto,width=240,height=240\/media\/catalog\/product\/G\/A\/GALV_D130001001312358.jpg","url":"https:\/\/www.saniweb.be\/grohe-basisgarnituur-voor-hoofddoucheset-messing-26483000.html","price_final":96.75,"price_html":"<div class=\"price-box price-final_price\" data-role=\"priceBox\" data-product-id=\"41022\" data-price-box=\"product-id-41022\">    <span class=\"w-full advice-price block shrink-0 text-xs text-brand-gray-dark -mb-2 \">\n        Adviesprijs        <span\n    x-data x-id=\"['old\\u002Dprice\\u002D41022']\"    class=\"price-container line-through&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('old\\u002Dprice\\u002D41022')\"                data-price-amount=\"193\"\n        data-price-type=\"originalPrice\"\n        class=\"price-wrapper \"\n    >193,00<\/span>\n        <\/span>\n    <\/span>\n<div class=\"current-price final flex relative\">\n    <span class=\"price-label sr-only\">Prijs<\/span>\n    <span\n    x-data x-id=\"['product\\u002Dprice\\u002D41022']\"    class=\"price-container font-extrabold&#x20;text-3xl&#x20;lg&#x3A;text-3.5xl&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('product\\u002Dprice\\u002D41022')\"                data-price-amount=\"96.75\"\n        data-price-type=\"finalPrice\"\n        class=\"price-wrapper \"\n    >96,75<\/span>\n        <\/span>\n<\/div>\n<div class=\"hidden discount-price-label-wrapper ml-auto\">\n            <div class=\"discount-price discount-price-basic relative flex items-center ml-3.5 font-bold leading-3 bg-brand-blue px-2.5 text-white text-xs lg:text-sm rounded-r\n             \"\n         >\n            <span class=\"uppercase\">Je bespaart&nbsp;<\/span>\n            <span>50%<\/span>\n        <\/div>\n    <\/div>\n<\/div>","review_html":"","review_summary":null,"review_count":null,"selected":true,"price_old":193,"price_discount":96.25},{"product_id":"41076","sku":"A67063402789233","name":"Rainshower universele inbouwbox 1\/2","image":"https:\/\/media.saniweb.nl\/cdn-cgi\/image\/fit=pad,format=auto,width=240,height=240\/media\/catalog\/product\/2\/6\/26484000_P11.jpg","url":"https:\/\/www.saniweb.be\/rainshower-universele-inbouwbox-1-2-26484000.html","price_final":101.28,"price_html":"<div class=\"price-box price-final_price\" data-role=\"priceBox\" data-product-id=\"41076\" data-price-box=\"product-id-41076\">    <span class=\"w-full advice-price block shrink-0 text-xs text-brand-gray-dark -mb-2 \">\n        Adviesprijs        <span\n    x-data x-id=\"['old\\u002Dprice\\u002D41076']\"    class=\"price-container line-through&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('old\\u002Dprice\\u002D41076')\"                data-price-amount=\"193\"\n        data-price-type=\"originalPrice\"\n        class=\"price-wrapper \"\n    >193,00<\/span>\n        <\/span>\n    <\/span>\n<div class=\"current-price final flex relative\">\n    <span class=\"price-label sr-only\">Prijs<\/span>\n    <span\n    x-data x-id=\"['product\\u002Dprice\\u002D41076']\"    class=\"price-container font-extrabold&#x20;text-3xl&#x20;lg&#x3A;text-3.5xl&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('product\\u002Dprice\\u002D41076')\"                data-price-amount=\"101.28\"\n        data-price-type=\"finalPrice\"\n        class=\"price-wrapper \"\n    >101,28<\/span>\n        <\/span>\n<\/div>\n<div class=\"hidden discount-price-label-wrapper ml-auto\">\n            <div class=\"discount-price discount-price-basic relative flex items-center ml-3.5 font-bold leading-3 bg-brand-blue px-2.5 text-white text-xs lg:text-sm rounded-r\n             \"\n         >\n            <span class=\"uppercase\">Je bespaart&nbsp;<\/span>\n            <span>48%<\/span>\n        <\/div>\n    <\/div>\n<\/div>","review_html":"","review_summary":null,"review_count":null,"price_old":193,"price_discount":91.72}],"label":"noodzakelijk"},{"id":"264","name":"Mengkraan afbouwdeel","required":false,"multiple":true,"expanded":false,"single_product":false,"products":[{"product_id":"191789","sku":"A12415006292238","name":"Grohe Grohtherm Smartcontrol Afbouwdeel Thermostaat Warm Sunset Geborsteld","image":"https:\/\/media.saniweb.nl\/cdn-cgi\/image\/fit=pad,format=auto,width=240,height=240\/media\/catalog\/product\/2\/9\/29119DL0_P1.jpg","url":"https:\/\/www.saniweb.be\/grohe-grohtherm-smartcontrol-afbouwdeel-thermostaat-warm-sunset-geborsteld-29119dl0.html","price_final":814.29,"price_html":"<div class=\"price-box price-final_price\" data-role=\"priceBox\" data-product-id=\"191789\" data-price-box=\"product-id-191789\">    <span class=\"w-full advice-price block shrink-0 text-xs text-brand-gray-dark -mb-2 \">\n        Adviesprijs        <span\n    x-data x-id=\"['old\\u002Dprice\\u002D191789']\"    class=\"price-container line-through&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('old\\u002Dprice\\u002D191789')\"                data-price-amount=\"1548\"\n        data-price-type=\"originalPrice\"\n        class=\"price-wrapper \"\n    >1.548,00<\/span>\n        <\/span>\n    <\/span>\n<div class=\"current-price final flex relative\">\n    <span class=\"price-label sr-only\">Prijs<\/span>\n    <span\n    x-data x-id=\"['product\\u002Dprice\\u002D191789']\"    class=\"price-container font-extrabold&#x20;text-3xl&#x20;lg&#x3A;text-3.5xl&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('product\\u002Dprice\\u002D191789')\"                data-price-amount=\"814.29\"\n        data-price-type=\"finalPrice\"\n        class=\"price-wrapper \"\n    >814,29<\/span>\n        <\/span>\n<\/div>\n<div class=\"hidden discount-price-label-wrapper ml-auto\">\n            <div class=\"discount-price discount-price-basic relative flex items-center ml-3.5 font-bold leading-3 bg-brand-blue px-2.5 text-white text-xs lg:text-sm rounded-r\n             \"\n         >\n            <span class=\"uppercase\">Je bespaart&nbsp;<\/span>\n            <span>47%<\/span>\n        <\/div>\n    <\/div>\n<\/div>","review_html":"","review_summary":null,"review_count":null,"price_old":1548,"price_discount":733.71}],"filter_id":1883},{"id":"231","name":"Muuraansluitbocht","required":false,"multiple":true,"expanded":false,"single_product":false,"products":[{"product_id":"137482","sku":"A10360609597088","name":"Grohe Rainshower Wandaansluitbocht Warm Sunset","image":"https:\/\/media.saniweb.nl\/cdn-cgi\/image\/fit=pad,format=auto,width=240,height=240\/media\/catalog\/product\/2\/7\/27057DA0_P1_1.jpg","url":"https:\/\/www.saniweb.be\/grohe-rainshower-wandaansluitbocht-warm-sunset-27057da0.html","price_final":82.18,"price_html":"<div class=\"price-box price-final_price\" data-role=\"priceBox\" data-product-id=\"137482\" data-price-box=\"product-id-137482\">    <span class=\"w-full advice-price block shrink-0 text-xs text-brand-gray-dark -mb-2 \">\n        Adviesprijs        <span\n    x-data x-id=\"['old\\u002Dprice\\u002D137482']\"    class=\"price-container line-through&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('old\\u002Dprice\\u002D137482')\"                data-price-amount=\"152\"\n        data-price-type=\"originalPrice\"\n        class=\"price-wrapper \"\n    >152,00<\/span>\n        <\/span>\n    <\/span>\n<div class=\"current-price final flex relative\">\n    <span class=\"price-label sr-only\">Prijs<\/span>\n    <span\n    x-data x-id=\"['product\\u002Dprice\\u002D137482']\"    class=\"price-container font-extrabold&#x20;text-3xl&#x20;lg&#x3A;text-3.5xl&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('product\\u002Dprice\\u002D137482')\"                data-price-amount=\"82.18\"\n        data-price-type=\"finalPrice\"\n        class=\"price-wrapper \"\n    >82,18<\/span>\n        <\/span>\n<\/div>\n<div class=\"hidden discount-price-label-wrapper ml-auto\">\n            <div class=\"discount-price discount-price-basic relative flex items-center ml-3.5 font-bold leading-3 bg-brand-blue px-2.5 text-white text-xs lg:text-sm rounded-r\n             \"\n         >\n            <span class=\"uppercase\">Je bespaart&nbsp;<\/span>\n            <span>46%<\/span>\n        <\/div>\n    <\/div>\n<\/div>","review_html":"","review_summary":null,"review_count":null,"price_old":152,"price_discount":69.82}],"filter_id":1884},{"id":"224","name":"Doucheslang","required":false,"multiple":true,"expanded":false,"single_product":false,"products":[{"product_id":"314692","sku":"A47166450556512","name":"Grohe Silverflex Professional Doucheslang 125 cm Warm Sunset","image":"https:\/\/media.saniweb.nl\/cdn-cgi\/image\/fit=pad,format=auto,width=240,height=240\/media\/catalog\/product\/2\/8\/28362DA1_P1.jpg","url":"https:\/\/www.saniweb.be\/grohe-silverflex-professional-doucheslang-125-cm-warm-sunset-28362da1.html","price_final":30.76,"price_html":"<div class=\"price-box price-final_price\" data-role=\"priceBox\" data-product-id=\"314692\" data-price-box=\"product-id-314692\">    <span class=\"w-full advice-price block shrink-0 text-xs text-brand-gray-dark -mb-2 \">\n        Adviesprijs        <span\n    x-data x-id=\"['old\\u002Dprice\\u002D314692']\"    class=\"price-container line-through&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('old\\u002Dprice\\u002D314692')\"                data-price-amount=\"44\"\n        data-price-type=\"originalPrice\"\n        class=\"price-wrapper \"\n    >44,00<\/span>\n        <\/span>\n    <\/span>\n<div class=\"current-price final flex relative\">\n    <span class=\"price-label sr-only\">Prijs<\/span>\n    <span\n    x-data x-id=\"['product\\u002Dprice\\u002D314692']\"    class=\"price-container font-extrabold&#x20;text-3xl&#x20;lg&#x3A;text-3.5xl&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('product\\u002Dprice\\u002D314692')\"                data-price-amount=\"30.76\"\n        data-price-type=\"finalPrice\"\n        class=\"price-wrapper \"\n    >30,76<\/span>\n        <\/span>\n<\/div>\n<div class=\"hidden discount-price-label-wrapper ml-auto\">\n            <div class=\"discount-price discount-price-basic relative flex items-center ml-3.5 font-bold leading-3 bg-brand-blue px-2.5 text-white text-xs lg:text-sm rounded-r\n             \"\n         >\n            <span class=\"uppercase\">Je bespaart&nbsp;<\/span>\n            <span>30%<\/span>\n        <\/div>\n    <\/div>\n<\/div>","review_html":"","review_summary":null,"review_count":null,"price_old":44,"price_discount":13.24}],"filter_id":1885},{"id":"236","name":"Handdouche","required":false,"multiple":true,"expanded":false,"single_product":false,"products":[{"product_id":"224306","sku":"A77608365225878","name":"Grohe Rainshower Smartactive 130 handdouche warm sunset","image":"https:\/\/media.saniweb.nl\/cdn-cgi\/image\/fit=pad,format=auto,width=240,height=240\/media\/catalog\/product\/2\/6\/26574DA0_P1.jpg","url":"https:\/\/www.saniweb.be\/grohe-rainshower-smartactive-130-handdouche-warm-sunset-26574da0.html","price_final":129.39,"price_html":"<div class=\"price-box price-final_price\" data-role=\"priceBox\" data-product-id=\"224306\" data-price-box=\"product-id-224306\">    <span class=\"w-full advice-price block shrink-0 text-xs text-brand-gray-dark -mb-2 \">\n        Adviesprijs        <span\n    x-data x-id=\"['old\\u002Dprice\\u002D224306']\"    class=\"price-container line-through&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('old\\u002Dprice\\u002D224306')\"                data-price-amount=\"238\"\n        data-price-type=\"originalPrice\"\n        class=\"price-wrapper \"\n    >238,00<\/span>\n        <\/span>\n    <\/span>\n<div class=\"current-price final flex relative\">\n    <span class=\"price-label sr-only\">Prijs<\/span>\n    <span\n    x-data x-id=\"['product\\u002Dprice\\u002D224306']\"    class=\"price-container font-extrabold&#x20;text-3xl&#x20;lg&#x3A;text-3.5xl&#x20;currency-sign&#x20;tax&#x20;weee\"\n        >\n        <span  :id=\"$id('product\\u002Dprice\\u002D224306')\"                data-price-amount=\"129.39\"\n        data-price-type=\"finalPrice\"\n        class=\"price-wrapper \"\n    >129,39<\/span>\n        <\/span>\n<\/div>\n<div class=\"hidden discount-price-label-wrapper ml-auto\">\n            <div class=\"discount-price discount-price-basic relative flex items-center ml-3.5 font-bold leading-3 bg-brand-blue px-2.5 text-white text-xs lg:text-sm rounded-r\n             \"\n         >\n            <span class=\"uppercase\">Je bespaart&nbsp;<\/span>\n            <span>46%<\/span>\n        <\/div>\n    <\/div>\n<\/div>","review_html":"","review_summary":null,"review_count":null,"price_old":238,"price_discount":108.61}],"filter_id":1886}],"html":"\n<!-- Start Google Analytics 4 for Google Tag Manager by MagePal -->\n<script type=\"text\/javascript\">\n    (function () {\n        let globalDatalayer = window.dataLayer = window.dataLayer || [];\n\n        function init() {\n            const data = [{\"event\":\"view_item_list\",\"ecommerce\":{\"items\":[{\"item_name\":\"Grohe basisgarnituur voor hoofddoucheset Messing\",\"item_id\":\"A71951223613853\",\"price\":96.75,\"item_list_name\":\"Advanced Crosssells\",\"item_list_id\":\"advanced_crosssells\",\"index\":1,\"currency\":\"EUR\",\"quantity\":1,\"p_id\":41022,\"original_price\":193,\"item_category\":\"Inbouwdeel\"},{\"item_name\":\"Grohe Grohtherm Smartcontrol Afbouwdeel Thermostaat Warm Sunset Geborsteld\",\"item_id\":\"A12415006292238\",\"price\":814.29,\"item_list_name\":\"Advanced Crosssells\",\"item_list_id\":\"advanced_crosssells\",\"index\":2,\"currency\":\"EUR\",\"quantity\":1,\"p_id\":191789,\"original_price\":1548,\"item_category\":\"Mengkraan afbouwdeel\"},{\"item_name\":\"Grohe Rainshower Wandaansluitbocht Warm Sunset\",\"item_id\":\"A10360609597088\",\"price\":82.18,\"item_list_name\":\"Advanced Crosssells\",\"item_list_id\":\"advanced_crosssells\",\"index\":3,\"currency\":\"EUR\",\"quantity\":1,\"p_id\":137482,\"original_price\":152,\"item_category\":\"Muuraansluitbocht\"},{\"item_name\":\"Grohe Silverflex Professional Doucheslang 125 cm Warm Sunset\",\"item_id\":\"A47166450556512\",\"price\":30.76,\"item_list_name\":\"Advanced Crosssells\",\"item_list_id\":\"advanced_crosssells\",\"index\":4,\"currency\":\"EUR\",\"quantity\":1,\"p_id\":314692,\"original_price\":44,\"item_category\":\"Doucheslang\"},{\"item_name\":\"Grohe Rainshower Smartactive 130 handdouche warm sunset\",\"item_id\":\"A77608365225878\",\"price\":129.39,\"item_list_name\":\"Advanced Crosssells\",\"item_list_id\":\"advanced_crosssells\",\"index\":5,\"currency\":\"EUR\",\"quantity\":1,\"p_id\":224306,\"original_price\":238,\"item_category\":\"Handdouche\"}],\"currency\":\"EUR\",\"item_list_name\":\"Advanced Crosssells\",\"item_list_id\":\"advanced_crosssells\"},\"_clear\":true}];\n\n            const processedProductElements = [];\n            const viewItemListEvents = data.filter(item => item?.event === 'view_item_list');\n            const throttle = (callback, threshold = 200) => {\n                let last;\n                let deferTimer;\n                return (...args) => {\n                    const now = new Date().valueOf();\n                    if (last && now < last + threshold) {\n                        clearTimeout(deferTimer);\n                        deferTimer = setTimeout(() => {\n                            last = now;\n                            callback(args);\n                        }, threshold);\n                    } else {\n                        last = now;\n                        callback(args);\n                    }\n                };\n            }\n            const isElementInViewport = (el) => {\n                const rect = el.getBoundingClientRect();\n                const center = {\n                    x: (rect.right + rect.left) \/ 2,\n                    y: (rect.bottom + rect.top) \/ 2,\n                }\n                return (\n                    center.x >= 0 &&\n                    center.y >= 0 &&\n                    center.x <= (window.innerWidth || document.documentElement.clientWidth) &&\n                    center.y <= (window.innerHeight || document.documentElement.clientHeight)\n                );\n            }\n            const pushProductElements = (productElements) => {\n                const events = [];\n                const skus = productElements.map(productElement => productElement.dataset.listProductSku);\n                viewItemListEvents.forEach(viewItemsListEvent => {\n                    const eventItems = viewItemsListEvent?.ecommerce?.items?.filter(item => {\n                        return skus.includes(item.item_id)\n                    });\n                    if (eventItems && eventItems.length > 0) {\n                        const event = JSON.parse(JSON.stringify(viewItemsListEvent));\n                        event.ecommerce.items = eventItems;\n                        events.push(event);\n                    }\n                });\n\n                if (events.length) {\n                    events.forEach(event => {\n                        globalDatalayer.push(event);\n                    });\n                }\n            }\n            const checkNewProductsInViewport = () => {\n                const newProductElementsInViewport = [];\n                document.querySelectorAll(['[data-list-product-sku]']).forEach(productElement => {\n                    if (!processedProductElements.includes(productElement) && isElementInViewport(productElement)) {\n                        newProductElementsInViewport.push(productElement);\n                    }\n                });\n\n                if (newProductElementsInViewport.length) {\n                    processedProductElements.push(...newProductElementsInViewport);\n                    pushProductElements(newProductElementsInViewport);\n                }\n            };\n            if (viewItemListEvents.length > 0) {\n                window.addEventListener('DOMContentLoaded', checkNewProductsInViewport);\n                window.addEventListener('scroll', throttle(checkNewProductsInViewport));\n                window.addEventListener('resize', throttle(checkNewProductsInViewport));\n            }\n\n            if (data) {\n                let storedData = null\n\n                data.forEach((item) => {\n                    \/\/ Set category data on product detail page\n                    if (item?.event === 'view_item') {\n                        if (storedData === null) {\n                            storedData = JSON.parse(window.localStorage.getItem(\"product-click-ga4\"));\n                        }\n\n                        item?.ecommerce?.items?.forEach((product) => {\n                            if (storedData?.index) {\n                                product.index = storedData.index\n                            }\n\n                            if (storedData?.item_list_name) {\n                                product.item_list_name = storedData.item_list_name;\n                                product.item_list_id = storedData.item_list_id;\n                            }\n                        })\n                    }\n\n                    if (item?.event !== 'view_item_list') {\n                        globalDatalayer.push(item);\n                    }\n                })\n            }\n        }\n\n        init();\n\n                \/\/ Track product clicks\n        const productsList = [{\"item_list_name\":\"Advanced Crosssells\",\"item_list_id\":\"advanced_crosssells\",\"class_name\":\"[data-upsell-tool-category] a.product-item-link\",\"container_class\":\"[data-list-product-sku]\"}]\n        document.body.addEventListener('click', (event) => {\n            productsList.forEach((list) => {\n                if (list?.class_name) {\n                    const clickTarget = event.target;\n                    const productLink = clickTarget.closest(list?.class_name);\n                    if (productLink) {\n                        productClick(productLink, list)\n                    }\n                }\n            });\n            return;\n        });\n\n        function productClick(element, list) {\n            const container = element.closest(list?.container_class)\n\n            \/\/ Find product url\n            let productUrl = null\n            if (container && container.querySelector('a.product-item-link')) {\n                productUrl = container.querySelector('a.product-item-link').href\n            } else if (container && container.querySelector('a.product-item-photo')) {\n                productUrl = container.querySelector('a.product-item-photo').href\n            } else {\n                productUrl = element.href\n            }\n\n            const priceBox = container.querySelector(\"[data-product-id]\")\n            if (priceBox) {\n                const productId = priceBox.dataset.productId\n\n                const productCollection = globalDatalayer.filter((layer) => layer?.ecommerce?.items).reduce((collection, layer) => collection.concat(...layer.ecommerce.items), [])\n                const product = productCollection.find((product) => product.p_id == productId)\n\n                const productClickData = {\n                    pid: productId,\n                    item_id: product.item_id,\n                    item_list_name: list.item_list_name,\n                    item_list_id: list.item_list_id,\n                    index: product.index\n                }\n                window.localStorage.setItem(\"product-click-ga4\", JSON.stringify(productClickData))\n\n                globalDatalayer.push({\n                    'event': 'select_item',\n                    'ecommerce': {\n                        'items': [product]\n                    },\n                    '_clear': true\n                });\n            }\n        }\n            })();\n<\/script>\n<!-- End Google Analytics 4 for Google Tag Manager by MagePal -->\n"}