scheduleÜzleteink és nyitvatartásunk
Lokalizáció
Formanyomtatvány elküldés alatt áll

Devold Breeze Merino 150 alsónemű, fekete

-10%
82,99  -10%
Kisker ár 91,99 
Jobb árat találtál?
replay
Hosszabbított visszaküldési lehetőség akár 100 napig További infók

Fedezze fel a maximális kényelmet és ismerje meg a kellemes meleg érzését minden körülmények között. Próbálja ki a legfinomabb merinó gyapjúból készült extra könnyű, puha fehérneműt. Vesd bele magad minden napba anélkül, hogy aggódnod a szag és a testeden lefolyó izzadság miatt. Az alsónadrág a Devold®Breeze termékcsaládhoz tartozik. Kivételes elsősorban az egész éves használat miatt, hogy részt vesz szervezete hőszabályozásában, és hosszú viselés esetén is ellenáll a szagoknak. Ezek a Devold bugyibetétek egyszerűen egy alapréteg, amely mindennapi alapanyaga lesz.

  • dupla anyag a nadrág mandzsettáján - biztosítja a forma stabilitását
  • széles rugalmas szalag - a gumi nem vág és nem korlátozza a mozgást
  • nagyon kényelmes - ideális a ruházat további rétegezéséhez

A minőséget és a megbízhatóságot már világexpedíciós kutatók és felfedezők, sportolók, hegyi kunyhók dolgozói és különféle szervezetek, mint pl. Hegyi Mentőszolgálat.

100%-ban természetes merinó gyapjú - még nedvesen is meleg

Mindenki értékelni fogja a könnyű karbantartást VASALÁS NÉLKÜL, valamint azt, hogy AZ ALSÓNEMŰ MOSÁSA MOSÓGÉPBEN, SZÁRÍTÁSA pedig SZÁRÍTÓGÉPBEN IS LEHETSÉGES.

Tanúsítványok
A Devold márka megfelel a textíliák nemzetközi vizsgálati és tanúsítási rendszerének - Oeko Tex Standard 100 - szigorú kritériumainak. Ez azt jelenti, hogy minden termék csak egészséges anyagokból készül.

Woolmark logó, csak ezzel a márkával jelölt gyapjú fehérneművel biztos lehet benne, hogy igazi minőség van a kezedben! Ahhoz, hogy egy ruha viselje a Woolmark logót, csak a legmagasabb minőségű tiszta gyapjút kell tartalmaznia, amely megfelel a szigorú minőségi kritériumoknak.

A Devold a legjobb természetes minőség Norvégiából. Az egyik legrégebbi ruházati márka a piacon, saját fejlesztéssel és gyártással az európai gyárában. A termékek előállításához elsősorban új-zélandi és ausztrál gazdálkodók legjobb minőségű gyapjúját használják fel. Ezek a gazdák kizárólag a Devoldnak szállítanak gyapjút. A Devold világa a legtechnikásabb és eddig felülmúlhatatlan természetes szálra épül, amit teljesen tökéletesen meg tudunk dolgozni. Gyapjúból készült, amely 100%-ban természetes szál, olyan tulajdonságokkal, amelyeket semmilyen mesterséges szál nem helyettesíthet. Elsődleges feladata az Ön védelme. Gyapjút nem tudunk gyártani, de több mint 166 éve tudjuk tökéletesen feldolgozni és egyedi tulajdonságokat kivonni belőle. A gyapjút magunk dolgozzuk fel, gyártóüzemeink kizárólag Európában találhatók. Egyedül a gyapjúgyártás teljes folyamatát mi irányítjuk, a birkanyírástól a fonal fonásán át a kötöttáru szövéséig és a végtermék varrásáig. Megalkuvást nem ismerünk a minőség és az innováció terén.

Anyag
100% merinó gyapjú, tömeg: 150g/m2, szál: szuperfinom 17,5 mikron
Győződjön meg arról, hogy funkcionális kialakításának köszönhetően a Devold®Breeze bugyi hűséges társa lesz.

Gondoskodó
Annak érdekében, hogy a gyapjú a lehető leghosszabb ideig megőrizze ragyogó tulajdonságait, mossa ki a gyapjúprogramban környezetbarát lanolinos mosószerben.
A nadrág szárítógépben szárítható.

A termék részletei
Nem Férfi
Szín fekete
Anyag merinó gyapjú
Szezon Téli, Átmeneti
Sportág típusa turizmus, sífutás, síalpinizmus, síelés, alpinizmus, hegymászás, ferrátázás, életstílus
Termék azonosító 230387
Női ruházat
Méret Számbeli méret Magasság (cm) Mellbőség (cm) Derékbőség (cm) Csípőméret (cm) Belső lábszárhossz (cm)

XS

34-36

157-164 79-85 63-69 87-93 75-77

S

34-38

161-168 85-91 69-75 93-99 77-79

M

38-40

165-172 91-97 75-81 99-105 79-81

L

42-44

169-176 97-104 81-88 105-112 81-83

XL

44-46

173-178 104-112 88-96 112-119 83-85

XXL

48-50

175-180 112-122 96-104 119-125 85-87
Férfi ruházat
Méret Magasság (cm) Mellbőség (cm) Derékbőség (cm) Csípőméret (cm) Belső lábszárhossz (cm)

S

168-176 91-97 80-86 92-98 82-84

M

173-181 97-103 86-92 98-104 84-86

L

178-186 103-110 92-99 104-111 86-88

XL

183-189 110-118 99-107 111-119 88-90

XXL

186-192 118-128 107-115 119-127 90-92
Devold originals
Méret Magasság (cm) Mellbőség (cm) Derékbőség (cm) Csípőméret (cm)
XS

163-171

85-91

74-80

89-92

S

168-176 91-97 80-86 92-98

M

173-181 97-103 86-92 98-104

L

178-186 103-110 92-99 104-111

XL

183-189 110-118 99-107 111-119

XXL

186-192 118-126 107-113 119-125


 
Termék értékelése  (0 értékelés)
0/5
(0 értékelés)
(0 értékelés)
(0 értékelés)
(0 értékelés)
(0 értékelés)
(0 értékelés)

Te hogyan értékeled a terméket?
Értékelés hozzáadása
Segíts másoknak, gyűjts pontokat és vásárolj akár 15%-kal olcsóbban a hűségrendszer segítségével.
comment Termékre vonatkozó kérdések

Jelenleg nincsenek itt kérdések

Formanyomtatvány elküldés alatt áll
A Devold egy norvég vállalat, amely gyapjúból készült termo alsóneműt gyárt. 1853 óta tevékenykedik a piacon, amikor Ole Andreas Devold megalapította Ålesundban. Ennyire hosszú tradíciójának nincs párja a mai piacon - egyértelműen ez a világ legrégebbi gyapjú termo alsóneműje. A Devold a melegebb hónapokra és az izzasztóbb tevékenységekre alkalmas, ultravékony Breeze kollekciótól az Expedition kollekcióig kínál alsóneműket, amelyek a fázósoknak és a nagyon hideg körülményekre alkalmasak. A kollekcióban bármilyen tevékenységhez alkalmas alsónemű, valamint kiváló hőkomfortú gyapjúpulóverek találhatók. A kiegészítők között sapkák, kesztyűk, többfunkciós sálak és többféleképpen használható zoknik széles választéka található.

Itt választ kaphatsz kérdéseidre a szállítással, fizetéssel, biztonsággal és sok mással kapcsolatban.

Ehhez a termékhez javasoljuk
Miért vásárolj nálunk
Fedezd fel a vásárlás előnyeit
1 000 000+ megrendelés

Több tízezer elégedett vásárlóval mi vagyunk a legnagyobb kerékpáros webáruház Szlovákiában.

