Comprar MARCAS en Marathona | Filtrado por Más Vendidos
Amarillo (4) Plata (3) Real (3) Rojo (5) Rosa (5) Verde (10) Negro (67) Aqua (1)
Naranja (4) Marino (6) Gris (13) Fucsia (8) Coral (5) Celeste (7) Blanco (6) Azul (10) Púrpura (1) Blanco/negro (1) Consultar Colores (1) Floreado (1) Fluo (1) Gris Camuflado (1) Negra-blanca-gris (1) Negro Camuflado (1) Negro Y Amarillo (1) Negro Y Blanco (1) Negro Y Fucsia (1) Negro Y Naranja (1) Rosa-lila-celeste (1) Verde Oscuro (1)
3 (2) 4 (4) 5 (2) 6 (1) 7 (2) 8 (2) 9 (2) 10 (1)
12 (1) 16 (1) 2-4 (1) 5-7 (1) Consultar Stock (1) T.u (6) Xxxl (3) Xs (25) S (53) M (59) L (53) Xl (35) Xxl (18)
35-37 (7) 36 Arg - Us 6 - 23 Cm (2) 36.5 Arg - Us 6.5 - 23.5 Cm (4) 37 Arg - Us 7 - 24 Cm (6) 37.5 Arg - Us 7.5 - 24.5 Cm (4) 38 Arg - Us 8 - 25 Cm (5) 38-40 (7) 38.5 - Us 8.5 - 25.5 Cm (1)
38.5 Arg - Us 8.5 - 25.5 Cm (3) 38.5 Arg - Us 8.5 - Cm 25.5 Cm (1) 38/39 (1) 39 Arg - Us 9 - 25.75 Cm (1) 39 Arg - Us 9 - 26 Cm (4) 39.5 Arg - Us 9.5 - 26.5 Cm (3) 40 Arg - Us 10 - 27 Cm (2) 40 Arg - Us 8 - 26 Cm (2) 41 Arg - Us 9 - 27 Cm (3) 41-43 (7) 41.5 Arg - Us 9.5 - 27.5 Cm (2) 42 Arg - Us 10 - 28 Cm (1) 42.5 Arg - Us 10.5 - 28.25 Cm (2) 44-46 (8)
Consultar Stock (1)
Gel Cumulus 21 Asics
$13.455,00
Pantalón Chupin Fibra Humana
Zapatillas Go Walk Joy Skechers
Campera Namur Miwok
$3.685,00
Calza Barban Miwok
$2.938,00
$2.990,00 $2.100,00
Pantalón Montevideo OSX
Gorro de Natación de Silicona Heracles
Mochila de hidratación 12 lt. Noaf (con bolsa incluida)
Cinto de hidratación regulable dos botellas Noaf
Cuello tubular (sin costuras) Noaf
Pantalón Jogging QEB
Zapatillas Summits Quick Skechers
$6.539,00
GT 1000 9 Asics
")})},y=function(t){o.settings.auto&&r.stopAuto(),r.goToNextSlide(),t.preventDefault()},z=function(t){o.settings.auto&&r.stopAuto(),r.goToPrevSlide(),t.preventDefault()},k=function(t){r.startAuto(),t.preventDefault()},M=function(t){r.stopAuto(),t.preventDefault()},q=function(e){o.settings.auto&&r.stopAuto();var i=t(e.currentTarget),s=parseInt(i.attr("data-slide-index"));s!=o.active.index&&r.goToSlide(s),e.preventDefault()},I=function(e){var i=o.children.length;return"short"==o.settings.pagerType?(o.settings.maxSlides>1&&(i=Math.ceil(o.children.length/o.settings.maxSlides)),o.pagerEl.html(e+1+o.settings.pagerShortSeparator+i),void 0):(o.pagerEl.find("a").removeClass("active"),o.pagerEl.each(function(i,s){t(s).find("a").eq(e).addClass("active")}),void 0)},D=function(){if(o.settings.infiniteLoop){var t="";0==o.active.index?t=o.children.eq(0).position():o.active.index==x()-1&&o.carousel?t=o.children.eq((x()-1)*m()).position():o.active.index==o.children.length-1&&(t=o.children.eq(o.children.length-1).position()),"horizontal"==o.settings.mode?b(-t.left,"reset",0):"vertical"==o.settings.mode&&b(-t.top,"reset",0)}o.working=!1,o.settings.onSlideAfter(o.children.eq(o.active.index),o.oldIndex,o.active.index)},A=function(t){o.settings.autoControlsCombine?o.controls.autoEl.html(o.controls[t]):(o.controls.autoEl.find("a").removeClass("active"),o.controls.autoEl.find("a:not(.bx-"+t+")").addClass("active"))},W=function(){1==x()?(o.controls.prev.addClass("disabled"),o.controls.next.addClass("disabled")):!o.settings.infiniteLoop&&o.settings.hideControlOnEnd&&(0==o.active.index?(o.controls.prev.addClass("disabled"),o.controls.next.removeClass("disabled")):o.active.index==x()-1?(o.controls.next.addClass("disabled"),o.controls.prev.removeClass("disabled")):(o.controls.prev.removeClass("disabled"),o.controls.next.removeClass("disabled")))},H=function(){o.settings.autoDelay>0?setTimeout(r.startAuto,o.settings.autoDelay):r.startAuto(),o.settings.autoHover&&r.hover(function(){o.interval&&(r.stopAuto(!0),o.autoPaused=!0)},function(){o.autoPaused&&(r.startAuto(!0),o.autoPaused=null)})},L=function(){var e=0;if("next"==o.settings.autoDirection)r.append(o.children.clone().addClass("bx-clone"));else{r.prepend(o.children.clone().addClass("bx-clone"));var i=o.children.first().position();e="horizontal"==o.settings.mode?-i.left:-i.top}b(e,"reset",0),o.settings.pager=!1,o.settings.controls=!1,o.settings.autoControls=!1,o.settings.tickerHover&&!o.usingCSS&&o.viewport.hover(function(){r.stop()},function(){var e=0;o.children.each(function(){e+="horizontal"==o.settings.mode?t(this).outerWidth(!0):t(this).outerHeight(!0)});var i=o.settings.speed/e,s="horizontal"==o.settings.mode?"left":"top",n=i*(e-Math.abs(parseInt(r.css(s))));N(n)}),N()},N=function(t){speed=t?t:o.settings.speed;var e={left:0,top:0},i={left:0,top:0};"next"==o.settings.autoDirection?e=r.find(".bx-clone").first().position():i=o.children.first().position();var s="horizontal"==o.settings.mode?-e.left:-e.top,n="horizontal"==o.settings.mode?-i.left:-i.top,a={resetValue:n};b(s,"ticker",speed,a)},O=function(){o.touch={start:{x:0,y:0},end:{x:0,y:0}},o.viewport.bind("touchstart",X)},X=function(t){if(o.working)t.preventDefault();else{o.touch.originalPos=r.position();var e=t.originalEvent;o.touch.start.x=e.changedTouches[0].pageX,o.touch.start.y=e.changedTouches[0].pageY,o.viewport.bind("touchmove",Y),o.viewport.bind("touchend",V)}},Y=function(t){var e=t.originalEvent,i=Math.abs(e.changedTouches[0].pageX-o.touch.start.x),s=Math.abs(e.changedTouches[0].pageY-o.touch.start.y);if(3*i>s&&o.settings.preventDefaultSwipeX?t.preventDefault():3*s>i&&o.settings.preventDefaultSwipeY&&t.preventDefault(),"fade"!=o.settings.mode&&o.settings.oneToOneTouch){var n=0;if("horizontal"==o.settings.mode){var r=e.changedTouches[0].pageX-o.touch.start.x;n=o.touch.originalPos.left+r}else{var r=e.changedTouches[0].pageY-o.touch.start.y;n=o.touch.originalPos.top+r}b(n,"reset",0)}},V=function(t){o.viewport.unbind("touchmove",Y);var e=t.originalEvent,i=0;if(o.touch.end.x=e.changedTouches[0].pageX,o.touch.end.y=e.changedTouches[0].pageY,"fade"==o.settings.mode){var s=Math.abs(o.touch.start.x-o.touch.end.x);s>=o.settings.swipeThreshold&&(o.touch.start.x>o.touch.end.x?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto())}else{var s=0;"horizontal"==o.settings.mode?(s=o.touch.end.x-o.touch.start.x,i=o.touch.originalPos.left):(s=o.touch.end.y-o.touch.start.y,i=o.touch.originalPos.top),!o.settings.infiniteLoop&&(0==o.active.index&&s>0||o.active.last&&0>s)?b(i,"reset",200):Math.abs(s)>=o.settings.swipeThreshold?(0>s?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto()):b(i,"reset",200)}o.viewport.unbind("touchend",V)},B=function(){var e=t(window).width(),i=t(window).height();(a!=e||l!=i)&&(a=e,l=i,r.redrawSlider())};return r.goToSlide=function(e,i){if(!o.working&&o.active.index!=e)if(o.working=!0,o.oldIndex=o.active.index,o.active.index=0>e?x()-1:e>=x()?0:e,o.settings.onSlideBefore(o.children.eq(o.active.index),o.oldIndex,o.active.index),"next"==i?o.settings.onSlideNext(o.children.eq(o.active.index),o.oldIndex,o.active.index):"prev"==i&&o.settings.onSlidePrev(o.children.eq(o.active.index),o.oldIndex,o.active.index),o.active.last=o.active.index>=x()-1,o.settings.pager&&I(o.active.index),o.settings.controls&&W(),"fade"==o.settings.mode)o.settings.adaptiveHeight&&o.viewport.height()!=p()&&o.viewport.animate({height:p()},o.settings.adaptiveHeightSpeed),o.children.filter(":visible").fadeOut(o.settings.speed).css({zIndex:0}),o.children.eq(o.active.index).css("zIndex",51).fadeIn(o.settings.speed,function(){t(this).css("zIndex",50),D()});else{o.settings.adaptiveHeight&&o.viewport.height()!=p()&&o.viewport.animate({height:p()},o.settings.adaptiveHeightSpeed);var s=0,n={left:0,top:0};if(!o.settings.infiniteLoop&&o.carousel&&o.active.last)if("horizontal"==o.settings.mode){var a=o.children.eq(o.children.length-1);n=a.position(),s=o.viewport.width()-a.outerWidth()}else{var l=o.children.length-o.settings.minSlides;n=o.children.eq(l).position()}else if(o.carousel&&o.active.last&&"prev"==i){var d=1==o.settings.moveSlides?o.settings.maxSlides-m():(x()-1)*m()-(o.children.length-o.settings.maxSlides),a=r.children(".bx-clone").eq(d);n=a.position()}else if("next"==i&&0==o.active.index)n=r.find("> .bx-clone").eq(o.settings.maxSlides).position(),o.active.last=!1;else if(e>=0){var c=e*m();n=o.children.eq(c).position()}if("undefined"!=typeof n){var g="horizontal"==o.settings.mode?-(n.left-s):-n.top;b(g,"slide",o.settings.speed)}}},r.goToNextSlide=function(){if(o.settings.infiniteLoop||!o.active.last){var t=parseInt(o.active.index)+1;r.goToSlide(t,"next")}},r.goToPrevSlide=function(){if(o.settings.infiniteLoop||0!=o.active.index){var t=parseInt(o.active.index)-1;r.goToSlide(t,"prev")}},r.startAuto=function(t){o.interval||(o.interval=setInterval(function(){"next"==o.settings.autoDirection?r.goToNextSlide():r.goToPrevSlide()},o.settings.pause),o.settings.autoControls&&1!=t&&A("stop"))},r.stopAuto=function(t){o.interval&&(clearInterval(o.interval),o.interval=null,o.settings.autoControls&&1!=t&&A("start"))},r.getCurrentSlide=function(){return o.active.index},r.getSlideCount=function(){return o.children.length},r.redrawSlider=function(){o.children.add(r.find(".bx-clone")).outerWidth(u()),o.viewport.css("height",p()),o.settings.ticker||S(),o.active.last&&(o.active.index=x()-1),o.active.index>=x()&&(o.active.last=!0),o.settings.pager&&!o.settings.pagerCustom&&(w(),I(o.active.index))},r.destroySlider=function(){o.initialized&&(o.initialized=!1,t(".bx-clone",this).remove(),o.children.each(function(){void 0!=t(this).data("origStyle")?t(this).attr("style",t(this).data("origStyle")):t(this).removeAttr("style")}),void 0!=t(this).data("origStyle")?this.attr("style",t(this).data("origStyle")):t(this).removeAttr("style"),t(this).unwrap().unwrap(),o.controls.el&&o.controls.el.remove(),o.controls.next&&o.controls.next.remove(),o.controls.prev&&o.controls.prev.remove(),o.pagerEl&&o.pagerEl.remove(),t(".bx-caption",this).remove(),o.controls.autoEl&&o.controls.autoEl.remove(),clearInterval(o.interval),o.settings.responsive&&t(window).unbind("resize",B))},r.reloadSlider=function(t){void 0!=t&&(n=t),r.destroySlider(),d()},d(),this}}(jQuery); document.addEventListener('lazybeforeunveil', function(e){ if ((e.target.parentElement) && (e.target.nextElementSibling)) { var parent = e.target.parentElement; var sibling = e.target.nextElementSibling; if (sibling.classList.contains('js-lazy-loading-preloader')) { sibling.style.display = 'none'; parent.style.display = 'block'; } } }); LS.ready.then(function() { $(document).ready(function(){ $(document).on("click", ".js-accordion-toggle", function(e) { e.preventDefault(); if($(this).hasClass("js-accordion-show-only")){ $(this).hide(); }else{ $(this).find(".js-accordion-toggle-inactive").toggle(); $(this).find(".js-accordion-toggle-active").toggle(); } $(this).prev(".js-accordion-container").toggle(); }); $('.js-sheet-bottom').on('show.bs.modal', function (e) { setTimeout(function(){ $('.modal-backdrop').addClass('sheet-bottom-backdrop'); }); }); var $modal_close = $('.js-modal-close'); var $modal_open = $('.js-modal-open'); var $modal_overlay = $('.js-modal-overlay'); $modal_open.click(function (e) { e.preventDefault(); var $modal_id = $(this).data('toggle'); $("body").toggleClass("overflow-none modal-active"); if ($($modal_id).hasClass("modal-show")) { $($modal_id).removeClass("modal-show").delay(200).hide(0); } else { $($modal_id).show(0).addClass("modal-show"); } }); $modal_close.click(function (e) { e.preventDefault(); $("body").toggleClass("overflow-none modal-active"); $(this).closest(".js-modal").removeClass("modal-show").delay(200).hide(0); }); $modal_overlay.click(function (e) { e.preventDefault(); $("body").toggleClass("overflow-none modal-active"); $(".js-modal").removeClass("modal-show").delay(200).hide(0); }); $(document).on("click", ".js-trigger-modal-zindex-top", function (e) { e.preventDefault(); var modal_id = $(this).attr("href"); $(modal_id).detach().insertAfter(".modal-backdrop"); $(".modal-backdrop").addClass("modal-backdrop-zindex-top"); }); if ($(window).width() < 768) { $(document).on("click", ".modal-backdrop", function () { $(this).next(".js-modal-xs-centered").modal('toggle'); }); cleanURLHash = function(){ const uri = window.location.toString(); const clean_uri = uri.substring(0, uri.indexOf("#")); window.history.replaceState({}, document.title, clean_uri); }; goBackBrowser = function(){ cleanURLHash(); history.back(); }; if(window.location.href.indexOf("modal-fullscreen") > -1) { cleanURLHash(); } $(".js-fullscreen-modal-open").click(function(e){ e.preventDefault(); var modal_url_hash = $(this).data("modal-url"); window.location.hash = modal_url_hash; }); $(".js-fullscreen-modal-close").click(function(e){ e.preventDefault(); goBackBrowser(); }); window.onhashchange = function() { if(window.location.href.indexOf("modal-fullscreen") <= -1) { $("body").removeClass("overflow-none"); if($(".js-fullscreen-modal").hasClass("modal-xs-right-in")){ $(".js-fullscreen-modal.modal-xs-right-in").toggleClass("modal-xs-right-in modal-xs-right-out"); setTimeout(function() { $(".js-fullscreen-modal.modal-xs-right-in").hide(); }, 300); }else if($(".js-fullscreen-modal").hasClass("in")){ $(".js-fullscreen-modal.in").modal('hide'); } } } } var $js_notification = $(".js_notification"); if ($js_notification.size() > 0){ if (LS.shouldShowOrderStatusNotification($js_notification.data('url'))){ $js_notification.show(); }; $(".js_notification_close").on( "click", function(e) { e.preventDefault(); LS.dontShowOrderStatusNotificationAgain($js_notification.data('url')); $(".js_notification").hide(); $(".js-main-content").removeClass('with-notification-bar'); }); if($js_notification.css('display') == 'none'){ $(".js-main-content").removeClass('with-notification-bar'); }; } $(".js-cart-notification-close").click(function(){ $(".js-alert-added-to-cart").removeClass("notification-visible").addClass("notification-hidden"); setTimeout(function(){ $('.js-cart-notification-item-img').attr('src', ''); $(".js-alert-added-to-cart").hide(); },2000); }); var $top_nav = $(".js-mobile-nav"); var $page_main_content = $(".js-main-content"); var $mobile_categories_btn = $(".js-toggle-mobile-categories"); var $main_categories_mobile_container = $(".js-categories-mobile-container"); var $search_backdrop = $(".js-search-backdrop"); var $delete_search = $(".js-search-delete"); var $search_suggest = $(".js-search-suggest"); $(".js-toggle-mobile-search").click(function(e){ e.preventDefault; var $mobile_tab_navigation = $(".js-mobile-nav-second-row"); $(".js-mobile-first-row").toggle(); $(".js-mobile-search-row").toggle(); $mobile_tab_navigation.toggle(); $(".js-search-input").val(); $search_backdrop.toggle().toggleClass("search-open"); if(!$("body").hasClass("mobile-categories-visible")){ $("body").toggleClass("overflow-none"); }else{ $("body").removeClass("mobile-categories-visible"); } $main_categories_mobile_container.hide(); if($search_backdrop.hasClass("move-up")){ $page_main_content.removeClass("move-up").addClass("move-down"); $search_backdrop.removeClass("move-up").addClass("move-down"); setTimeout(function() { $page_main_content.removeClass("move-down"); }, 200); }else{ $page_main_content.removeClass("move-down").addClass("move-up"); $search_backdrop.removeClass("move-down").addClass("move-up"); } if($mobile_categories_btn.hasClass("selected")){ $mobile_categories_btn.removeClass("selected"); $(".js-current-page").addClass("selected"); } }); var $mobile_search_input = $(".js-mobile-search-input"); $(".js-toggle-mobile-search-open").click(function(e){ e.preventDefault; $mobile_search_input.focus(); }); $(".js-search-back").click(function(e){ $(".js-search-suggest").hide(); $mobile_search_input.val(''); $search_backdrop.removeClass("move-up").addClass("move-down"); $page_main_content.removeClass("move-up").addClass("move-down"); setTimeout(function() { $page_main_content.removeClass("move-down"); }, 200); }); $mobile_search_input.keyup(function(){ $delete_search.show(); }); $mobile_search_input.focusout(function(){ var val = $mobile_search_input.val(); if(val == ''){ $delete_search.hide(); }else{ $delete_search.show(); } }); $delete_search.click(function(e){ e.preventDefault(); $(this).hide(); $mobile_search_input.val('').focus(); $search_suggest.hide(); }); $top_nav.addClass("move-down").removeClass("move-up"); $mobile_categories_btn.click(function (e) { e.preventDefault(); $("body").toggleClass("overflow-none mobile-categories-visible"); if ($mobile_categories_btn.hasClass("selected")) { $mobile_categories_btn.removeClass("selected"); $(".js-current-page").addClass("selected"); } else { $mobile_categories_btn.addClass("selected"); $(".js-current-page").removeClass("selected"); } $main_categories_mobile_container.toggle(); if ($top_nav.hasClass("move-up")) { $main_categories_mobile_container.toggleClass("move-list-up"); } }); $(".js-open-mobile-subcategory").click(function (e) { e.preventDefault(); var $this = $(this); var this_link_id_val = $this.data("target"); var $subcategories_panel_to_be_visible = $this.closest($main_categories_mobile_container).find("#" + this_link_id_val); $subcategories_panel_to_be_visible.detach().insertAfter(".js-categories-mobile-container > .js-mobile-nav-subcategories-panel:last-child"); $subcategories_panel_to_be_visible.addClass("modal-xs-right-out").show(); setTimeout(function () { $subcategories_panel_to_be_visible.toggleClass("modal-xs-right-in modal-xs-right-out"); }, 100); }); $(".js-go-back-mobile-categories").click(function (e) { e.preventDefault(); var $this = $(this); var $subcategories_panel_to_be_closed = $this.closest(".js-mobile-nav-subcategories-panel"); $(".js-mobile-nav-subcategories-panel").scrollTop(0); $subcategories_panel_to_be_closed.toggleClass("modal-xs-right-in modal-xs-right-out"); setTimeout(function () { $subcategories_panel_to_be_closed.removeClass("modal-xs-right-out").hide(); }, 300); }); $(".js-toggle-page-accordion").click(function (e) { e.preventDefault(); $(this).toggleClass("selected").closest(".js-hamburger-panel-toggle-accordion").next(".js-pages-accordion").slideToggle(300); }); var didScroll; var lastScrollTop = 0; var delta = 30; var logoHeight = $(".js-logo-container").outerHeight(); var adBarHeight = $(".js-section-advertising").outerHeight(); var navbarHeight = $('.js-mobile-nav').outerHeight(); var $category_controls = $(".js-category-controls"); var categoryBannerHeight = $('.js-category-banner').outerHeight(); var categoryBreadcrumbsTitleHeight = $('.js-breadcrumbs-title-container').outerHeight(); var moveNavOffset = logoHeight + navbarHeight + categoryBannerHeight + categoryBreadcrumbsTitleHeight + adBarHeight; $(window).scroll(function(event){ didScroll = true; }); setInterval(function() { if (didScroll) { hasScrolled(); didScroll = false; } }, 250); function hasScrolled() { var st = $(this).scrollTop(); // Make sure they scroll more than delta if(Math.abs(lastScrollTop - st) <= delta) return; // If they scrolled down and are past the navbar, add class .move-up. if (st > lastScrollTop && st > moveNavOffset){ // Scroll Down if(!$("body").hasClass("mobile-categories-visible")){ $top_nav.addClass("move-up").removeClass("move-down"); $category_controls.addClass("move-up").removeClass("move-down"); } $(".backdrop").addClass("move-up").removeClass("move-down"); } else { // Scroll Up if(st + $(window).height() < $(document).height()) { if(!$("body").hasClass("mobile-categories-visible")){ $top_nav.removeClass("move-up").addClass("move-down"); $category_controls.removeClass("move-up").addClass("move-down"); } $(".backdrop").removeClass("move-up").addClass("move-down"); } } lastScrollTop = st; } LS.search($(".js-search-input"), function(html, count){ $search_suggests = $(this).closest(".js-search-container").next(".js-search-suggest"); if(count > 0){ $search_suggests.html(html).show(); }else{ $search_suggests.hide(); } }, { snipplet: 'search-results.tpl' }); $("body").click(function() { $(".js-search-suggest").hide(); }) $(".js-search-suggest").on("click", ".js-search-suggest-all-link", function(e){ e.preventDefault(); $this_closest_form = $(this).closest(".js-search-suggest").prev(".js-search-container").find(".js-search-form"); $this_closest_form.submit(); }); LS.newsletter_avoid_siteblindado_bot(); window.homeSlider = { getSliderConfiguration: function() { return { //JS For home slider Preloader - hides the images until loaded onSliderLoad: function(){ $(".js-home-slider-preloader, .js-home-slider-placeholder, .js-slider-desktop-placeholder").hide(); $(".js-home-slider-container .bx-controls-direction, .js-home-slider-container .bx-pager").show(); $(".js-hidden-slide-element").removeAttr("style"); }, pause: 5000, autoHover: true, adaptiveHeight: false, nextText: '', prevText: '', }; }, getAutoRotation: function() { return true; }, create: function() { var config = this.getSliderConfiguration(); config.auto = this.getAutoRotation() && this.get$Element().children().size() > 1; this._instance = this.get$Element().bxSlider(config); return this; }, getInstance: function() { return this._instance; }, get$Element: function() { return $('.js-home-slider'); }, get$Wrapper: function() { return $('.js-home-slider-container'); } }; window.homeSlider.create(); var $banner_services_slider = $('.js-mobile-services'); var has_more_than_one_banner_service = $banner_services_slider.find('.js-service-item').length / $banner_services_slider.length > 1; $banner_services_slider.bxSlider({ // When only one element, don't spin. It's 3 because there is always two more elements to achieve the sliding effect. auto: false, touchEnabled: has_more_than_one_banner_service, controls: false, adaptiveHeight: false, onSliderLoad: function () { $banner_services_slider.css("visibility", "visible"); $(".js-mobile-services-container .bx-has-pager").css("visibility", "visible"); $(".js-services-placeholder").hide(); $(".js-mobile-services").css({"visibility" : "visible", "height" : "auto"}); } }); if (!has_more_than_one_banner_service) { $(".js-mobile-services-container .bx-has-pager").hide(); } $('.js-home-slider .bx-pager').remove(); $('.js-sort-by').change(function(){ var params = LS.urlParams; params['sort_by'] = $(this).val(); var sort_params_array = []; for (var key in params) { if ($.inArray(key, ['results_only', 'page']) == -1) { sort_params_array.push(key + '=' + params[key]); } } var sort_params = sort_params_array.join('&'); window.location = window.location.pathname + '?' + sort_params; }); $(".js-toggle-mobile-filters").click(function (e) { e.preventDefault(); $(".js-mobile-filters-panel").toggleClass("modal-xs-right-in modal-xs-right-out"); $("body").toggleClass("overflow-none"); }); $(document).on("click", ".js-apply-filter, .js-remove-filter", function(e) { e.preventDefault(); var filter_name = $(this).data('filter-name'); var filter_value = $(this).data('filter-value'); if($(this).hasClass("js-apply-filter")){ $(this).find("[type=checkbox]").prop("checked", true); LS.urlAddParam( filter_name, filter_value, true ); }else{ $(this).find("[type=checkbox]").prop("checked", false); LS.urlRemoveParam( filter_name, filter_value ); } if ($(this).hasClass("js-filter-checkbox")){ if ($(window).width() < 768) { $(".js-filters-overlay").show(); if($(this).hasClass("js-apply-filter")){ $(".js-applying-filter").show(); }else{ $(".js-removing-filter").show(); } } $(this).toggleClass("js-apply-filter js-remove-filter"); } }); $(document).on("click", ".js-remove-all-filters", function(e) { e.preventDefault(); LS.urlRemoveAllParams(); }); LS.ready.then(function() { LS.showWhiteListedFilters("[]"); }); var mobile_nav_height = $(".js-mobile-nav").outerHeight(); var $category_controls = $(".js-category-controls"); if ($(window).width() < 768) { $(".js-category-controls").css("top" , mobile_nav_height); var observer = new IntersectionObserver(function(entries) { if(entries[0].intersectionRatio === 0) document.querySelector(".js-category-controls").classList.add("is-sticky"); else if(entries[0].intersectionRatio === 1) document.querySelector(".js-category-controls").classList.remove("is-sticky"); }, { threshold: [0,1] }); observer.observe(document.querySelector(".js-category-controls-prev")); } var categoriesList = $(".js-category-sidebar-item"); var categoriesAmount = 5; if (categoriesList.length > categoriesAmount) { $("#show-more-categories").show(); for (i = categoriesAmount; i < categoriesList.length; i++) { $(categoriesList[i]).hide(); } } $("#show-more-categories").click(function(e){ e.preventDefault(); for (i = categoriesAmount; i < categoriesList.length; i++) { $(categoriesList[i]).toggle(); } $(this).find(".js-categories-sidebar-icon").toggle(); }); $(function() { LS.hybridScroll({ productGridSelector: '.js-product-table', spinnerSelector: '#js-infinite-scroll-spinner', loadMoreButtonSelector: '.js-load-more-btn', hideWhileScrollingSelector: ".js-hide-footer-while-scrolling", productsBeforeLoadMoreButton: 50, productsPerPage: 20 }); }); function get_max_installments_without_interests(number_of_installment, installment_data, max_installments_without_interests) { if (parseInt(number_of_installment) > parseInt(max_installments_without_interests[0])) { if (installment_data.without_interests) { return [number_of_installment, installment_data.installment_value.toFixed(2)]; } } return max_installments_without_interests; } function get_max_installments_with_interests(number_of_installment, installment_data, max_installments_with_interests) { if (parseInt(number_of_installment) > parseInt(max_installments_with_interests[0])) { if (installment_data.without_interests == false) { return [number_of_installment, installment_data.installment_value.toFixed(2)]; } } return max_installments_with_interests; } function refreshInstallmentv2(price){ $(".js-modal-installment-price" ).each(function( index ) { const installment = Number($(this).data('installment')); $(this).text(LS.currency.display_short + (price/installment).toLocaleString('de-DE', {maximumFractionDigits: 2, minimumFractionDigits: 2})); }); } function changeVariant(variant){ $(".js-product-detail .js-shipping-calculator-response").hide(); $("#shipping-variant-id").val(variant.id); var parent = $("body"); if (variant.element){ parent = $(variant.element); } var sku = parent.find('#sku'); if(sku.length) { sku.text(variant.sku).show(); } var installment_helper = function($element, amount, price){ $element.find('.js-installment-amount').text(amount); $element.find('.js-installment-price').attr("data-value", price); $element.find('.js-installment-price').text(LS.currency.display_short + parseFloat(price).toLocaleString('de-DE', { minimumFractionDigits: 2 })); if(variant.price_short && Math.abs(variant.price_number - price * amount) < 1) { $element.find('.js-installment-total-price').text((variant.price_short).toLocaleString('de-DE', { minimumFractionDigits: 2 })); } else { $element.find('.js-installment-total-price').text(LS.currency.display_short + (price * amount).toLocaleString('de-DE', { minimumFractionDigits: 2 })); } }; if (variant.installments_data) { var variant_installments = JSON.parse(variant.installments_data); var max_installments_without_interests = [0,0]; var max_installments_with_interests = [0,0]; $.each(variant_installments, function(payment_method, installments) { $.each(installments, function(number_of_installment, installment_data) { max_installments_without_interests = get_max_installments_without_interests(number_of_installment, installment_data, max_installments_without_interests); max_installments_with_interests = get_max_installments_with_interests(number_of_installment, installment_data, max_installments_with_interests); var installment_container_selector = '#installment_' + payment_method + '_' + number_of_installment; if(!parent.hasClass("js-quickshop-container")){ installment_helper($(installment_container_selector), number_of_installment, installment_data.installment_value.toFixed(2)); } }); }); var $installments_container = $(variant.element + ' .js-max-installments-container .js-max-installments'); var $installments_modal_link = $(variant.element + ' #btn-installments'); var $payments_module = $(variant.element + ' .js-product-payments-container'); var $installmens_card_icon = $(variant.element + ' .js-installments-credit-card-icon'); var installments_to_use = max_installments_without_interests[0] > 1 ? max_installments_without_interests : max_installments_with_interests; if(installments_to_use[0] <= 1 ) { $installments_container.hide(); $installments_modal_link.hide(); $payments_module.hide(); $installmens_card_icon.hide(); } else { $installments_container.show(); $installments_modal_link.show(); $payments_module.show(); $installmens_card_icon.show(); installment_helper($installments_container, installments_to_use[0], installments_to_use[1]); } } if(!parent.hasClass("js-quickshop-container")){ $('#installments-modal .js-installments-one-payment').text(variant.price_short).attr("data-value", variant.price_number); } if (variant.price_short){ parent.find('.js-price-display').text(variant.price_short).show(); parent.find('.js-price-display').attr("content", variant.price_number); } else { parent.find('.js-price-display').hide(); } if ((variant.compare_at_price_short) && !(parent.find(".js-price-display").css("display") == "none")) { parent.find('.js-compare-price-display').text(variant.compare_at_price_short).show(); } else { parent.find('.js-compare-price-display').hide(); } var button = parent.find('.js-addtocart:not(.js-addtocart-placeholder)'); button.removeClass('cart').removeClass('contact').removeClass('nostock'); var $product_shipping_calculator = parent.find("#product-shipping-container"); if (!variant.available){ button.val('Sin stock'); button.addClass('nostock'); button.attr('disabled', 'disabled'); $product_shipping_calculator.hide(); } else if (variant.contact) { button.val('Consultar precio'); button.addClass('contact'); button.removeAttr('disabled'); $product_shipping_calculator.hide(); } else { button.val('Agregar al carrito +'); button.addClass('cart'); button.removeAttr('disabled'); $product_shipping_calculator.show(); } LS.updateShippingProduct(); zipcode_on_changevariant = $("#product-shipping-container .js-shipping-input").val(); $("#product-shipping-container .js-shipping-calculator-current-zip").text(zipcode_on_changevariant); } $(document).on("change", ".js-variation-option", function(e) { var $parent = $(this).closest(".js-product-variants"); var quick_id = $(this).closest(".js-quickshop-modal").attr("id"); if($parent.hasClass("js-product-quickshop-variants")){ LS.changeVariant(changeVariant,'#' + quick_id + ' .js-product-container'); } else { LS.changeVariant(changeVariant, '#prod-page'); } var $this_compare_price = $(this).closest(".js-product-container").find(".js-compare-price-display"); var $this_price = $(this).closest(".js-product-container").find(".js-price-display"); var $installment_container = $(this).closest(".js-product-container").find(".js-product-payments-container"); var $installment_text = $(this).closest(".js-product-container").find(".js-max-installments-container"); var $this_product_container = $(this).closest(".js-product-container"); var $this_add_to_cart = $(this).closest(".js-product-container").find(".js-prod-submit-form"); // Get the current product discount percentage value var current_percentage_value = $this_product_container.find(".js-offer-percentage"); // Get the current product price and promotional price var compare_price_value = $this_compare_price.html(); var price_value = $this_price.html(); // Filter prices to only have numbers old_price_value_filtered = parseInt(compare_price_value.replace(/[^0-9]/gi, ''), 10)/100; current_price_value_filtered = parseInt(price_value.replace(/[^0-9]/gi, ''), 10)/100; // Calculate new discount percentage based on difference between filtered old and new prices price_difference = (old_price_value_filtered-current_price_value_filtered); updated_discount_percentage = Math.round(((price_difference*100)/old_price_value_filtered)); $this_product_container.find(".js-offer-percentage").html(updated_discount_percentage); if ($this_compare_price.css("display") == "none") { $this_product_container.find(".js-offer-label").hide(); } else { $this_product_container.find(".js-offer-label").show(); } if ($this_compare_price.hasClass('js-promotional-offer')){ $this_product_container.find(".js-offer-label").show(); } if ($this_add_to_cart.hasClass("nostock")) { $this_product_container.find(".js-stock-label").show(); } else { $this_product_container.find(".js-stock-label").hide(); } if ($this_price.css('display') == 'none'){ $installment_container.hide(); $installment_text.hide(); }else{ $installment_text.show(); } }); $(document).on("click", ".js-insta-variant", function(e) { e.preventDefault(); $this = $(this); $this.siblings().removeClass("selected"); $this.addClass("selected"); var option_id = $this.data('option'); $selected_option = $this.closest('.js-product-variants').find('.js-variation-option option').filter(function() { return this.value == option_id; }); $selected_option.prop('selected', true).trigger('change'); $this.closest("[class^='variation']").find('.js-insta-variation-label').html(option_id); }); LS.registerOnChangeVariant(function(variant){ var current_image = $('img', '#quick'+variant.product_id); current_image.attr('src', variant.image_url); });	$(".js-product-form").submit(function(e){ var button = $(this).find(':submit'); button.attr('disabled', 'disabled'); if ((button.hasClass('contact')) || (button.hasClass('catalog'))){ e.preventDefault(); var product_id = $(this).find("input[name='add_to_cart']").val(); window.location = "\x2Fcontacto\x2F?product=" + product_id; } else if (button.hasClass('cart')) { button.val('Agregando...'); } }); $(document).on("keypress", ".js-cart-quantity-input", function (e) { if (e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57)) { return false; } }); $(document).on("focusout", ".js-cart-quantity-input", function (e) { $(".js-shipping-calculator-response").hide().empty(); $(".js-go-checkout-btn").prop("disabled", true); var itemID = $(this).attr("data-item-id"); var itemVAL = $(this).val(); if (itemVAL == 0) { var r = confirm("¿Seguro que quieres borrar este artículo?"); if (r == true) { LS.removeItem(itemID, true); } else { $(this).val(1); } } else { LS.changeQuantity(itemID, itemVAL, true); } }); $(".js-trigger-empty-cart-alert").click(function(e){ e.preventDefault(); $(".js-mobile-nav-empty-cart-alert").fadeIn(100).delay(1500).fadeOut(500); }); $(".js-hide-alert").click(function(e){ e.preventDefault(); $(this).closest(".alert").hide(); }) $(document).on("click", ".js-addtocart:not(.js-addtocart-placeholder)", function (e) { var $productContainer = $(this).closest('.js-product-container'); var $productVariants = $productContainer.find(".js-variation-option"); var $productButton = $productContainer.find("input[type='submit'].js-addtocart"); var $productButtonPlaceholder = $productContainer.find(".js-addtocart-placeholder"); var $productButtonText = $productButtonPlaceholder.find(".js-addtocart-text"); var $productButtonAdding = $productButtonPlaceholder.find(".js-addtocart-adding"); var $productButtonSuccess = $productButtonPlaceholder.find(".js-addtocart-success"); var productButttonHeight = $productButton.height(); var isQuickShop = $productContainer.hasClass('js-quickshop-container'); if (!isQuickShop) { if($(".js-product-slide-img.js-active-variant").length) { var imageSrc = $($productContainer.find('.js-product-slide-img.js-active-variant')[0]).data('srcset').split(' ')[0]; } else { var imageSrc = $($productContainer.find('.js-product-featured-image .js-product-slide-img')[0]).data('srcset').split(' ')[0]; } var quantity = 1; var name = $('#product-name').text(); var price = $productContainer.find('.js-price-display').text(); } else { var imageSrc = $(this).closest('.js-quickshop-container').find('img').data('src').split(' ')[0]; var quantity = $productContainer.find('.js-quantity-input').val(); var name = $productContainer.find('.js-quickshop-name').text(); var price = $productContainer.find('.js-price-display').text().trim(); } if (!$(this).hasClass('contact')) { $productButton.hide(); $productButtonPlaceholder.show(); $productButtonPlaceholder.height(productButttonHeight); $productButtonText.removeClass("active"); $productButtonAdding.addClass("active"); } }); selectAndSaveShippingOption = function(elem){ $(".js-shipping-method, .js-branch-method").removeClass('js-selected-shipping-method'); $(elem).addClass('js-selected-shipping-method'); LS.saveCalculatedShipping(true); if($(elem).hasClass("js-shipping-method-hidden")){ if($(elem).hasClass("js-pickup-option")){ $(".js-other-pickup-options, .js-show-other-pickup-options .js-shipping-see-less").show(); $(".js-show-other-pickup-options .js-shipping-see-more").hide(); }else{ $(".js-other-shipping-options, .js-show-more-shipping-options .js-shipping-see-less").show(); $(".js-show-more-shipping-options .js-shipping-see-more").hide() } } }; if (!!$.cookie('calculator_zipcode')) { var zipcode_from_cookie = $.cookie("calculator_zipcode"); $('.js-shipping-input').val(zipcode_from_cookie); $(".js-shipping-calculator-current-zip").text(zipcode_from_cookie); $(".js-shipping-calculator-head").addClass("with-zip").removeClass("with-form"); $(".js-shipping-calculator-with-zipcode").addClass("transition-up-active"); $(".js-shipping-calculator-spinner").show(); } else { $(".js-shipping-calculator-form").addClass("transition-up-active"); } removeShippingSuboptions = function(){ var shipping_suboptions_id = $(".js-modal-shipping-suboptions").attr("id"); $("#" + shipping_suboptions_id).remove(); $('.js-modal-overlay[data-modal-id="#' + shipping_suboptions_id + '"').remove(); }; $(document).on("click", ".js-toggle-branches", function (e) { e.preventDefault(); $(".js-store-branches-container").slideToggle("fast"); $(".js-see-branches, .js-hide-branches").toggle(); }); $(document).on("change", ".js-shipping-method, .js-branch-method", function () { selectAndSaveShippingOption(this); $(".js-shipping-method-unavailable").hide(); }); $('.js-shipping-method:checked').livequery(function () { let shippingPrice = $(this).attr("data-price"); LS.addToTotal(shippingPrice); selectAndSaveShippingOption(this); }); $(".js-shipping-input").keydown(function(e) { var key = e.which ? e.which : e.keyCode; var enterKey = 13; if (key === enterKey) { e.preventDefault(); $(this).parent().find(".js-calculate-shipping").click(); $(this).blur(); } }); $(".js-calculate-shipping").click(function(e) { e.preventDefault(); let shipping_input_val = $(this).closest(".js-shipping-calculator-form").find(".js-shipping-input").val(); $(".js-shipping-input").val(shipping_input_val); if ($(".js-cart-item").length) { LS.calculateShippingAjax( $('#cart-shipping-container').find(".js-shipping-input").val(), '\x2Fenvio\x2F', $("#cart-shipping-container").closest(".js-shipping-calculator-container") ); } $(".js-shipping-calculator-current-zip").html(shipping_input_val); removeShippingSuboptions(); }); $(document).on("click", ".js-toggle-more-shipping-options", function(e) { e.preventDefault(); if($(this).hasClass("js-show-other-pickup-options")){ $(".js-other-pickup-options").slideToggle(600); $(".js-show-other-pickup-options .js-shipping-see-less, .js-show-other-pickup-options .js-shipping-see-more").toggle(); }else{ $(".js-other-shipping-options").slideToggle(600); $(".js-show-more-shipping-options .js-shipping-see-less, .js-show-more-shipping-options .js-shipping-see-more").toggle(); } }); calculateCartShippingOnLoad = function(){ if($("#cart-shipping-container .js-shipping-input").val()){ // If user already had calculated shipping: recalculate shipping setTimeout(function() { LS.calculateShippingAjax( $('#cart-shipping-container').find(".js-shipping-input").val(), '\x2Fenvio\x2F', $("#cart-shipping-container").closest(".js-shipping-calculator-container") ); removeShippingSuboptions(); }, 100); } if($(".js-branch-method").hasClass('js-selected-shipping-method')){ // Trigger function only for free pickup stores LS.saveCalculatedShipping(false); } }; $(document).on("click", ".js-shipping-calculator-change-zipcode", function(e) { e.preventDefault(); $(".js-shipping-calculator-response").fadeOut(100); $(".js-shipping-calculator-head").addClass("with-form").removeClass("with-zip"); $(".js-shipping-calculator-with-zipcode").removeClass("transition-up-active"); $(".js-shipping-calculator-form").addClass("transition-up-active"); }); $('img[src*="www.afip.gob.ar"]').attr('alt', 'Logo de AFIP'); }); }); });