{"product_id":"shoes","title":"littleBits bitShoes","description":"\u003cdiv id=\"VARIANT-TITLES\" style=\"display: none;\"\u003e\n  \u003cdiv id=\"vtitle01\"\u003elittleBits bitShoes\u003c\/div\u003e\n\u003c\/div\u003e\n\n\u003cdiv id=\"VARIANT-SUBTITLES\" style=\"display: none;\"\u003e\n  \u003cdiv id=\"vsub01\"\u003e\n    \u003cdiv class=\"var-subtitle\"\u003e(Magnet)\u003c\/div\u003e\n  \u003c\/div\u003e\n  \u003cdiv id=\"vsub02\"\u003e\n    \u003cdiv class=\"var-subtitle\"\u003e(Hook \u0026amp; Loop)\u003c\/div\u003e\n  \u003c\/div\u003e\n  \u003cdiv id=\"vsub03\"\u003e\n    \u003cdiv class=\"var-subtitle\"\u003e(Adhesive)\u003c\/div\u003e\n  \u003c\/div\u003e\n    \u003cdiv id=\"vsub04\"\u003e\n    \u003cdiv class=\"var-subtitle\"\u003e(Variety Pack)\u003c\/div\u003e\n  \u003c\/div\u003e\n\u003c\/div\u003e\n\n\u003cdiv id=\"VARIANT-DESCRIPTION\" style=\"display: none\"\u003e\n\u003cdiv id=\"vdescr01\"\u003e\n\u003cp\u003e\nShoes slip onto your Bits' feet and hold your circuit together. On the bottom of your shoes you'll find magnets, which are great for securing your circuits to different surfaces. Shoes come 12 to a pack.\n\u003c\/p\u003e\n\u003c\/div\u003e\n  \n\u003cdiv id=\"vdescr02\"\u003e\n\u003cp\u003e\nShoes slip onto your Bits' feet and hold your circuit together. On the bottom of your shoes you'll find hook \u0026amp; loops, which are great for securing your circuits to different surfaces. Shoes come 12 to a pack.\n\u003c\/p\u003e\n\u003c\/div\u003e\n\n\u003cdiv id=\"vdescr03\"\u003e\n\u003cp\u003e\nShoes slip onto your Bits' feet and hold your circuit together. On the bottom of your shoes you'll find red adhesive backings you can peel off, which are great for securing your circuits to different surfaces. Shoes come 12 to a pack.\n\u003c\/p\u003e\n\u003c\/div\u003e\n\n\u003cdiv id=\"vdescr04\"\u003e\n\u003cp\u003e\nShoes slip onto your Bits' feet and hold your circuit together. On the bottom of your shoes you'll find magnets, hook \u0026amp; loops, and red adhesive backings you can peel off, which are great for securing your circuits to different surfaces. Shoes come 12 to a pack, with 15 shoes in the variety pack.\n\u003c\/p\u003e\n\u003c\/div\u003e\n  \n\u003c\/div\u003e\n\n\u003cdiv id=\"VARIANT-WHATS\" style=\"display: none\"\u003e\n  \u003cdiv id=\"vwhats01\"\u003e\n    \u003cp\u003e\u003c\/p\u003e\n  \u003c\/div\u003e\n  \n  \u003cdiv id=\"vwhats02\"\u003e\n    \u003cp\u003e\u003c\/p\u003e\n  \u003c\/div\u003e\n  \n  \u003cdiv id=\"vwhats03\"\u003e\n    \u003cp\u003e\u003c\/p\u003e\n  \u003c\/div\u003e\n\u003c\/div\u003e\n\n\n\u003cscript\u003e\n    \/\/ Shared SKU Map\n    var skuMap = {\n        '660-0001': {\n            title: 'vtitle01',\n            subtitle: 'vsub01',\n            description: 'vdescr01',\n            included: 'vwhats01'\n        },\n        '660-0002': {\n            title: 'vtitle01',\n            subtitle: 'vsub02',\n            description: 'vdescr02',\n            included: 'vwhats01'\n        },\n            '660-0003': {\n            title: 'vtitle01',\n            subtitle: 'vsub03',\n            description: 'vdescr03',\n            included: 'vwhats01'\n        },\n            '660-0004': {\n            title: 'vtitle01',\n            subtitle: 'vsub04',\n            description: 'vdescr04',\n            included: 'vwhats01'\n        },\n        \/\/ Add more mappings as needed\n    };\n\u003c\/script\u003e\n\n\u003cscript\u003e\n    \/\/ Update title based on SKU\n    var skuTitleElement = document.querySelector('.product-meta__sku-number');\n    var titleElement = document.querySelector('.product-meta__title');\n\n    function updateTitleBasedOnSKU(skuMap) {\n        var skuNumberTitle = skuTitleElement.textContent.trim();\n\n        if (skuMap.hasOwnProperty(skuNumberTitle)) {\n            var divId = skuMap[skuNumberTitle].title;\n            var divContent = document.getElementById(divId);\n\n            if (divContent) {\n                titleElement.textContent = divContent.textContent.trim();\n                var inlineStyles = divContent.getAttribute('style');\n                titleElement.setAttribute('style', inlineStyles);\n                divContent.style.display = 'block';\n            }\n        }\n    }\n\n    updateTitleBasedOnSKU(skuMap);\n\u003c\/script\u003e\n\n\u003cscript\u003e\n    \/\/ Update subtitle based on SKU\n    var skuSubtitleElement = document.querySelector('.product-meta__sku-number');\n    var skuElement = document.querySelector('.product-meta__sku');\n\n    function updateSubtitleBasedOnSKU(skuMap) {\n        var skuNumberSubtitle = skuSubtitleElement.textContent.trim();\n\n        if (skuMap.hasOwnProperty(skuNumberSubtitle)) {\n            var divId = skuMap[skuNumberSubtitle].subtitle;\n            var subtitleDiv = document.getElementById(divId);\n\n            if (subtitleDiv) {\n                var existingSubElement = document.querySelector('.product-meta__sub');\n                var newDivElement = document.createElement('div');\n                newDivElement.className = 'product-meta__sub';\n                newDivElement.innerHTML = subtitleDiv.innerHTML;\n                newDivElement.style.display = 'block';\n\n                if (existingSubElement) {\n                    existingSubElement.replaceWith(newDivElement);\n                } else {\n                    skuElement.insertAdjacentElement('beforebegin', newDivElement);\n                }\n            }\n        }\n    }\n\n    updateSubtitleBasedOnSKU(skuMap);\n\u003c\/script\u003e\n\n\u003cscript\u003e\n    \/\/ Update description based on SKU\n    var skuDescriptionElement = document.querySelector('.product-meta__sku-number');\n    var descriptionContentElement = document.querySelector('.product-meta__description-content');\n\n    function updateDescriptionBasedOnSKU(skuMap) {\n        var skuNumberDescription = skuDescriptionElement.textContent.trim();\n\n        if (skuMap.hasOwnProperty(skuNumberDescription)) {\n            var divId = skuMap[skuNumberDescription].description;\n            var descriptionDiv = document.getElementById(divId);\n\n            if (descriptionDiv \u0026\u0026 descriptionContentElement) {\n                var existingDescriptionElement = document.querySelector('.product-meta__description-content .btdescr');\n                var newDescriptionElement = document.createElement('div');\n                newDescriptionElement.className = 'btdescr';\n                newDescriptionElement.innerHTML = descriptionDiv.innerHTML;\n                newDescriptionElement.style.display = 'block';\n\n                if (existingDescriptionElement) {\n                    existingDescriptionElement.replaceWith(newDescriptionElement);\n                } else {\n                    descriptionContentElement.appendChild(newDescriptionElement);\n                }\n            }\n        }\n    }\n\n    updateDescriptionBasedOnSKU(skuMap);\n\u003c\/script\u003e","brand":"littleBits","offers":[{"title":"Shoes (Magnet)","offer_id":32597014675501,"sku":"660-0001","price":15.0,"currency_code":"USD","in_stock":true},{"title":"Shoes (Hook \u0026 Loop)","offer_id":32597014708269,"sku":"660-0002","price":15.0,"currency_code":"USD","in_stock":true},{"title":"Shoes (Adhesive)","offer_id":32597262630957,"sku":"660-0003","price":15.0,"currency_code":"USD","in_stock":true},{"title":"Shoes (Variety Pack)","offer_id":32597277769773,"sku":"660-0004","price":16.0,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0306\/6419\/6141\/products\/bitShoes_magnetHeroSQ_MAIN.jpg?v=1706602070","url":"https:\/\/sphero.com\/products\/shoes","provider":"Sphero","version":"1.0","type":"link"}