Egyedülálló ügyfélszolgálat

Elérhetőek vagyunk e-mailben, cseten, telefonon vagy személyesen az MTBIKER központban.

Aktívan támogatjuk a kerékpározást

A megrendelésednek köszönhetően támogatjuk a kerékpározás fejlődését.

Biztonságos vásárlási és fizetési módok

A fizetési művelet biztonságos, emelett számos lehetőség közül választhatsz.

Hűségprogram

Megjutalmazunk Téged a vásárlásokért, valamint az értékelhető hozzászólásokért az MTBIKER fórumban, az e-shopban, ill. a túráid és fotógalériád megosztásáért.

MTBIKER centrum és bemutatóterem

Látogass el a pump-track pályával felszerelt üzletünkbe vagy a Pozsony központjában található történelmi épületünkbe.

navigate_beforekorábbi navigate_nextďalší
keyboard_arrow_up var loadedComments_questionsWidget = false; function loadComments_questionsWidget(){ } var imageUploaderI18N = {"confirmDelete":"T\u00e9nyleg t\u00f6r\u00f6lni akarod ezt a k\u00e9pet?","labelDelete":"K\u00e9p t\u00f6rl\u00e9se","textMaxSize":"A :file \u00e1llom\u00e1ny meghaladja a maxim\u00e1lis 12 MB-ot","textMaxFiles":"A :file \u00e1llom\u00e1nyt nem lehetett felt\u00f6lteni, mert maximum :max fot\u00f3t t\u00f6lthetsz fel.","textWrongMime":"A :file MIME t\u00edpusa nem egyezik a megengedett MIME t\u00edpusokkal:","textWrongExtension":"A :file \u00e1llom\u00e1ny nem megengedett t\u00edpus\u00fa. A megengedett t\u00edpusok a k\u00f6vetkez\u0151k:","textEditTitlePrompt":"Add meg a k\u00e9p le\u00edr\u00e1s\u00e1t","textEditTitleBtn":"A k\u00e9p le\u00edr\u00e1s\u00e1nak szerkeszt\u00e9se"} // Comments $(function(){ $('.comment-form, .review-form', '#questionsWidget').on('submit', function(){ $(this).attr('autocomplete',"off"); // prevent prepopulating fields on backbtn click if (history.state && history.state.popupOpened === 'mobile-expander'){ $('.mobile-expander-content', '#questionsWidget').addClass('opened'); history.back(); } }); $('select[name=sort], select[name=filter]', '#questionsWidget').on('change', function() { let inputName = $(this).attr('name'); let sort = $('select[name=sort]', '#questionsWidget').val(); let filter = $('select[name=filter]', '#questionsWidget').length ? $('select[name=filter]', '#questionsWidget ').val() : ''; var url = "/ajax.php?m=komentare&f=loadCommentsWidget&a=bW9kdWw9c2hvcCZleHRlcm5hbElkPTIzMDM4NyZpdGVtTmFtZT1EZXZvbGQrQnJlZXplK01lcmlubysxNTArYWxzJUMzJUIzbmVtJUM1JUIxJTJDK2Zla2V0ZSZjb21tZW50VHlwZT1xdWVzdGlvbiZhdXRob3JVc2VySWQ9MCZ3aWRnZXRJZD1xdWVzdGlvbnNXaWRnZXQmYWxsb3dJbnNlcnQ9MSZhbGxvd1JlcGx5PTEmcmV0dXJuVXJsPWh0dHBzJTNBJTJGJTJGd3d3Lm10YmlrZXIuaHUlMkZzaG9wJTJGcnVoYXphdCUyRmFsYW9sdG96ZXQtZXMtdGVybW8tYWxzb25lbXVrJTJGYWxhb2x0b3pldC1uYWRyYWdvayUyRmRldm9sZC1icmVlemUtbWVyaW5vLTE1MC1hbHNvbmVtdS1mZWtldGUtcDIzMDM4Ny5odG1sJTIzcXVlc3Rpb25zJnBhcnNlZFVybCU1QnNjaGVtZSU1RD1odHRwcyZwYXJzZWRVcmwlNUJob3N0JTVEPXd3dy5tdGJpa2VyLmh1JnBhcnNlZFVybCU1QnBhdGglNUQ9JTJGc2hvcCUyRnJ1aGF6YXQlMkZhbGFvbHRvemV0LWVzLXRlcm1vLWFsc29uZW11ayUyRmFsYW9sdG96ZXQtbmFkcmFnb2slMkZkZXZvbGQtYnJlZXplLW1lcmluby0xNTAtYWxzb25lbXUtZmVrZXRlLXAyMzAzODcuaHRtbCZwYXJzZWRVcmwlNUJmcmFnbWVudCU1RD1xdWVzdGlvbnMmaW5jbHVkZUNvbW1lbnRJZD0w|" + sort + "|" + filter; if (inputName === 'filter') { if (parseInt(filter) === 3 && !customScoreDone) { loadScoreSettingsModal(); return false; } } $('#questionsWidget .comments-body-content').addClass('show-loading'); $.ajax({ url: url, success: function(data) { $('#questionsWidget .comments-body-content').html(data).removeClass('show-loading'); } }); }); }); var commentFileUploaderquestionsWidget = $('.comments-photo-uploader', '#questionsWidget').imageUploader({ hasMain: false, imagesInputName: 'fotokom', preloadedInputName: 'fotokom_preloaded', preloaded: [], maxSize: 12582912, resize: {width: 1280, height: 1920}, maxFiles: 10, }); var commentFormSubmitting = false; $('.comment-form', '#questionsWidget').unbind('submit'); $('.comment-form', '#questionsWidget').on('submit', function(e){ e.preventDefault(); if (commentFormSubmitting) return false; var commentFormSubmitting = true; var $form = $(this); var $commentParent; $form.addClass('show-loading'); $('input[name="fotokom[]"]', $form).prop('disabled', true); var formData = new FormData(this); $.each(commentFileUploaderquestionsWidget.getFiles(),function(i,file){ formData.append('fotokom['+i+']', file); }); $('.invalid-feedback', $form).remove(); $('.is-invalid', $form).removeClass('is-invalid'); var parentId = $form.find("[name=parent]").val(); parentId = parentId ? parseInt(parentId) : 0; var isReply = true && parentId; if (isReply) { $commentParent = $('#commentBox' + parentId); formData.append('level', $commentParent.parents('.comments-replies').length); } $.ajax({ type: "POST", url: "/ajax.php?m=komentare&f=ajaxSaveForm&a=", data: formData, processData: false, contentType: false, success: function(data) { if (isReply && data) { // return comment html (shop only) if ($commentParent.next('.comments-replies').length){ $commentParent.next('.comments-replies').replaceWith($(data)); } else { $commentParent.after($(data)); } // Remove reward container if ($commentParent.find('.reward-container').length) { $commentParent.find('.reward-container').remove(); } let $toHighlight = $('.to-highlight', '#questionsWidget'); if ($toHighlight.length) { $toHighlight.removeClass('to-highlight'); scrollAndHighlightComment('#' + $toHighlight.attr('id'), false); } // Remove 'loyalty-reward' from the url setTimeout(function() { if (window.location.hash.includes("?loyalty-reward=1")) { const newHash = window.location.hash.replace("?loyalty-reward=1", ""); history.replaceState(null, "", newHash); } }, 1000); // reset form resetCommentForm($form.closest('.comments')); $('input[name="fotokom[]"]', $form).prop('disabled', false); $('.comment-form-with-uploader-popup.collapse').collapse('hide'); commentFormSubmitting = false; $form.removeClass('show-loading'); } else { // returns js relocate window.onhashchange = function (e) { e.preventDefault(); window.location.reload(); return false; } $('.mainSite').append(data); // location.reload(); } }, error: function(data){ commentFormSubmitting = false; $form.removeClass('show-loading'); if (data && data.responseJSON && data.responseJSON.formErrors){ $.each(data.responseJSON.formErrors, function(name, error){ $("[name="+name+"]", $form).after('
'+error.join('
')+'
'); $("[name="+name+"]", $form).closest('.form-group').find('input, select, textarea, .dropdown').addClass('is-invalid'); }); } $firstInvalidEl = $(".is-invalid", $form).first(); $firstInvalidEl.focus(); $('input[name="fotokom[]"]', $form).prop('disabled', false); } }); return false; }); // Comments function toggleHiddenComment(comment_id) { $("#commentBox" + comment_id + " .comment-hidden").remove(); $("#commentBox" + comment_id + " .comment-content").show(); } function closeScoreFilterBanner() { $('#commentsScoreFilterBanner').fadeOut(150); $.post('/ajax.php?m=komentare&f=closeScoreFilterBanner'); } function commentsScroll(toElement, offset, noAnimation){ // edit/reply from feed link if ((typeof toElement === 'string' || toElement instanceof String) && toElement.indexOf('#commentBox') >= 0) { let commentId = parseInt(toElement.replace('#commentBox', '')); if (!isNaN(commentId) && commentId) { if (parseInt(localStorage.getItem('replyToCommentId')) === commentId) { localStorage.removeItem('replyToCommentId'); if ($('.comment-reply-btn', toElement).length) { history.replaceState(null, null, ' '); setTimeout(function(){ $('.comment-reply-btn', toElement).first().click(); }, 0); return; } } else if(parseInt(localStorage.getItem('editCommentId')) === commentId) { localStorage.removeItem('editCommentId'); if ( $('.comment-edit-btn', toElement).length) { history.replaceState(null, null, ' '); $('.comment-edit-btn', toElement).first().click(); return; } } } } if (!offset) offset = 0; if (!window.matchMedia("(min-width: 768px)").matches && false) { if ($(toElement).length) { $(toElement).closest('.comments-body-content').scrollTo( toElement, 800, {offset: -10 + offset} ); } } else { if ($(toElement).length){ var headerhHeight = 120 + ($('#shop-info-bar').length ? $('#shop-info-bar').outerHeight() : 0); if (!window.matchMedia("(min-width: 768px)").matches){ headerhHeight = $('#header').outerHeight() + $('#shop-detail-nav').outerHeight() + 20; } if (noAnimation){ setTimeout(function(){ $(window).scrollTop($(toElement).offset().top - headerhHeight + offset); }, 100); var dontScrollAgain = false; setTimeout(function(){ dontScrollAgain = true; }, 3000); $(window).on('load', function(){ if (!dontScrollAgain) $(window).scrollTop($(toElement).offset().top - headerhHeight + offset); }); } else { $.scrollTo( toElement, 800, {offset: -headerhHeight + offset} ); } } } } var customScoreDone = false; function loadMoreComments(btn) { let $btn = $(btn); if ($btn.find('.spinner-border:visible').length) { return false; } let nextPage = parseInt($btn.data('page')) + 1; let perPage = parseInt($btn.data('per-page')); $btn.find('.spinner-border').css("display", "inline-block"); $btnWrap = $btn.closest('.comment-load-more-wrap'); $.get("/ajax.php?m=komentare&f=loadMoreComments&a=" + $btn.data('params') + "|" + $btn.data('sort') + '|' + $btn.data('score') + '|' + nextPage, "", function (data) { $data = $('
' + data + '
'); $btnWrap.before($data.html()); $btn.find('.spinner-border').css("display", "none"); $btn.data('page', nextPage); if ($data.find('.comment:not(.comment-reply)').length < perPage) { $btnWrap.hide(); } }); } function showReviewFormForProduct(el, productId, editId){ let $btn = $(el); if ($btn.hasClass('loading-simple')) { return; } $btn.addClass('loading-simple'); $.get("/ajax.php?m=komentare&f=getReviewFormForProduct&a=" + productId + "|0|0" + (editId ? '|' + editId : ''), "", function (data) { if (data){ $('#reviewsFormPopup').remove(); $('body').append(data); $('#reviewsFormPopup').modal('show'); } $btn.removeClass('loading-simple'); }); } function translateComment(id){ var $text = $('#kom_' + id); var $textTranslated = $('#kom_translation_' + id); var $btn = $('#commentBox' + id + ' .comment-translate'); if ($textTranslated.hasClass('d-none')){ if ($textTranslated.text() == ''){ $.ajax('/ajax.php?u=translate&f=translateComment&a=' + id).done(function(e){ if (e){ $textTranslated.html(e); $text.addClass('d-none'); $textTranslated.removeClass('d-none'); $btn.find('span').first().addClass('d-none'); $btn.find('span').last().removeClass('d-none'); } else { showMessage('A szöveget nem sikerült lefordítani.', 'error'); } }).fail(function(){ showMessage('A szöveget nem sikerült lefordítani.', 'error'); }); } else { $text.addClass('d-none'); $textTranslated.removeClass('d-none'); $btn.find('span').first().addClass('d-none'); $btn.find('span').last().removeClass('d-none'); } } else { $textTranslated.addClass('d-none'); $text.removeClass('d-none'); $btn.find('span').last().addClass('d-none'); $btn.find('span').first().removeClass('d-none'); } } function scrollAndHighlightComment(commentBoxId, noAnimation){ if ($(commentBoxId).length){ let commentEl = $(commentBoxId); $('.comments .highlighted-animated').removeClass('highlighted-animated'); setTimeout(function(){ commentEl.addClass('highlighted-animated'); commentsScroll( commentBoxId, null, noAnimation); }, 10); } } function resetCommentForm($parent) { $('.comment-form-title-insert', $parent).show(); $('.comment-form-title-reply', $parent).hide(); $("[name=parent]", $parent).val(''); $("textarea", $parent).val(''); let widgetId = $parent.attr('id'); let $legend = $(".comment-form legend", $parent); if ($legend.data('text-original')) { $legend.html($legend.data('text-original')); } let $btn = $(".comment-form button.btn-comment-submit", $parent); if ($btn.data('text-original')) { $btn.html($btn.data('text-original')); } if (typeof window['commentFileUploader' + widgetId] !== 'undefined') { window['commentFileUploader' + widgetId].resetFiles(); } } $(function(){ var scrollToComment = false; if (location.hash.indexOf('#form-')>=0){ var hash = location.hash; commentsScroll( hash, null, true ); //remove hash history.replaceState(null, null, ' '); } if (location.hash == '#questions' || location.hash == '#reviews' || location.hash == '#comments'){ var widgetId = location.hash; if (!$(widgetId).length) widgetId = '#questions'; if ($(widgetId).length && !scrollToComment){ if (!window.matchMedia("(min-width: 768px)").matches){ $(widgetId + '-expander').prop('checked', 'checked').trigger('change'); } if ($('.comment-unread', widgetId).length){ } else { commentsScroll(widgetId, null, true); } } } $('.comments').on('click', '.btn-comment-show-insert-popup', function(){ var $parent = $(this).closest('.comments'); resetCommentForm($parent); }); }); $(function(){ $('textarea', '.comments').on('input', function(){ if ($(this).val().length){ $('.comment-form .btn').addClass('mobile-active'); }else{ $('.comment-form .btn').removeClass('mobile-active'); } $(this).removeClass('is-invalid'); }); function setCommentTextareaPlaceholder(){ if (window.matchMedia("(min-width: 768px)").matches){ $('textarea', '.comments').attr('placeholder', $('textarea', '.comments').data('placeholder-desktop')); }else{ $('textarea', '.comments').attr('placeholder', $('textarea', '.comments').data('placeholder-mobile')); } } setCommentTextareaPlaceholder(); $(window).resize(function(){ setCommentTextareaPlaceholder(); }); }); $(function(){ $('.comment-form button[type=submit]').attr('disabled', 'disabled'); $('.comment-form textarea').click(function(){ $('#loginModal').modal('show'); }); }); var loadedComments_questionsWidget = false; function loadComments_questionsWidget(){ } // #TODO function hideForumPosts() { $('.forum_post_hidden').each(function(){ target = $(this).data('target'); forum_post = $(this).parent('.post_tools').siblings('.post_message'); $(this).show().insertAfter(forum_post); forum_post.hide(); forum_post.parent('.post_right').parent('.post_container').addClass('hiddenForumPost'); }); } $(function(){ hideForumPosts(); }); // #TODO function hideForumPost(postId) { el = $('#' + postId); message = el.siblings('.post_message'); el.remove(); message.show(); message.parent('.post_right').parent('.post_container').removeClass('hiddenForumPost'); } function close_what_we_can_do(id) { $('#we_can_do_better_' + id).hide(); return false; } function send_what_we_can_do(id, id_user) { var $el = $('#we_can_do_better_' + id); $el.addClass('show-loading'); var selectedOption = $('input:radio[name=input_we_can_do_input_' + id + ']:checked').val() var text = $('#input_we_can_do_textarea_' + id).val(); $.get('/ajax.php?u=misc&f=userVoteDownComment&a=' + selectedOption + '|' + id_user + '|' + text + '|' + id , function(data){ close_what_we_can_do(id); $el.removeClass('show-loading'); showMessage('A visszajelzésed sikeresen elküldésre került.'); } ); } $(function() { $('body').on('click', '.user_votes a.user_votes_link', function(e){ if ($(this).hasClass('inactive')) return false; var fn = $(this).data('rel'); var hash = $(this).attr('hash'); var contentId = $(this).parent().attr('contentid'); var contentType = $(this).parent().attr('contenttype'); var contentUserId = $(this).parent().attr('contentuserid'); var parent = $(this).parent().parent(); var voteTop = 0; if($(this).closest(".metadata-line").length>0) { voteTop = 1; } $(this).tooltip('hide'); $.get('/ajax.php?u=misc&f=userContentVotesAjax&a=' + contentId + '|' + contentType + '|' + contentUserId + '|' + fn + '|' + hash + '|0|1', function(data){ if (data.startsWith('ok')) { data = data.substr(2); } $('.user_votes' + contentType + contentId).replaceWith(data); if (contentType === 'article') { if (fn === 'voteDown') { var position = parent.offset(); var topclick = position.top + 15 - parent.closest('.container.position-relative').offset().top; var leftclick = position.left + 20 - parent.closest('.container.position-relative').offset().left; $('#we_can_do_better_' + contentId).css({top: topclick, left: leftclick}); $('#we_can_do_better_' + contentId).show(); } else { $('#we_can_do_better_' + contentId).hide(); } } } ); return false; }); }); var loadedComments_reviewsWidget = false; function loadComments_reviewsWidget(){ } // Comments $(function(){ $('.comment-form, .review-form', '#reviewsWidget').on('submit', function(){ $(this).attr('autocomplete',"off"); // prevent prepopulating fields on backbtn click if (history.state && history.state.popupOpened === 'mobile-expander'){ $('.mobile-expander-content', '#reviewsWidget').addClass('opened'); history.back(); } }); $('select[name=sort], select[name=filter]', '#reviewsWidget').on('change', function() { let inputName = $(this).attr('name'); let sort = $('select[name=sort]', '#reviewsWidget').val(); let filter = $('select[name=filter]', '#reviewsWidget').length ? $('select[name=filter]', '#reviewsWidget ').val() : ''; var url = "/ajax.php?m=komentare&f=loadCommentsWidget&a=bW9kdWw9c2hvcCZleHRlcm5hbElkPTIzMDM4NyZpdGVtTmFtZT1EZXZvbGQrQnJlZXplK01lcmlubysxNTArYWxzJUMzJUIzbmVtJUM1JUIxJTJDK2Zla2V0ZSZjb21tZW50VHlwZT1yZXZpZXcmYXV0aG9yVXNlcklkPTAmd2lkZ2V0SWQ9cmV2aWV3c1dpZGdldCZhbGxvd0luc2VydD0xJmFsbG93UmVwbHk9MSZyZXR1cm5Vcmw9aHR0cHMlM0ElMkYlMkZ3d3cubXRiaWtlci5odSUyRnNob3AlMkZydWhhemF0JTJGYWxhb2x0b3pldC1lcy10ZXJtby1hbHNvbmVtdWslMkZhbGFvbHRvemV0LW5hZHJhZ29rJTJGZGV2b2xkLWJyZWV6ZS1tZXJpbm8tMTUwLWFsc29uZW11LWZla2V0ZS1wMjMwMzg3Lmh0bWwlMjNyZXZpZXdzJnBhcnNlZFVybCU1QnNjaGVtZSU1RD1odHRwcyZwYXJzZWRVcmwlNUJob3N0JTVEPXd3dy5tdGJpa2VyLmh1JnBhcnNlZFVybCU1QnBhdGglNUQ9JTJGc2hvcCUyRnJ1aGF6YXQlMkZhbGFvbHRvemV0LWVzLXRlcm1vLWFsc29uZW11ayUyRmFsYW9sdG96ZXQtbmFkcmFnb2slMkZkZXZvbGQtYnJlZXplLW1lcmluby0xNTAtYWxzb25lbXUtZmVrZXRlLXAyMzAzODcuaHRtbCZwYXJzZWRVcmwlNUJmcmFnbWVudCU1RD1yZXZpZXdzJmluY2x1ZGVDb21tZW50SWQ9MA|" + sort + "|" + filter; if (inputName === 'filter') { if (parseInt(filter) === 3 && !customScoreDone) { loadScoreSettingsModal(); return false; } } $('#reviewsWidget .comments-body-content').addClass('show-loading'); $.ajax({ url: url, success: function(data) { $('#reviewsWidget .comments-body-content').html(data).removeClass('show-loading'); } }); }); }); var commentFormSubmitting = false; $('.comment-form', '#reviewsWidget').unbind('submit'); $('.comment-form', '#reviewsWidget').on('submit', function(e){ e.preventDefault(); if (commentFormSubmitting) return false; var commentFormSubmitting = true; var $form = $(this); var $commentParent; $form.addClass('show-loading'); $('input[name="fotokom[]"]', $form).prop('disabled', true); var formData = new FormData(this); $('.invalid-feedback', $form).remove(); $('.is-invalid', $form).removeClass('is-invalid'); var parentId = $form.find("[name=parent]").val(); parentId = parentId ? parseInt(parentId) : 0; var isReply = true && parentId; if (isReply) { $commentParent = $('#commentBox' + parentId); formData.append('level', $commentParent.parents('.comments-replies').length); } $.ajax({ type: "POST", url: "/ajax.php?m=komentare&f=ajaxSaveForm&a=", data: formData, processData: false, contentType: false, success: function(data) { if (isReply && data) { // return comment html (shop only) if ($commentParent.next('.comments-replies').length){ $commentParent.next('.comments-replies').replaceWith($(data)); } else { $commentParent.after($(data)); } // Remove reward container if ($commentParent.find('.reward-container').length) { $commentParent.find('.reward-container').remove(); } let $toHighlight = $('.to-highlight', '#reviewsWidget'); if ($toHighlight.length) { $toHighlight.removeClass('to-highlight'); scrollAndHighlightComment('#' + $toHighlight.attr('id'), false); } // Remove 'loyalty-reward' from the url setTimeout(function() { if (window.location.hash.includes("?loyalty-reward=1")) { const newHash = window.location.hash.replace("?loyalty-reward=1", ""); history.replaceState(null, "", newHash); } }, 1000); // reset form resetCommentForm($form.closest('.comments')); $('input[name="fotokom[]"]', $form).prop('disabled', false); $form.hide(); $('.comment-form-with-uploader-popup.collapse').collapse('hide'); commentFormSubmitting = false; $form.removeClass('show-loading'); } else { // returns js relocate window.onhashchange = function (e) { e.preventDefault(); window.location.reload(); return false; } $('.mainSite').append(data); // location.reload(); } }, error: function(data){ commentFormSubmitting = false; $form.removeClass('show-loading'); if (data && data.responseJSON && data.responseJSON.formErrors){ $.each(data.responseJSON.formErrors, function(name, error){ $("[name="+name+"]", $form).after('
'+error.join('
')+'
'); $("[name="+name+"]", $form).closest('.form-group').find('input, select, textarea, .dropdown').addClass('is-invalid'); }); } $firstInvalidEl = $(".is-invalid", $form).first(); $firstInvalidEl.focus(); $('input[name="fotokom[]"]', $form).prop('disabled', false); } }); return false; }); function showRating(rating){ if (!rating) { $('.reviews-form-stars i').removeClass('fa-star').addClass('fa-star-empty'); } else { var $currentRating = $('.reviews-form-stars i').eq(rating-1); $currentRating.removeClass('fa-star-empty').addClass('fa-star'); $currentRating.prevAll().removeClass('fa-star-empty').addClass('fa-star'); $currentRating.nextAll().removeClass('fa-star').addClass('fa-star-empty'); } } var reviewSubmitting = false; $(function(){ if (!isMobile){ $('.reviews-form-stars i').on('mouseenter', function(){ var rating = parseInt($('#reviewsForm input[name=rating]').val()); if (rating) return false; showRating($(this).index()+1); }); $('.reviews-form-stars').on('mouseleave', function(){ var rating = parseInt($('#reviewsForm input[name=rating]').val()); showRating(rating); }); } }); function submitReviewForm(fotoFileUploader) { $('#reviewsForm').addClass('show-loading'); reviewSubmitting = true; $('#reviewsForm input[name="fotokom[]"]').prop('disabled', true); var formData = new FormData(document.getElementById("reviewsForm")); $.each(fotoFileUploader.getFiles(),function(i,file){ formData.append('fotokom['+i+']', file); }); $('#reviewsForm .invalid-feedback').remove(); $('#reviewsForm .is-invalid').removeClass('is-invalid'); let showNext = $('#reviewsForm input[name="show_next_review"]').length > 0; $.ajax({ type: "POST", url: "/ajax.php?m=komentare&f=ajaxSaveForm&a=", data: formData, processData: false, contentType: false, success: function(data){ if (showNext && typeof showNextReviewForm !== 'undefined') { reviewSubmitting = false; let prevId = $('#reviewsForm input[name="foreign_id"]').val(); showNextReviewForm(prevId, data); } else { // returns js relocate $('.mainSite').append(data); // location.reload(); } }, error: function(data){ reviewSubmitting = false; $('#reviewsForm').removeClass('show-loading'); if (data && data.responseJSON && data.responseJSON.formErrors){ $.each(data.responseJSON.formErrors, function(name, error){ $("#reviewsForm [name="+name+"]").after('
'+error.join('
')+'
'); $("#reviewsForm [name="+name+"]").closest('.form-group').find('input, select, textarea, .dropdown').addClass('is-invalid'); }); } $firstInvalidEl = $("#reviewsForm .is-invalid").first(); $firstInvalidEl.focus(); } }); } // function check and modal if review is too short function isReviewShort(textareaCheckLength, limit = 20) { var modalOpened = false; var reviewtextLength = $('#reviewsForm textarea[name=text]').val().length; if (reviewtextLength < limit && textareaCheckLength === false) { $('#modalReviewShort').modal('show'); textareaCheckLength = true; modalOpened = true; } return [textareaCheckLength, modalOpened]; } var loadedComments_reviewsWidget = false; function loadComments_reviewsWidget(){ } //gallery carousel multiple items - hack $(function(){ // init arrows $('.gallery-carousel').each(function(){ var itemsPerSlide = 4; if ($(this).data('items-per-slide')) itemsPerSlide = $(this).data('items-per-slide'); if ($('.carousel-item', this).length <= itemsPerSlide){ $('.carousel-control-next', this).addClass('disabled'); } }); $('.gallery-carousel').on('slide.bs.carousel', function (e) { if (!window.matchMedia("(min-width: 768px)").matches) return; // default behaviour on mobile /* CC 2.0 License Iatek LLC 2018 - Attribution required */ var $e = $(e.relatedTarget); var idx = $e.index(); var itemsPerSlide = 4; if ($(this).data('items-per-slide')) itemsPerSlide = $(this).data('items-per-slide'); var totalItems = $('.carousel-item', this).length; if ($(this).data('ended')==true && e.direction=='left'){ return false; } if (e.to===0){ $('.carousel-control-prev', this).addClass('disabled'); }else{ $('.carousel-control-prev', this).removeClass('disabled'); } if (e.to>=totalItems - itemsPerSlide){ $('.carousel-control-next', this).addClass('disabled'); $(this).data('ended', true); }else{ $('.carousel-control-next', this).removeClass('disabled'); $(this).data('ended', false); } }); }); var carouselItemsPerSlide = 4; if (window.matchMedia("(min-width: 768px)").matches){ if ($('#pc-431-carousel .col-sm-6').length) carouselItemsPerSlide = 2; if ($('#pc-431-carousel .col-sm-4').length) carouselItemsPerSlide = 3; } if (window.matchMedia("(min-width: 1024px)").matches){ if ($('#pc-431-carousel .col-md-4').length) carouselItemsPerSlide = 3; if ($('#pc-431-carousel .col-md-3').length) carouselItemsPerSlide = 4; } if (window.matchMedia("(min-width: 1200px)").matches){ if ($('#pc-431-carousel .col-lg-3').length) carouselItemsPerSlide = 4; } $('#pc-431-carousel').data('items-per-slide', carouselItemsPerSlide); function resizeCarouselpc431(){ if (window.matchMedia("(min-width: 768px)").matches){ var maxHeight = 0; var width = 0; $('#pc-431-carousel .carousel-inner').height('auto'); $('#pc-431-carousel .carousel-item').each(function(){ width = Math.max(width, $(this).outerWidth()); if (width === 0) return; var $this = $(this); var prevStyle = $this.attr('style'); if (!$this.is(':visible')){ $this.attr('style','position:absolute; left:-500px; display:block; height: auto; width:' + width + 'px'); } maxHeight = Math.max(maxHeight, $(this).outerHeight()); $this.attr('style', prevStyle ? prevStyle : ''); }); $('#pc-431-carousel .carousel-inner').height(maxHeight); } else { $('#pc-431-carousel .carousel-inner').height('100%'); } } $(function(){ resizeCarouselpc431(); $(window).on('resize', function(){ resizeCarouselpc431(); }); }); var carouselItemsPerSlide = 4; if (window.matchMedia("(min-width: 768px)").matches){ if ($('#recommended-181-carousel .col-sm-6').length) carouselItemsPerSlide = 2; if ($('#recommended-181-carousel .col-sm-4').length) carouselItemsPerSlide = 3; } if (window.matchMedia("(min-width: 1024px)").matches){ if ($('#recommended-181-carousel .col-md-4').length) carouselItemsPerSlide = 3; if ($('#recommended-181-carousel .col-md-3').length) carouselItemsPerSlide = 4; } if (window.matchMedia("(min-width: 1200px)").matches){ if ($('#recommended-181-carousel .col-lg-3').length) carouselItemsPerSlide = 4; } $('#recommended-181-carousel').data('items-per-slide', carouselItemsPerSlide); function resizeCarouselrecommended181(){ if (window.matchMedia("(min-width: 768px)").matches){ var maxHeight = 0; var width = 0; $('#recommended-181-carousel .carousel-inner').height('auto'); $('#recommended-181-carousel .carousel-item').each(function(){ width = Math.max(width, $(this).outerWidth()); if (width === 0) return; var $this = $(this); var prevStyle = $this.attr('style'); if (!$this.is(':visible')){ $this.attr('style','position:absolute; left:-500px; display:block; height: auto; width:' + width + 'px'); } maxHeight = Math.max(maxHeight, $(this).outerHeight()); $this.attr('style', prevStyle ? prevStyle : ''); }); $('#recommended-181-carousel .carousel-inner').height(maxHeight); } else { $('#recommended-181-carousel .carousel-inner').height('100%'); } } $(function(){ resizeCarouselrecommended181(); $(window).on('resize', function(){ resizeCarouselrecommended181(); }); }); var carouselItemsPerSlide = 4; if (window.matchMedia("(min-width: 768px)").matches){ if ($('#recommended-168-carousel .col-sm-6').length) carouselItemsPerSlide = 2; if ($('#recommended-168-carousel .col-sm-4').length) carouselItemsPerSlide = 3; } if (window.matchMedia("(min-width: 1024px)").matches){ if ($('#recommended-168-carousel .col-md-4').length) carouselItemsPerSlide = 3; if ($('#recommended-168-carousel .col-md-3').length) carouselItemsPerSlide = 4; } if (window.matchMedia("(min-width: 1200px)").matches){ if ($('#recommended-168-carousel .col-lg-3').length) carouselItemsPerSlide = 4; } $('#recommended-168-carousel').data('items-per-slide', carouselItemsPerSlide); function resizeCarouselrecommended168(){ if (window.matchMedia("(min-width: 768px)").matches){ var maxHeight = 0; var width = 0; $('#recommended-168-carousel .carousel-inner').height('auto'); $('#recommended-168-carousel .carousel-item').each(function(){ width = Math.max(width, $(this).outerWidth()); if (width === 0) return; var $this = $(this); var prevStyle = $this.attr('style'); if (!$this.is(':visible')){ $this.attr('style','position:absolute; left:-500px; display:block; height: auto; width:' + width + 'px'); } maxHeight = Math.max(maxHeight, $(this).outerHeight()); $this.attr('style', prevStyle ? prevStyle : ''); }); $('#recommended-168-carousel .carousel-inner').height(maxHeight); } else { $('#recommended-168-carousel .carousel-inner').height('100%'); } } $(function(){ resizeCarouselrecommended168(); $(window).on('resize', function(){ resizeCarouselrecommended168(); }); }); var carouselItemsPerSlide = 4; if (window.matchMedia("(min-width: 768px)").matches){ if ($('#recommended-882-carousel .col-sm-6').length) carouselItemsPerSlide = 2; if ($('#recommended-882-carousel .col-sm-4').length) carouselItemsPerSlide = 3; } if (window.matchMedia("(min-width: 1024px)").matches){ if ($('#recommended-882-carousel .col-md-4').length) carouselItemsPerSlide = 3; if ($('#recommended-882-carousel .col-md-3').length) carouselItemsPerSlide = 4; } if (window.matchMedia("(min-width: 1200px)").matches){ if ($('#recommended-882-carousel .col-lg-3').length) carouselItemsPerSlide = 4; } $('#recommended-882-carousel').data('items-per-slide', carouselItemsPerSlide); function resizeCarouselrecommended882(){ if (window.matchMedia("(min-width: 768px)").matches){ var maxHeight = 0; var width = 0; $('#recommended-882-carousel .carousel-inner').height('auto'); $('#recommended-882-carousel .carousel-item').each(function(){ width = Math.max(width, $(this).outerWidth()); if (width === 0) return; var $this = $(this); var prevStyle = $this.attr('style'); if (!$this.is(':visible')){ $this.attr('style','position:absolute; left:-500px; display:block; height: auto; width:' + width + 'px'); } maxHeight = Math.max(maxHeight, $(this).outerHeight()); $this.attr('style', prevStyle ? prevStyle : ''); }); $('#recommended-882-carousel .carousel-inner').height(maxHeight); } else { $('#recommended-882-carousel .carousel-inner').height('100%'); } } $(function(){ resizeCarouselrecommended882(); $(window).on('resize', function(){ resizeCarouselrecommended882(); }); }); var carouselItemsPerSlide = 4; if (window.matchMedia("(min-width: 768px)").matches){ if ($('#recommended-829-carousel .col-sm-6').length) carouselItemsPerSlide = 2; if ($('#recommended-829-carousel .col-sm-4').length) carouselItemsPerSlide = 3; } if (window.matchMedia("(min-width: 1024px)").matches){ if ($('#recommended-829-carousel .col-md-4').length) carouselItemsPerSlide = 3; if ($('#recommended-829-carousel .col-md-3').length) carouselItemsPerSlide = 4; } if (window.matchMedia("(min-width: 1200px)").matches){ if ($('#recommended-829-carousel .col-lg-3').length) carouselItemsPerSlide = 4; } $('#recommended-829-carousel').data('items-per-slide', carouselItemsPerSlide); function resizeCarouselrecommended829(){ if (window.matchMedia("(min-width: 768px)").matches){ var maxHeight = 0; var width = 0; $('#recommended-829-carousel .carousel-inner').height('auto'); $('#recommended-829-carousel .carousel-item').each(function(){ width = Math.max(width, $(this).outerWidth()); if (width === 0) return; var $this = $(this); var prevStyle = $this.attr('style'); if (!$this.is(':visible')){ $this.attr('style','position:absolute; left:-500px; display:block; height: auto; width:' + width + 'px'); } maxHeight = Math.max(maxHeight, $(this).outerHeight()); $this.attr('style', prevStyle ? prevStyle : ''); }); $('#recommended-829-carousel .carousel-inner').height(maxHeight); } else { $('#recommended-829-carousel .carousel-inner').height('100%'); } } $(function(){ resizeCarouselrecommended829(); $(window).on('resize', function(){ resizeCarouselrecommended829(); }); }); var carouselItemsPerSlide = 4; if (window.matchMedia("(min-width: 768px)").matches){ if ($('#recommended-163-carousel .col-sm-6').length) carouselItemsPerSlide = 2; if ($('#recommended-163-carousel .col-sm-4').length) carouselItemsPerSlide = 3; } if (window.matchMedia("(min-width: 1024px)").matches){ if ($('#recommended-163-carousel .col-md-4').length) carouselItemsPerSlide = 3; if ($('#recommended-163-carousel .col-md-3').length) carouselItemsPerSlide = 4; } if (window.matchMedia("(min-width: 1200px)").matches){ if ($('#recommended-163-carousel .col-lg-3').length) carouselItemsPerSlide = 4; } $('#recommended-163-carousel').data('items-per-slide', carouselItemsPerSlide); function resizeCarouselrecommended163(){ if (window.matchMedia("(min-width: 768px)").matches){ var maxHeight = 0; var width = 0; $('#recommended-163-carousel .carousel-inner').height('auto'); $('#recommended-163-carousel .carousel-item').each(function(){ width = Math.max(width, $(this).outerWidth()); if (width === 0) return; var $this = $(this); var prevStyle = $this.attr('style'); if (!$this.is(':visible')){ $this.attr('style','position:absolute; left:-500px; display:block; height: auto; width:' + width + 'px'); } maxHeight = Math.max(maxHeight, $(this).outerHeight()); $this.attr('style', prevStyle ? prevStyle : ''); }); $('#recommended-163-carousel .carousel-inner').height(maxHeight); } else { $('#recommended-163-carousel .carousel-inner').height('100%'); } } $(function(){ resizeCarouselrecommended163(); $(window).on('resize', function(){ resizeCarouselrecommended163(); }); }); function updateRelevantCategoryLink(){ $(".link-relevant-product").attr('href', $(".product-relevant-categories .tab-pane.active .link-relevant-product-mobile").attr('href')); } $(document).ready(function(){ $('.product-relevant-categories a[data-toggle="tab"]').on("shown.bs.tab", function (e) { updateRelevantCategoryLink(); }); updateRelevantCategoryLink(); }); $(document).ready(function () { let similarCategoriesEl = $("#productSimilarCategories"); let similarCategoriesExpandBtn = $(".btn-product-similar-categories-expand"); similarCategoriesEl.on("hide.bs.collapse", function () { similarCategoriesExpandBtn.find('.material-icons').html('add'); similarCategoriesExpandBtn.find('span').html('Több kategória megjelenítése'); }); similarCategoriesEl.on("show.bs.collapse", function () { similarCategoriesExpandBtn.find('.material-icons').html('remove'); similarCategoriesExpandBtn.find('span').html('Kevesebb kategória megjelenítése'); }); }); var productGalleryCarousel; $(document).ready(function(){ productGalleryCarousel = new Swiper('#gallery-carousel', { loop: false, slidesPerView: 1, spaceBetween: 0, pagination: { el: '.shop-detail-images .swiper-pagination', clickable: true, }, navigation: { nextEl: '.shop-detail-images .carousel-control-next', prevEl: '.shop-detail-images .carousel-control-prev', }, breakpoints: { 768: { slidesPerView: 3, spaceBetween: 10, }, 1024: { slidesPerView: 4, spaceBetween: 10, }, }, }); }) $(function(){ let $bpModal = $('#bestPriceNewModal'); $bpModal.on('show.bs.modal', function () { $('.bp-declined-show').hide(); $('.bp-declined-hide').show(); var $selectedOption = $('input[name="option[1]"]:checked'); $bpModal.find('.is-invalid').removeClass('is-invalid'); $bpModal.find('.invalid-feedback').remove(); $bpModal.find('input[name=price]').val(''); $bpModal.find('input[name=url]').val(''); // product with options but no option selected if ($selectedOption.length) { $('#bp-new-options').val($selectedOption.val()); $('#bp-new-options').selectpicker('refresh'); } /*if ($('input[name="option[1]"]').length && !$selectedOption.length) { $('#bp-new-options-wrap').show(); } else { $('#bp-new-options-wrap').hide(); }*/ }); let $bpNewPrice = $('#bp-new-price'); $bpNewPrice[0].addEventListener("paste", function(event) { event.preventDefault(); let paste = (event.clipboardData || window.clipboardData).getData("text"); paste = paste.replace(/[^\d.,]/g, ''); this.value = paste; }); $bpNewPrice.on('keypress', function (e) { var chr = String.fromCharCode(e.which); if ("0123456789.,".indexOf(chr) < 0) { return false; } }); $('#bp-new-form').on('submit', function(e) { e.preventDefault(); var $this = $(this); if ($this.hasClass('show-loading')) { return false; } $this.addClass('show-loading'); $.post('/shop-utils/pricingRequest', $this.serialize(), function(returnData) { showMessage('Köszönjük érdeklődésed az árkorrekcióval kapcsolatban, hamarosan jelentkezünk', 'success'); $bpModal.modal('hide'); $this.removeClass('show-loading'); $bpModal.find('.is-invalid').removeClass('is-invalid'); $bpModal.find('.invalid-feedback').remove(); }).fail(function(data) { if (data && data.responseJSON && data.responseJSON.formErrors) { $bpModal.find('.is-invalid').removeClass('is-invalid'); $bpModal.find('.invalid-feedback').remove(); $.each(data.responseJSON.formErrors, function(name, error) { if (name === 'not_in_whitelist' || name === 'higher_price' || name === 'wrong_country') { $('.js-price-match-info-exc', $bpModal).hide(); $('#bp-declined .bp-icon-sad').toggle(name !== 'higher_price'); $('#bp-declined .bp-icon-info').toggle(name === 'higher_price'); $('#bp-declined .bp-alert-text').html(error); $('.bp-declined-show').show(); $('.bp-declined-hide').hide(); } else if (name === 'exists'){ showMessage(error, 'error'); $bpModal.modal('hide'); $this.removeClass('show-loading'); $bpModal.find('.is-invalid').removeClass('is-invalid'); $bpModal.find('.invalid-feedback').remove(); } else { $("[name=" + name + "]", $bpModal).addClass('is-invalid').after('
' + error + '
'); } }); } else { statusErrorMsg(data.status); } $this.removeClass('show-loading'); }); return false; }); }) $(function(){ const swiperInfoBoxes = new Swiper('.shop-info-boxes-slider .swiper', { loop: false, slidesPerView: 'auto', spaceBetween: 0, navigation: { nextEl: '.shop-info-boxes-slider .carousel-control-next', prevEl: '.shop-info-boxes-slider .carousel-control-prev', }, breakpoints: { 768: { slidesPerView: 3, spaceBetween: 20, }, 1200: { slidesPerView: 4, spaceBetween: 20, }, }, }); }); var totalPriceForInstallments = 82.99; var UtilsCheckAvailability = { modal: null, selectedOptionId: null, productOptions: {"558311":"S","558314":"XL","558315":"XXL"}, init: function () { this.modal = $('#checkAvailabilityModal'); this.modal.on('show.bs.modal', function () { let modal = $(this); $('.modal-footer, .cha-notif, .cha-check, .cha-form', modal).hide(); $('.cha-intro', modal).show(); $('.show-loading', modal).removeClass('show-loading'); //let $selectedOption = $('#productOptions input[name="option[1]"]:checked'); //this.selectedOptionId = $selectedOption.val(); //$('.ca-option-name').removeClass('sel'); // $('.ca-option-name[data-option-id=' + $selectedOption.val() +']').removeClass('d-none'); }); $('.password-with-toggler i', this.modal).on('click', function (event) { let wrap = $(this).closest('.password-with-toggler'); if ($('input', wrap).attr('type') === 'text') { $('input', wrap).attr('type', 'password'); $('i', wrap).text('visibility'); } else { $('input', wrap).attr('type', 'text'); $('i', wrap).text('visibility_off'); } }); }, show: function (productOptionId) { this.selectedOptionId = productOptionId; this.modal.modal('show'); }, check: function () { $('.cha-intro', this.modal).hide(); $('.cha-check, .cha-form, .modal-footer', this.modal).show(); }, notify: function () { $('.cha-intro', this.modal).hide(); $('.cha-notif, .cha-form, .modal-footer', this.modal).show(); }, /* showRegDetails: function() { $('.cha-reg-banner').hide(); $('.cha-reg-details, .modal-footer').show(); },*/ validateForm: function (register) { $('.is-invalid', this.modal).removeClass('is-invalid'); $('.invalid-feedback', this.modal).remove(); let email = $('#ca-email', this.modal).val(); if (!email.length && !$('#ca-email', this.modal)[0].checkValidity()) { $('#ca-email', this.modal)[0].reportValidity(); return false; } if (register && !$('#ca-password', this.modal)[0].checkValidity()) { $('#ca-password', this.modal)[0].reportValidity(); return false; } if (register && !$('#ca-terms', this.modal)[0].checkValidity()) { $('#ca-terms', this.modal)[0].reportValidity(); return false; } return true; }, doCheck: function (register) { let $form = $('.form-with-loading', this.modal); let utils = this; if ($form.hasClass('show-loading') || !this.validateForm(register)) { return false; } $form.addClass('show-loading'); $.ajax({ url: '/watchdog/watchdog/instant', method: 'post', data: { register: register, user_email: $('#ca-email', this.modal).val(), user_password: $('#ca-password', this.modal).val(), user_name: $('#ca-name', this.modal).val(), product_url: "https://www.mtbiker.hu/shop/ruhazat/alaoltozet-es-termo-alsonemuk/alaoltozet-nadragok/devold-breeze-merino-150-alsonemu-fekete-p230387.html", product_name: "Devold Breeze Merino 150 alsónemű, fekete, méret: " + this.productOptions[this.selectedOptionId], }, success: function (returnData) { if (returnData && returnData.msg) { showMessage(returnData.msg, 'success', register ? 5000 : 3000); utils.modal.modal('hide'); } else { showMessage(`Hiba történt. Kérünk, később próbáld meg újra!`, 'error'); } $form.removeClass('show-loading'); } }).fail(function (xhr) { if (xhr && xhr.responseJSON && xhr.responseJSON.formErrors) { $.each(xhr.responseJSON.formErrors, function (name, error) { $("[name=" + name + "]", utils.modal).addClass('is-invalid'); $("[name=" + name + "]", utils.modal).after('
' + error.join('
') + '
'); }); } else if (xhr && xhr.responseJSON && xhr.responseJSON.errors) { jsonErrorsMsg(xhr.responseJSON.errors); } else { statusErrorMsg(xhr.status); } $form.removeClass('show-loading'); }); return false; }, doNotify: function (register) { let $form = $('.form-with-loading', this.modal); let utils = this; if ($form.hasClass('show-loading') || !this.validateForm(register)) { return false; } $form.addClass('show-loading'); $.ajax({ url: '/watchdog/watchdog/add', method: 'post', data: { register: register, user_email: $('#ca-email', this.modal).val(), user_password: $('#ca-password', this.modal).val(), user_name: $('#ca-name', this.modal).val(), product_id: '230387', product_option_id: this.selectedOptionId, }, success: function (returnData) { if (returnData && returnData.msg) { showMessage(returnData.msg, 'success', register ? 5000 : 3000); utils.modal.modal('hide'); } else { showMessage(`Hiba történt. Kérünk, később próbáld meg újra!`, 'error'); } $form.removeClass('show-loading'); } }).fail(function (xhr) { if (xhr && xhr.responseJSON && xhr.responseJSON.formErrors) { $.each(xhr.responseJSON.formErrors, function (name, error) { $("[name=" + name + "]", utils.modal).addClass('is-invalid'); $("[name=" + name + "]", utils.modal).after('
' + error.join('
') + '
'); }); } else if (xhr && xhr.responseJSON && xhr.responseJSON.errors) { jsonErrorsMsg(xhr.responseJSON.errors); } else { statusErrorMsg(xhr.status); } $form.removeClass('show-loading'); }); return false; } } $(function () { UtilsCheckAvailability.init(); }); $(function() { $('#extendedReturnModal').on('show.bs.modal', function() { if ($('.cart-success-panel').length) { setTimeout(function(){ $('#extendedReturnModal').css('z-index', 9100); $('.modal-backdrop').css('z-index', 9098); }, 5); } }); }) var emailConsentModalActiveEl; var emailConsentModalActiveSection = false; var emailConsentModalAgreed = false; function emailConsentModal(el, section){ var $el = $(el); if ($el.is(':checked') || !$el.is("input")){ // checked checkbox, or button/link emailConsentModalActiveEl = $(el); var $modal = $('#modalEmailConsent'); emailConsentModalActiveSection = section; if (section){ $('[data-section="general"]', $modal).hide(); $('[data-section="newsletter"]', $modal).hide(); $('[data-section="shop"]', $modal).hide(); $('[data-section="sale"]', $modal).hide(); $('[data-section="' + section + '"]', $modal).show(); $('.label-non-univeral').hide(); $('.label-universal').show(); } else { $('.mec-title', $modal).hide(); $('[data-section="general"]', $modal).show(); } emailConsentModalSubOptions(); emailConsentModalRegistrationToggleBtn(); emailConsentModalAgreed = false; $('#modalEmailConsent').modal('show'); } } function emailConsentModalSubOptions(){ $('.sub-options-emails').each(function() { var $subOptions = $(this); if ($subOptions.parent().find('.custom-switch input:checked, .custom-checkbox input:checked').length){ $subOptions.show(); if (!$subOptions.find('input:checked').length){ $subOptions.find('input').first().prop('checked', true); } } else { $subOptions.hide(); $subOptions.find('input').prop('checked', false); } }); } function emailConsentModalOnAgreed(){ var $modal = $('#modalEmailConsent'); emailConsentModalAgreed = true; var sectionWrap = emailConsentModalActiveSection ? '[data-section="' + emailConsentModalActiveSection + '"] ' : ''; var inputs = ''; $(sectionWrap + 'input[type=hidden], input:checked', $modal).each(function(){ var $this = $(this); inputs = inputs + ''; }); emailConsentModalActiveEl.prev('.mec-inputs').remove(); $('' + inputs + '').insertBefore(emailConsentModalActiveEl); $('#modalEmailConsent').modal('hide'); } function emailConsentModalRegistrationToggleBtn() { $modal = $('#modalEmailConsent'); setTimeout(function(){ $('.modal-footer .btn', $modal).prop('disabled', !$('input:checked:visible', $modal).length); }, 200); } $(function() { $('input[name="agreed_emails"]').on('change', function(){ emailConsentModal(this); }); emailConsentModalSubOptions(); $('#mec_user_newsletter_agreed, #user_newsletter_agreed').on('change', emailConsentModalSubOptions ); $('input:radio, input:checkbox','#modalEmailConsent').on('change', function(){ emailConsentModalRegistrationToggleBtn(); }); $('#modalEmailConsent').on('hidden.bs.modal', function (e) { $modal = $(this); if (!emailConsentModalAgreed){ if (emailConsentModalActiveEl.val() === 'weekly'){ $('input[value=monthly]', $modal).prop('checked', false); } else if (emailConsentModalActiveEl.val() === 'monthly'){ $('input[value=weekly]', $modal).prop('checked', false); } else { emailConsentModalActiveEl.prop('checked', false); } emailConsentModalActiveEl.prev('.mec-inputs').remove(); } emailConsentModalActiveSection = false; emailConsentModalSubOptions(); if ($('#registrationModal.modal').hasClass('show')) { setTimeout(function(){ $('body').addClass('modal-open'); // registration modal is still opened }, 20); } }); }); $(function() { $(".js-reject-cookies").attr("role", "button"); $(".js-reject-cookies").click(function(e){ e.preventDefault(); $.ajax({type: "POST",url: "/account/cookie-consent",data: {functional:0,analytical:0,commercial:0} }); $("#biscuitModal").fadeOut(250); return false; }); $(".biscuit-close").click(function(){ $.ajax({type: "POST",url: "/account/cookie-consent",data: {necessary:1,functional:1,analytical:1,commercial:1} }); $("#biscuitModal").fadeOut(250); $(".biscuit-checkboxes .custom-control-input").attr("checked", true); updateGoogleAnalyticsConsent(); updateBingConsent(); sendGoogleAnalyticsPageview(); return false; }); $(".biscuit-settings").click(function(){ $(this).addClass("loading-simple"); $.ajax({type: "POST",url: "/account/cookie-consent",data: {functional:0,analytical:0,commercial:0} }).always(function(){ window.location = "https://www.mtbiker.hu/cookies"; }); }); });