Προϊόντα Eubos
').appendTo(".module-blocks-315 .block-description");
break;
case "ΓΙΑ ΤΟΝ ΑΝΤΡΑ":
$(".module-blocks-315 .block-wrapper img").remove();
$("html").addClass("gp_transparent_header");
$('
').appendTo(".module-blocks-315 .block-description");
break;
case "ΜΗΤΕΡΑ & ΠΑΙΔΙ":
$(".module-blocks-315 .block-wrapper img").remove();
$("html").addClass("gp_transparent_header");
$('
').appendTo(".module-blocks-315 .block-description");
break;
case "ΦΡΟΝΤΙΔΑ":
$(".module-blocks-315 .block-wrapper img").remove();
$("html").addClass("gp_transparent_header");
$('
').appendTo(".module-blocks-315 .block-description");
break;
case "ΔΙΑΤΡΟΦΗ":
$(".module-blocks-315 .block-wrapper img").remove();
$("html").addClass("gp_transparent_header");
$('
').appendTo(".module-blocks-315 .block-description");
break;
case "ΥΓΕΙΑ":
$(".module-blocks-315 .block-wrapper img").remove();
$("html").addClass("gp_transparent_header");
$('
').appendTo(".module-blocks-315 .block-description");
break;
case "ΑΘΛΗΤΕΣ":
$(".module-blocks-315 .block-wrapper img").remove();
$("html").addClass("gp_transparent_header");
$('
').appendTo(".module-blocks-315 .block-description");
default:
// --> SUB CATEGORY > INTRO > IN CASE NO IMAGE EXISTS
$("html").addClass("gp_sub_category_no_image");
$("html").removeClass("gp_transparent_header");
}
}
// if image does exist in description
else{
$("html").addClass("gp_transparent_header");
$(".module-blocks-315 .block-wrapper img").appendTo(".module-blocks-315 .block-description");
}
// --> SUB CATEGORY > INTRO > LAYOUT
$(".module-blocks-315 .block-wrapper img").unwrap("p").addClass("gp_cat_image");
$(".module-blocks-315 .block-wrapper > *:not(img)").wrapAll('');
// --> SUB CATEGORY > REFINE CATEGORIES
$(".refine-categories").prependTo(".site-wrapper > .container");
}
// --> SUB CATEGORY > SET THE SUBCATEGORY CONTENT LAYOUT HERE
$(".route-product-search").addClass("gp_sub_category, gp_sub_category_no_image");
if ($("html").hasClass("gp_sub_category")) {
// --> SUB CATEGORY > FILTERS > CATEGORY TITLE
$(".mainNav > ul > li > a").text("Επιλέξτε Κατηγορία");
// --> SUB CATEGORY > FILTERS > PRICE
$("Από").insertBefore(".filter-price .extra-controls .filter-price-min");
$("Έως").insertBefore(".filter-price .extra-controls .filter-price-max");
// --> SUB CATEGORY > SORT BAR
$(".main-products-wrapper .pagination").clone().appendTo(".products-filter");
// --> SUB CATEGORY > CUSTOM CHANGES > SYNCED TO AJAX UPDATE
const elementToObserve = document.querySelector(".container > .row");
const observer = new MutationObserver(function() {
if($("html").hasClass("mobile")){
location.reload();
// $("#top .mainNav").appendTo(".mobile-filter-container");
}
// --> SUB CATEGORY > CUSTOM CHANGES > SYNCED TO AJAX UPDATE > SORT BAR
if($(".products-filter .pagination").length == 0){
$(".main-products-wrapper .pagination").clone().appendTo(".products-filter");
}
// --> SUB CATEGORY > CUSTOM CHANGES > SYNCED TO AJAX UPDATE > PRICE
$("Από").insertBefore(".filter-price .extra-controls input:first-child");
$("Έως").insertBefore(".filter-price .extra-controls input:last-of-type");
$(".product-thumb").each(function(){
// --> SUB CATEGORY > CUSTOM CHANGES > SYNCED TO AJAX UPDATE > PRODUCT GRID > ADD TO CART CLICK POPUP ACTION
$(this).find(".btn-cart").on("click", function(){
$(".product-thumb").removeClass("gp_cart_btn_activated")
$(this).closest(".product-thumb").addClass("gp_cart_btn_activated");
})
})
// --> SUB CATEGORY > CUSTOM CHANGES > SYNCED TO AJAX UPDATE > PRODUCT GRID > OUT OF STOCK CART BUTTON
$(".out-of-stock").each(function(){
$(this).find(".product-thumb .btn-cart.btn .btn-text").text("ΕΞΑΝΤΛΗΘΗΚΕ");
});
});
observer.observe(elementToObserve, {childList: true});
// --> SUB CATEGORY > MOBILE
if($("html").hasClass("mobile")){
$(".mobile.gp_sub_category").removeClass("gp_transparent_header");
// --> SUB CATEGORY > MOBILE > INSERT HOT CATEGORIES INTO CATEGORY ACCORDION
// callback executed when categories accordion was found
function handleAccordion(accordion) {
$('
').appendTo(".information-8 .links-menu-76");
}
// --> MANUFACTURERS PAGE
// ========================================================================================================================================
if($("html").hasClass("route-product-manufacturer")){
$(".page-title").html("