');
if(product_html.find('.price del').length > 0)
{
if(product_html.find(".price-netto em").length > 0 ){
price_div.append('
'+product_html.find('.price > del').text()+' '+product_html.find('.price > em').text()+' '+product_html.find('.price > .price-netto del').text()+' '+product_html.find('.price > .price-netto em').text()+' netto ');
}else{
price_div.append('
'+product_html.find('.price del').text()+''+product_html.find('.price em').text()+'');
}
}
else
{
if(product_html.find(".price-netto em").length > 0 ){
price_div.append('
'+product_html.find('.price > em').text()+'(netto '+product_html.find('.price .price-netto > em').text()+')');
}else{
price_div.append('
'+product_html.find('.price em').text()+'');
}
}
product_div.append(price_div);
if(product_html.find('.addtobasket').length > 0)
{
product_div.append('
');
}
innerbox.append(product_div);
}
all_html.append(innerbox);
$('.product-tab').each(function()
{
// console.log($(this).data('tab'));
});
if($('.product-modules').hasClass('active') || $('#wceTabsAppJs').length)
{
// console.log(1);
setTimeout(function()
{
if($('.wceapp_tabs .box_productrelated').length)
{
mxTabLoader();
}
else if($('.product-modules').hasClass('active') || $('.tab-container .box_productrelated').length >0)
{
// console.log(3);
//all_html.insertAfter($('.product-related'));
//shoper.selectorFunctions.boxslider.load($('#box_app_powiazaneslider'), shoper);
mxTabLoader();
}
else
{
// console.log(4);
mxTabLoader1();
}
},500);
}
else
{
mxTabLoader1();
}
function mxTabLoader1()
{
if($('.product-related').length < 1)
{
setTimeout(function()
{
mxTabLoader1();
},1);
}
else
{
all_html.insertAfter($('.product-related'));
setTimeout(function()
{
shoper.selectorFunctions.boxslider.load($('#box_app_powiazaneslider'), shoper);
},770);
}
}
function mxTabLoader()
{
if($('.product-tab .product-related').length < 1)
{
setTimeout(function()
{
mxTabLoader();
},1);
}
else
{
$('.product-tab .product-related').append(all_html);
$('.box_productrelated .boxhead').click(function()
{
setTimeout(function()
{
shoper.selectorFunctions.boxslider.load($('#box_app_powiazaneslider'), shoper);
},50);
});
}
}
}
});
});