M-05 GOLF TAMIYA KIT PARA ARMAR - Comprar en roboticarc
Inicio > Touring Car Kits > M-05 GOLF TAMIYA KIT PARA ARMAR
M-05 GOLF TAMIYA KIT PARA ARMAR
18 meses de $316.68 Ver más detalles
1 mensualidad de $4,500.00 sin intereses $4,500.00
3 cuotas de $1,589.85 $4,769.55
6 cuotas de $823.05 $4,938.30
9 cuotas de $569.60 $5,126.40
12 cuotas de $444.56 $5,334.75
18 cuotas de $316.68 $5,700.15
Total:$4,500.00
Tamiya Volkswagen Golf Mk.1 Racing Group 2 (M-05).
Este kit de ensamblaje de modelo R / C muestra el sorprendente Grupo 2 VW Golf patrocinado por Kamei, que tuvo un gran impacto en las carreras de turismos de los años 70. El cuerpo de policarbonato captura con precisión la forma de las carreras de golf, con amplios guardabarros delanteros y un alerón delantero deportivo. Se incluyen pegatinas para recrear logotipos de patrocinadores, números, etc.
**Espicificaciones:
● Longitud: 329 mm, Ancho: 175 mm, Altura: 120 mm ● Distancia entre ejes: 210 mm ● Pisada (delantera y trasera): 138 mm ● Anchura / Diámetro de la llanta (delantera y trasera): 25/55 mm ● Marco monocasco ● Engranaje diferencial de 3 biseles ● Delantero -Wheel 2WD ● Barra de acoplamiento de dirección de 3 piezas ● Suspensión de doble horquilla de 4 ruedas ● Amortiguadores de fricción delanteros y traseros ● Relación de engranajes = 5.8: 1 ● Tipo 540 ● Requiere un controlador electrónico de velocidad (se vende por separado)
**Se requiere por separado: Sistema R / C de 2 canales con ESC, Baterías R6 / AA / UM3 para el transmisor , Paquete de baterías y cargador.
Porsche TAMIYA 911
$7,500.00 $0.00
18 meses de $527.79
TAMIYA VW BEETLE
"))&&h.css("position",a.css("position"));x=function(){var d,f,e;if(!G&&(I=A.height(),d=parseInt(g.css("border-top-width"),10),f=parseInt(g.css("padding-top"),10),b=parseInt(g.css("padding-bottom"),10),n=g.offset().top+d+f,C=g.height(),m&&(v=m=!1,null==p&&(a.insertAfter(h),h.detach()),a.css({position:"",top:"",width:"",bottom:""}).removeClass(t),e=!0),F=a.offset().top-(parseInt(a.css("margin-top"),10)||0)-q,u=a.outerHeight(!0),r=a.css("float"),h&&h.css({width:L(a), height:u,display:a.css("display"),"vertical-align":a.css("vertical-align"),"float":r}),e))return l()};x();if(u!==C)return D=void 0,d=q,z=E,l=function(){var c,l,e,k;if(!G&&(e=!1,null!=z&&(--z,0>=z&&(z=E,x(),e=!0)),e||A.height()===I||x(),e=f.scrollTop(),null!=D&&(l=e-D),D=e,m?(w&&(k=e+u+d>C+n,v&&!k&&(v=!1,a.css({position:"fixed",bottom:"",top:d}).trigger("sticky_kit:unbottom"))),ec&&!v&&(d-=l,d=Math.max(c-u,d),d=Math.min(q,d),m&&a.css({top:d+"px"})))):e>F&&(m=!0,c={position:"fixed",top:d},c.width="border-box"===a.css("box-sizing")?a.outerWidth()+"px":a.width()+"px",a.css(c).addClass(t),null==p&&(a.after(h),"left"!==r&&"right"!==r||h.append(a)),a.trigger("sticky_kit:stick")),m&&w&&(null==k&&(k=e+u+d>C+n),!v&&k)))return v=!0,"static"===g.css("position")&&g.css({position:"relative"}),a.css({position:"absolute",bottom:b,top:"auto"}).trigger("sticky_kit:bottom")}, y=function(){x();return l()},H=function(){G=!0;f.off("touchmove",l);f.off("scroll",l);f.off("resize",y);c(document.body).off("sticky_kit:recalc",y);a.off("sticky_kit:detach",H);a.removeData("sticky_kit");a.css({position:"",bottom:"",top:"",width:""});g.position("position","");if(m)return null==p&&("left"!==r&&"right"!==r||a.insertAfter(h),h.remove()),a.removeClass(t)},f.on("touchmove",l),f.on("scroll",l),f.on("resize",y),c(document.body).on("sticky_kit:recalc",y),a.on("sticky_kit:detach",H),setTimeout(l, 0)}};n=0;for(K=this.length;n 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-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); }); $(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").slideToggle(); }); if ($(window).width() < 768) { 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) { if($(".js-fullscreen-modal").hasClass("modal-show")){ var $opened_modal = $(".js-fullscreen-modal.modal-show"); var $opened_modal_overlay = $opened_modal.prev(); $opened_modal.removeClass("modal-show").delay(500).hide(0); $opened_modal_overlay.fadeOut(500); } } } } $(document).on("click", ".js-modal-open", function(e) { e.preventDefault(); var modal_id = $(this).data('toggle'); var $overlay_id = $('.js-modal-overlay[data-modal-id="' + modal_id + '"]'); if ($(modal_id).hasClass("modal-show")) { $(modal_id).removeClass("modal-show").delay(500).hide(0); } else { if ($(modal_id).hasClass("modal-context-md") && $(window).width() > 768) { $(modal_id).show(0).addClass("modal-show"); } else { $overlay_id.fadeIn(400); $(modal_id).detach().appendTo("body"); $overlay_id.detach().insertBefore(modal_id); $(modal_id).show(0).addClass("modal-show"); } } }); $(document).on("click", ".js-modal-close", function(e) { e.preventDefault(); var $modal = $(this).closest(".js-modal"); var modal_id = $modal.attr('id'); var $overlay_id = $('.js-modal-overlay[data-modal-id="#' + modal_id + '"]'); $modal.removeClass("modal-show").delay(500).hide(0); $overlay_id.fadeOut(500); if (($(window).width() < 768) && ($(this).hasClass(".js-fullscreen-modal-close"))) { goBackBrowser(); } }); $(document).on("click", ".js-modal-overlay", function(e) { e.preventDefault(); var modal_id = $(this).data('modal-id'); $(modal_id).removeClass("modal-show").delay(500).hide(0); $(this).fadeOut(500); }); var $tab_open = $('.js-tab'); $tab_open.click(function (e) { e.preventDefault(); var $tab_container = $(this).closest(".js-tab-container"); $tab_container.find(".js-tab, .js-tab-panel").removeClass("active"); $(this).addClass("active"); var tab_to_show = $(this).find(".js-tab-link").attr("href"); $tab_container.find(tab_to_show).addClass("active"); }); $(".js-toggle").click(function(e){ e.preventDefault(); $(this).toggleClass("toggled").blur(); }); function applyOffset(selector, is_negative){ // Get nav height on load var head_height = $(".js-head-main").height(); // Apply offset nav height on load if(is_negative){ $(selector).css("margin-top", - head_height); $(window).resize(function() { // Get nav height on resize var head_height = $(".js-head-main").height(); // Apply offset on resize $(selector).css("margin-top", - head_height); }); }else{ $(selector).css("padding-top", head_height); $(window).resize(function() { // Get nav height on resize var head_height = $(".js-head-main").height(); // Apply offset on resize $(selector).css("padding-top", head_height); }); } } applyOffset(".js-head-offset", false); var $top_nav = $(".js-mobile-nav"); var $page_main_content = $(".js-main-content"); var $search_backdrop = $(".js-search-backdrop"); $top_nav.addClass("move-down").removeClass("move-up"); $(".js-toggle-page-accordion").click(function (e) { e.preventDefault(); $(this).toggleClass("selected").closest(".js-nav-list-toggle-accordion").next(".js-pages-accordion").slideToggle(300); }); 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(); } if ($(this).val().length == 0) { $search_suggests.hide(); } }, { snipplet: 'header/header-search-results.tpl' }); $(".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-form"); $this_closest_form.submit(); }); $("body").click(function () { $(".js-search-suggest").hide(); }) $('.js-lang-select').change(function () { var lang_select_val = $(this).val(); var $lang_container = $(this).closest(".js-languages"); $lang_container.find(".js-" + lang_select_val).get(0).click(); }); var relatedSwiper = new Swiper ('.js-swiper-related', { slidesPerView: 1, watchOverflow: true, threshold: 5, pagination: { el: '.js-swiper-related-pagination', clickable: true, }, navigation: { nextEl: '.js-swiper-related-next', prevEl: '.js-swiper-related-prev', }, breakpointsInverse: true, breakpoints: { 640: { slidesPerView: 4, } } }); $(document).on("click", ".js-item-buy-open", function(e) { e.preventDefault(); $(this).next('.js-item-variants').slideToggle(300).toggleClass("visible"); }); 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'); button.removeClass('cart').removeClass('contact').removeClass('nostock'); var $product_shipping_calculator = parent.find("#product-shipping-container"); if (!variant.available){ button.val('Agotado'); 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(); } const base_price = Number($("#price_display").attr("content")); refreshInstallmentv2(base_price); 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-container").attr("id"); if($parent.hasClass("js-product-quickshop-variants")){ LS.changeVariant(changeVariant, '#' + quick_id); } else { LS.changeVariant(changeVariant, '#single-product'); } 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").css("display" , "table"); } 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(); } }); $(".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...'); } }); function productSliderNav(){ var productSwiper = new Swiper ('.js-swiper-product', { lazy: true, loop: false, pagination: { el: '.js-swiper-product-pagination', type: 'fraction', clickable: true, }, navigation: { nextEl: '.js-swiper-product-next', prevEl: '.js-swiper-product-prev', }, on: { init: function () { $(".js-product-slider-placeholder").hide(); $(".js-swiper-product").css({"visibility" : "visible" , "height" : "auto"}); }, }, }); LS.registerOnChangeVariant(function(variant){ var liImage = $('.js-swiper-product').find("[data-image='"+variant.image+"']"); var selectedPosition = liImage.data('image-position'); var slideToGo = parseInt(selectedPosition); productSwiper.slideTo(slideToGo); $(".js-product-slide-img").removeClass("js-active-variant"); liImage.find(".js-product-slide-img").addClass("js-active-variant"); }); $(".js-product-thumb").click(function(e){ e.preventDefault(); var current_thumb_index = $(this).attr("data-slide-index"); var match_thumb_image = $('.js-swiper-product').find("[data-image-position='"+current_thumb_index+"']"); var selectedPosition = match_thumb_image.attr("data-image-position"); var slideToGo = parseInt(selectedPosition); productSwiper.slideTo(slideToGo); }); $().fancybox({ selector : '[data-fancybox="product-gallery"]', toolbar : false, smallBtn : true, beforeClose : function(instance) { // Update position of the slider productSwiper.slideTo( instance.currIndex, 0 ); } }); } if ( $(window).width() < 768 ) { productSliderNav () } else { $(".js-sticky-product").stick_in_parent({ offset_top : 100, recalc_every : 5, }); LS.registerOnChangeVariant(function(variant){ var liImage = $('.js-swiper-product').find("[data-image='"+variant.image+"']"); var selectedScroll = liImage.position.top; $('html, body').animate({ scrollTop: $(liImage).offset().top }, 1000); }); $(window).resize(function() { if ( $(window).width() < 768 ) { productSliderNav() } }); } $('.js-pinterest-share').click(function(e){ e.preventDefault(); $(".pinterest-hidden a")[0].click(); }); $('.js-quantity .js-quantity-up').on('click', function() { $quantity_input = $(this).closest(".js-quantity").find(".js-quantity-input"); $quantity_input.val( parseInt($quantity_input.val(), 10) + 1); }); $('.js-quantity .js-quantity-down').on('click', function() { $quantity_input = $(this).closest(".js-quantity").find(".js-quantity-input"); quantity_input_val = $quantity_input.val(); if (quantity_input_val>1) { $quantity_input.val( parseInt($quantity_input.val(), 10) - 1); } }); var head_height = $(".js-head-main").outerHeight(); var top_offset = 50; if ($(window).width() > 768) { $("#cart-sticky-summary").css("top" , head_height + top_offset); } $(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'); var price = $productContainer.find('.js-price-display').text(); 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-slide-img')[0]).data('srcset').split(' ')[0]; } var quantity = $('.js-quantity-input').val(); var name = $productContainer.find('.js-product-name').text(); } else { var imageSrc = $(this).closest('.js-item-image').find('img').data('srcset').split(' ')[0]; var quantity = 1; var name = $productContainer.find('.js-item-name').text(); } if (!$(this).hasClass('contact')) { e.preventDefault(); $productButton.hide(); $productButtonPlaceholder.show().addClass("active"); $productButtonPlaceholder.height(productButttonHeight); $productButtonText.fadeOut(); $productButtonAdding.addClass("active"); var callback_add_to_cart = function(){ $(".js-cart-widget-amount").addClass("beat"); setTimeout(function(){ $(".js-cart-widget-amount").removeClass("beat"); },4000); $('.js-cart-notification-item-img').attr('src', imageSrc); $('.js-cart-notification-item-name').text(name); $('.js-cart-notification-item-quantity').text(quantity); $('.js-cart-notification-item-price').text(price); if($productVariants.length){ var output = []; $productVariants.each( function(){ var variants = $(this); output.push(variants.val()); }); $(".js-cart-notification-item-variant-container").show(); $(".js-cart-notification-item-variant").text(output.join(', ')) }else{ $(".js-cart-notification-item-variant-container").hide(); } var cartItemsAmount = $(".js-cart-widget-amount").first().text(); if(cartItemsAmount > 1){ $(".js-cart-counts-plural").show(); $(".js-cart-counts-singular").hide(); }else{ $(".js-cart-counts-singular").show(); $(".js-cart-counts-plural").hide(); } $productButtonAdding.removeClass("active"); $productButtonSuccess.addClass("active"); setTimeout(function(){ $productButtonSuccess.removeClass("active"); setTimeout(function(){ $productButtonText.fadeIn(); },500); $productButtonPlaceholder.removeClass("active"); },2000); setTimeout(function(){ $productButtonPlaceholder.removeAttr("style").hide(); $productButton.show(); },4000); $productContainer.find(".js-added-to-cart-product-message").slideDown(); if ($(window).width() > 768) { $(".js-toggle-cart").click(); }else{ setTimeout(function(){ $(".js-alert-added-to-cart").show().addClass("notification-visible").removeClass("notification-hidden"); },500); if (typeof $.cookie('first_product_added_successfully') === 'undefined') { $.cookie('first_product_added_successfully', true, { path: '/', expires: 7 }); } else{ setTimeout(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); },8000); } } if ($("#product-shipping-container .js-shipping-input").val()) { zipcode_on_addtocart = $("#product-shipping-container .js-shipping-input").val(); $("#cart-shipping-container .js-shipping-input").val(zipcode_on_addtocart); $(".js-shipping-calculator-current-zip").text(zipcode_on_addtocart); } else 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); } } var callback_error = function(){ $productButtonPlaceholder.removeClass("active"); $productButtonText.fadeIn("active"); $productButtonAdding.removeClass("active"); $productButtonPlaceholder.hide(); $productButton.show(); } $prod_form = $(this).closest("form"); LS.addToCartEnhanced( $prod_form, 'Agregar al carrito', 'Agregando...', '¡Ups! No tenemos más stock de este producto para agregarlo al carrito.', false, callback_add_to_cart, callback_error ); } }); $(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("¿Realmente quieres borrar este producto?"); 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); }); $('form[action="\x2Fcomprar\x2F"]').submit(function() { $.removeCookie('first_product_added_successfully', { path: '/' }); }); if ($('.js-selected-shipping-method').length) { var shipping_cost = $('.js-selected-shipping-method').data("cost"); var $shippingCost = $("#shipping-cost"); $shippingCost.text(shipping_cost); $shippingCost.removeClass('opacity-40'); } selectAndSaveShippingOption = function(elem){ $(".js-shipping-method, .js-branch-method").removeClass('js-selected-shipping-method'); $(elem).addClass('js-selected-shipping-method'); var shipping_cost = $(elem).data("cost"); var shipping_price_clean = $(elem).data("price"); if(shipping_price_clean = 0.00){ var shipping_cost = '' } // Updates shipping (ship and pickup) cost on cart var $shippingCost = $("#shipping-cost"); $shippingCost.text(shipping_cost); $shippingCost.removeClass('opacity-40'); // TODO we need to clear the shipping cost if there is no selected option (white recalculating) 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"); $('#product-shipping-container .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(); }; $(".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); LS.calculateShippingAjax( $('#product-shipping-container').find(".js-shipping-input").val(), '\x2Fenvio\x2F', $("#product-shipping-container").closest(".js-shipping-calculator-container") ); 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(); }); $(".js-shipping-input").keydown(function (e) { var key = e.which ? e.which : e.keyCode; var enterKey = 13; if (key === enterKey) { e.preventDefault(); $(this).closest(".js-shipping-calculator-form").find(".js-calculate-shipping").click(); if ($(window).width() < 768) { $(this).blur(); } } }); $(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); }); $(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("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); } }; calculateCartShippingOnLoad(); if($('#product-shipping-container').find(".js-shipping-input").val()){ setTimeout(function() { LS.calculateShippingAjax( $('#product-shipping-container').find(".js-shipping-input").val(), '\x2Fenvio\x2F', $("#product-shipping-container").closest(".js-shipping-calculator-container") ); removeShippingSuboptions(); }, 100); } $(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"); }); $(".js-winnie-pooh-form").submit(function (e) { $(this).attr('action', ''); }); if ( window.location.pathname === "/product/example/" || window.location.pathname === "/br/product/example/" ) { document.title = "Producto\x20de\x20ejemplo"; $("#404").hide(); $("#product-example").show(); } else { $("#product-example").hide(); } }); });