Normalpreis
154,70 €
')
// }
jQuery('.cs-grid-layout__brick').each(function() {
let productName = jQuery(this).find(".cs-product-tile__name-link.product-item-link").text();
// Get product ID from the price box data attribute
let productId = jQuery(this).find(".price-box.price-final_price").attr('data-product-id');
// Exception list - these product IDs should show prices even if they're Hikvision
let exceptionIds = ['53928', '52771', '54103', '53941'];
if (productName.toLowerCase() && productName.toLowerCase().indexOf('hikvision') != -1) {
// console.log(productName);
if (!exceptionIds.includes(productId)) {
jQuery(this).find(".price-box.price-final_price").html('
Preise sichtbar im Login >>');
}}
});
} else {
console.log('User status could not be determined');
// Add your logic for when the user status is not determined
}
if (jQuery("li.cs-grid-layout__brick .hide-price.show-price-for-all").length > 1){
console.log('page has show-price-for-all');
if (jQuery("li.cs-grid-layout__brick .price-container.price-final_price.tax.weee").length > 0) {
// jQuery("li.cs-grid-layout__brick .price-box.price-final_price").html('
Preise sichtbar im Login >> ');
}
}
jQuery(".price-box.price-final_price").show();
});
});
Sonderangebot
123,05 €
103,40 €
')
// }
jQuery('.cs-grid-layout__brick').each(function() {
let productName = jQuery(this).find(".cs-product-tile__name-link.product-item-link").text();
// Get product ID from the price box data attribute
let productId = jQuery(this).find(".price-box.price-final_price").attr('data-product-id');
// Exception list - these product IDs should show prices even if they're Hikvision
let exceptionIds = ['53928', '52771', '54103', '53941'];
if (productName.toLowerCase() && productName.toLowerCase().indexOf('hikvision') != -1) {
// console.log(productName);
if (!exceptionIds.includes(productId)) {
jQuery(this).find(".price-box.price-final_price").html('
Preise sichtbar im Login >>');
}}
});
} else {
console.log('User status could not be determined');
// Add your logic for when the user status is not determined
}
if (jQuery("li.cs-grid-layout__brick .hide-price.show-price-for-all").length > 1){
console.log('page has show-price-for-all');
if (jQuery("li.cs-grid-layout__brick .price-container.price-final_price.tax.weee").length > 0) {
// jQuery("li.cs-grid-layout__brick .price-box.price-final_price").html('
Preise sichtbar im Login >> ');
}
}
jQuery(".price-box.price-final_price").show();
});
});