' + simpleDesc[selectedProductIdsData]['name'] + '
'); jQuery('.product-name strong').replaceWith('Artnr ' + simpleDesc[selectedProductIdsData]['usp'] + ''); jQuery('.regular-price .price').replaceWith('' + simpleDesc[selectedProductIdsData]['price'] + ''); console.log(simpleDesc[selectedProductIdsData]); } }); jQuery(document).on('change', '.super-attribute-select', function() { var selectedId = getIdsOfSelectedProducts(spConfig); if(simpleDesc.hasOwnProperty(selectedId)){ jQuery('.short-description .std').replaceWith('' + simpleDesc[selectedId]['desc'] + '
' + simpleDesc[selectedId]['name'] + '
'); jQuery('.product-name strong').replaceWith('Artnr ' + simpleDesc[selectedId]['usp'] + ''); jQuery('.regular-price .price').replaceWith('' + simpleDesc[selectedId]['price'] + ''); } }); jQuery(document).on('click', '.photozoom-thumbnails__image', function() { var selectedId = jQuery(this).data('productids'); if(simpleDesc.hasOwnProperty(selectedId)){ jQuery('.short-description .std').replaceWith('' + simpleDesc[selectedId]['desc'] + '
' + simpleDesc[selectedId]['name'] + '
'); jQuery('.product-name strong').replaceWith('' + simpleDesc[selectedId]['usp'] + ''); } }); jQuery(document).on('click', '.slideimage', function(e) { e.preventDefault(); var selectedProductIds = jQuery(this).data('realid'); var selectedProductIdsData; if(typeof(selectedProductIds) === 'array' && selectedProductIds.indexOf(',') === -1) { selectedProductIdsData = selectedProductIds[0]; } else { selectedProductIdsData = selectedProductIds; } document.querySelector('.slick-active img').setAttribute('src',jQuery(this).data('image')); if (typeof(selectedProductIdsData) !== 'undefined') { jQuery('.short-description .std').replaceWith('' + simpleDesc[selectedProductIdsData]['desc'] + '
');
jQuery('.product-name .h1').replaceWith('