Load značku a append each

EACH přesun velikostí PRO všechny stránky i načítání dalších produktů

<script>
jQuery(document).ready(function($) {
var doit;

if(dataLayer[0].shoptet.pageType == "category" || dataLayer[0].shoptet.pageType == "homepage") {
category_content_reorder()
}

function category_content_reorder() {
$('#content').bind("DOMSubtreeModified");
var item;

$('.products .product').each(function(){
item = $(this);

if(!item.hasClass('msc-cat-mod')) {
$(item.find('.widget-parameter-wrapper')).insertAfter(item.find('.p-tools'));
item.addClass('msc-cat-mod');
}
});

category_content_reorder_listener();
}

function category_content_reorder_listener() {
$('#content').bind("DOMSubtreeModified", function() {
clearTimeout(doit);
doit = setTimeout(function() {
console.log('render Cat content');
category_content_reorder();
}, 300);
});
}
});

</script>

 

 

 

<script>
$('.product .p .name').each(function() {
var $prvek= $(this);
var $href = $(this).attr('href');
var $href_brand = $href + " .p-detail-info > div:nth-child(2) > a";
$(this).prepend(
$('<div class="loaded_brand">').load($href_brand)
);
});
</script>