Español Inglés
Debe introducir la palabra a buscar

También te gustará...

34,99€
34,99€
34,99€
24,99€
19,99€
19,99€
29,99€
29,99€
29,99€
15,99€
17,99€
17,99€
15,99€
17,99€
12,99€
17,99€
17,99€
29,99€
55,00€
55,00€
  • Pantalón Dear Mini Animales Toffe: Detalle1

Pantalón Dear Mini Animales Toffe

  • ( )
  • Marca: DEAR MINI
  • Pantalón largo de algodón Dear Mini con felpa dentro en color toffe con unas ilustraciones de animales en color negro.Lleva un cordón en la cintura para un mejor ajuste.Disponible desde la talla 3/6m hasta 4/5y.
Por favor, selecciona Talla

Talla

Por favor, selecciona Color
Por favor, selecciona 0
Seleccione una cantidad

Cantidad

Artículo seleccionado:
Pantalón Dear Mini Animales Toffe
Opciones de seleccion erronea

var numCartLine = -1; var originalAddButtonText = $('#submitAddCart').html(); var mensaje = ""; var nameColorN = ""; var NameSizeN =""; var NameClassificationN =""; // Declaramos e inicializamos las variables del IDColour e IDSize que devolveran los combobox var selectedSizeID = 0; var selectedColourID = 0; var selectedClassificationID = 0; var quantityN = 0; //document.getElementById('submitAddCart').disabled = true; $('#quantityNumber').text(" - Sin cantidad "); $('#ShowPriceDetail').hide(); // Ocultamos divs de muestreo de errores $('#ShowErrorSize').hide(); $('#ShowErrorColour').hide(); $('#ShowErrorClassification').hide(); $('#ShowErrorQuantity').hide(); var disableBuy = false; $('#PriceListErrorSelect').hide(); $('#submitAddCart').show(); if (!(originalImage)) { var originalImage = '/server/Portal_0000816/img/products/pantalon-dear-mini-animales-toffe_9162031.jpg'; } if ($('#principalimage').length>0) { originalImage = $('#principalimage').attr('src'); } var originalImageSize = ''; try { if (originalImage.match(/_xxl.jpg$/)) { originalImageSize = '_xxl'; } else if (originalImage.match(/_xl.jpg$/)) { originalImageSize = '_xl'; } else if (originalImage.match(/_g.jpg$/)) { originalImageSize = '_g'; } else if (originalImage.match(/_m.jpg$/)) { originalImageSize = '_m'; } else if (originalImage.match(/_n.jpg$/)) { originalImageSize = '_n'; } else if (originalImage.match(/_p.jpg$/)) { originalImageSize = '_p'; } } catch (err) { originalImageSize = ''; } function checkDiscount(before, after) { //if before > after if (before > after) { //show discount $('#money_1_noN').show(); $('#DiscountPercentN').show(); $('#PromoDiscountN').show(); if ($('#PromoDiscountN').text()) { $('#PromoDiscountN').show(); } else { $('#PromoDiscountN').hide(); } $('#txtBefore').show(); } else { // (if before >= after) //hide discount $('#money_1_noN').hide(); $('#DiscountPercentN').hide(); $('#PromoDiscountN').hide(); $('#txtBefore').hide(); } } function loadQuantity() { selectedColourID= 0; selectedClassificationID= 0; quantityN = $('#selectedQuantity').val(); if( quantityN > 0) { $('#HdQuantity').val(quantityN); $('#quantityNumber').text(" - Cantidad: " + quantityN); MoldearColores(false,'#Quantity_Description') $('#ShowErrorQuantity').hide(); //if ( selectedColourID>0 && selectedSizeID>0) //{ //document.getElementById('submitAddCart').disabled = false; //$('#submitAddCart').show(); //} var print = SelectPriceList(selectedColourID,selectedSizeID,selectedClassificationID); if(print == false) { cleanSelectError(); } else { cleanSelectCorrect(); } } else { $('#HdQuantity').val(0); $('#quantityNumber').text(" - Sin cantidad "); //document.getElementById('submitAddCart').disabled = true; //$('#submitAddCart').hide(); MoldearColores(true,'#Quantity_Description') $('#ShowErrorQuantity').show(); } } function genera_member(id, color, size, classification, importe, importeant, descuento, ahorro, moneda, managestock, hasstock, stock,stockState,referenceSKUN,importe_s,importeant_s,ahorro_s, freeshipping,free,descuento_timeleft,productcost,productcost_s,unitsbypack,min_quantity,max_quantity, infav,idstockdelivery,stockdelivery,delivery_date,delivery_css_class) { this.id = id; this.color = color; this.size = size; this.classification = classification; this.importe = importe; this.importe_s = importe_s; this.importeant = importeant; this.importeant_s = importeant_s; this.descuento = descuento; this.ahorro = ahorro; this.ahorro_s = ahorro_s; this.moneda = moneda; this.managestock = managestock; this.hasstock = hasstock; this.stock = stock; this.ShowPriceList=ShowPriceList; this.state_stock = stockState; this.idstockdelivery = idstockdelivery; this.stockdelivery = stockdelivery; this.reference = referenceSKUN; this.freeshipping = freeshipping; this.free = free; this.descuento_timeleft = descuento_timeleft; this.productcost = productcost; this.productcost_s = productcost_s; this.unitsbypack = unitsbypack; this.infav = infav; this.min_quantity = min_quantity; if (this.min_quantity <= 0) { this.min_quantity = 1; } this.max_quantity = max_quantity; if (this.min_quantity > this.max_quantity) { this.max_quantity = this.min_quantity + 100; } this.deliverydate = delivery_date; this.deliverycssclass = delivery_css_class; } function genera_member_tier(id,amount,amount_s,minquantity,percentsave,percentsave_s) { this.id = id; this.amount = amount; this.amount_s = amount_s; this.minquantity = minquantity; this.percentsave = percentsave; this.percentsave_s = percentsave_s; } // Declaramos la matriz var PriceList = new Array(3 ); // inicializamos la matriz var contProduct = 0; var contTier = 0; // control del valor menor de todas las coincidencias var initialAmount = 0; var initialAmountAnt = 0; var initialAmount_s = "0"; var initialAmountAnt_s = "0"; var AhorroNewInitial_s = "0"; var DescuentoTimeleftInitial_s = ""; var initialProductCost = 0; var initialProductCost_s = "0€"; var initialUnitsByPack = 0; var showTxtFrom = false; PriceList[contProduct] = new genera_member(0 , 'NT','NT','NT', 0,0,0,0,"€",true,true,100,"En stock","",false,false,"",0,'0€',0,1,1,false,721,'',new Date(Date.parse('')),''); PriceList[contProduct++].tiers = new Array(); PriceList[contProduct] = new genera_member(13139701 , 0, 2396, 0, parseFloat('23,47500000'.replace(/,/, '.')),parseFloat('46,9500'.replace(/,/, '.')),parseFloat('50,00'.replace(/,/, '.')),parseFloat('23,47500000'.replace(/,/, '.')),"€",true,true,1,"En stock","34-aw19","23,48€","46,95€","23,48€",false,false,"Quedan 152 día(s) 00h 32m",parseFloat('0'.replace(/,/, '.')),"0,0000€",1,1,101,false,721,'Entrega 24-48 horas',new Date(Date.parse('')),''); PriceList[contProduct].tiers = new Array(0 ); contProduct++; contTier = 0; if (initialAmount == 0) { initialAmount = parseFloat('23,47500000'.replace(/,/, '.')); initialAmount_s = '23,48€'; initialAmountAnt = parseFloat('46,9500'.replace(/,/, '.')); initialAmountAnt_s = '46,95€'; AhorroNewInitial_s = '23,48€'; DescuentoTimeleftInitial_s = 'Quedan 152 día(s) 00h 32m'; initialProductCost = parseFloat('0'.replace(/,/, '.')); initialProductCost_s = '0,0000€'; initialUnitsByPack = 1; showTxtFrom = false; } if ( parseFloat('23,47500000'.replace(/,/, '.')) < initialAmount) { initialAmount = parseFloat('23,47500000'.replace(/,/, '.')); initialAmount_s = '23,48€'; initialAmountAnt = parseFloat('46,9500'.replace(/,/, '.')); initialAmountAnt_s = '46,95€'; AhorroNewInitial_s = '23,48€'; DescuentoTimeleftInitial_s = 'Quedan 152 día(s) 00h 32m'; initialProductCost = parseFloat('0'.replace(/,/, '.')); initialProductCost_s = '0,0000€'; initialUnitsByPack = 1; showTxtFrom = false; } PriceList[contProduct] = new genera_member(13139703 , 0, 2398, 0, parseFloat('23,47500000'.replace(/,/, '.')),parseFloat('46,9500'.replace(/,/, '.')),parseFloat('50,00'.replace(/,/, '.')),parseFloat('23,47500000'.replace(/,/, '.')),"€",true,true,1,"En stock","34-aw19","23,48€","46,95€","23,48€",false,false,"Quedan 152 día(s) 00h 32m",parseFloat('0'.replace(/,/, '.')),"0,0000€",1,1,101,false,721,'Entrega 24-48 horas',new Date(Date.parse('')),''); PriceList[contProduct].tiers = new Array(0 ); contProduct++; contTier = 0; if (initialAmount == 0) { initialAmount = parseFloat('23,47500000'.replace(/,/, '.')); initialAmount_s = '23,48€'; initialAmountAnt = parseFloat('46,9500'.replace(/,/, '.')); initialAmountAnt_s = '46,95€'; AhorroNewInitial_s = '23,48€'; DescuentoTimeleftInitial_s = 'Quedan 152 día(s) 00h 32m'; initialProductCost = parseFloat('0'.replace(/,/, '.')); initialProductCost_s = '0,0000€'; initialUnitsByPack = 1; showTxtFrom = false; } if ( parseFloat('23,47500000'.replace(/,/, '.')) < initialAmount) { initialAmount = parseFloat('23,47500000'.replace(/,/, '.')); initialAmount_s = '23,48€'; initialAmountAnt = parseFloat('46,9500'.replace(/,/, '.')); initialAmountAnt_s = '46,95€'; AhorroNewInitial_s = '23,48€'; DescuentoTimeleftInitial_s = 'Quedan 152 día(s) 00h 32m'; initialProductCost = parseFloat('0'.replace(/,/, '.')); initialProductCost_s = '0,0000€'; initialUnitsByPack = 1; showTxtFrom = false; } PriceList[contProduct] = new genera_member(13365557 , 0, 52296, 0, parseFloat('0,00000000'.replace(/,/, '.')),parseFloat('0,0000'.replace(/,/, '.')),parseFloat('0'.replace(/,/, '.')),parseFloat('0,00000000'.replace(/,/, '.')),"€",true,false,0,"Sin stock","34-aw19","0,00€","","0,00€",false,false,"Quedan 152 día(s) 00h 32m",parseFloat('0'.replace(/,/, '.')),"0,0000€",0,1,101,false,721,'',new Date(Date.parse('')),''); PriceList[contProduct].tiers = new Array(0 ); contProduct++; contTier = 0; if (initialAmount == 0) { initialAmount = parseFloat('0,00000000'.replace(/,/, '.')); initialAmount_s = '0,00€'; initialAmountAnt = parseFloat('0,0000'.replace(/,/, '.')); initialAmountAnt_s = ''; AhorroNewInitial_s = '0,00€'; DescuentoTimeleftInitial_s = 'Quedan 152 día(s) 00h 32m'; initialProductCost = parseFloat('0'.replace(/,/, '.')); initialProductCost_s = '0,0000€'; initialUnitsByPack = 0; showTxtFrom = false; } if ( parseFloat('0,00000000'.replace(/,/, '.')) < initialAmount) { initialAmount = parseFloat('0,00000000'.replace(/,/, '.')); initialAmount_s = '0,00€'; initialAmountAnt = parseFloat('0,0000'.replace(/,/, '.')); initialAmountAnt_s = ''; AhorroNewInitial_s = '0,00€'; DescuentoTimeleftInitial_s = 'Quedan 152 día(s) 00h 32m'; initialProductCost = parseFloat('0'.replace(/,/, '.')); initialProductCost_s = '0,0000€'; initialUnitsByPack = 0; showTxtFrom = false; } CheckAmountError(); // Funcion que comprueba si los dos numeros de entrada suponen una coincidencia sobre la matriz en IDColour e IDSize function SelectPriceList(colourID,sizeID,classificationID) { var i=0 for(i=0; i 1 && this.unitsbypack != '') { $('#skuUnitsbyPackLine').show(); } else { $('#skuUnitsbyPackLine').hide(); } if (this.productcost > 0 && this.productcost_s != '') { $('#skuProductCostLine').show(); } else { $('#skuProductCostLine').hide(); } //comprobar si hay ahorro checkDiscount(ImporteantNew,ImporteNew); //comprobar si tiene tarifas por cantidad if ($('#tiersDiv').length>0 && this.tiers.length > 0) { $('#tiersDiv').html(''); for (var i=0;i < this.tiers.length;i++) { $('#tiersDiv').html($('#tiersDiv').html() + '

Compra ' + this.tiers[i].minquantity + ' ó más por ' + this.tiers[i].amount_s + ' cada uno y ahorra un ' + this.tiers[i].percentsave_s + '

'); } $('#tiersDiv').show(); } else { $('#tiersDiv').hide(); } $('#HDAcount').val(this.importe); $('#amountAntSku').text("Importe anterior "+this.importeant_s); $('#discountSku').text("Descuento "+this.descuento + "%"); $('#savingSku').text("Ahorro "+this.ahorro_s); $('#currencySku').text("Moneda "+this.moneda); //$('#stockSku').text("Stock "+this.stock); $('#hdSkuId').val(this.id); showSkuImages(this.id); //$('#stockStateSku').text("Estado del stock "+this.state_stock); if (this.reference != '') { $('#referenceSKU').text("Referencia "+this.reference); $('#HDReference').val(this.reference); $('#skuReference').text(this.reference); } else { $('#referenceSKU').text("Referencia 34-aw19"); $('#HDReference').val("34-aw19"); $('#skuReference').text("34-aw19"); } //cambiar estado del stock // $('#stockStateSku').text(this.state_stock); $('#stockStateSku').text(this.state_stock); $('#stockStateSku').removeClass("stock1"); $('#stockStateSku').removeClass("stock2"); $('#stockStateSku').removeClass("stock3"); if (this.hasstock == true) { quantityN = $('#selectedQuantity').val(); if (quantityN <= this.stock || this.managestock == false) { $('#deliveryLink').show(); $('#stockStateSku').addClass("stock1"); //$('#submitAddCart').show(); } else { $('#deliveryLink').show(); $('#stockStateSku').addClass("stock2"); $('#stockStateSku').text("Stock limitado"); //$('#submitAddCart').hide(); } } else { $('#deliveryLink').hide(); $('#stockStateSku').addClass("stock3"); //$('#submitAddCart').hide(); } } // Region de codigo que comprobara si alguno de los combobox recibiran un unico dato, en ese caso no se mostrara el combobox y cargaremos // la variable con el ID correspondiente con cada combobox if ($('#selectedQuantity').val() > 0) { quantityN = $('#selectedQuantity').val(); $('#quantityNumber').text(" - Cantidad: "+quantityN); } function SelectColor(idcolor,selected){ $('.selects ul.colors li').removeClass('selected'); $('#itemColor'+idcolor).addClass('selected'); if (selected) { $('#SelColours').val(idcolor); colourSelected(); } } // Funcion que dependiendo del valor del combobox de COLOUR, reiniciara el div de priceList mostrando los datos correctos function colourSelected() { selectedColourID = $('#SelColours').val(); nameColorN = $("#SelColours :selected").text(); if(selectedColourID == 0) { cleanSelectError(); $('#nameColourId').hide(); MoldearColores(true,'#Colour_Description'); $('#ShowErrorColour').show(); $('#txtFrom').show(); $('#txtBefore').hide(); } else { $('#txtFrom').hide(); $('#nameColourId').show(); $('#nameColourId').text(" - Color: "+nameColorN); var print = SelectPriceList(selectedColourID,selectedSizeID,selectedClassificationID); MoldearColores(false,'#Colour_Description') $('#ShowErrorColour').hide(); if(print == false) { cleanSelectError(); } else { cleanSelectCorrect(); } } } // Funcion que dependiendo del valor del combobox de SIZE, reiniciara el div de priceList mostrando los datos correctos function SizeSelected() { selectedSizeID = $('#SelSize').val(); NameSizeN = $("#SelSize :selected").text(); if(selectedSizeID == 0) { cleanSelectError(); $('#nameSizeID').hide(); MoldearColores(true,'#Size_Description') $('#ShowErrorSize').show(); $('#txtFrom').show(); $('#txtBefore').hide(); } else { $('#txtFrom').hide(); $('#nameSizeID').show(); $('#nameSizeID').text(" - Talla: " + NameSizeN); MoldearColores(false,'#Size_Description') $('#ShowErrorSize').hide(); var print = SelectPriceList(selectedColourID,selectedSizeID,selectedClassificationID); if(print == false) { cleanSelectError(); } else { cleanSelectCorrect(); } } } // Funcion que dependiendo del valor del combobox de CLASSIFICATION, reiniciara el div de priceList mostrando los datos correctos function ClassificationSelected() { selectedClassificationID = $('#SelClassification').val(); NameClassificationN = $("#SelClassification :selected").text(); if(selectedClassificationID == 0) { cleanSelectError(); $('#nameClassificationID').hide(); MoldearColores(true,'#Classification_Description') $('#ShowErrorClassification').show(); $('#txtFrom').show(); $('#txtBefore').hide(); } else { $('#txtFrom').hide(); $('#nameClassificationID').show(); $('#nameClassificationID').text(" - 0: " + NameSizeN); MoldearColores(false,'#Classification_Description') $('#ShowErrorClassification').hide(); var print = SelectPriceList(selectedColourID,selectedSizeID,selectedClassificationID); if(print == false) { cleanSelectError(); } else { cleanSelectCorrect(); } } } var numColours = 0; var numSizes = 3; var numClassifications = 0; // Funcion que sera llamada cuando necesitemos mostrar que ha habido un error entre la selecion de los combobox function cleanSelectError() { SelectPriceList(0,0,0); $('#ShowPriceDetail').hide(); $('#bodyPriceList').hide(); //$('#submitAddCart').hide(); $('#PriceListErrorSelect').show(); $('#PriceListErrorSelect').text("La combinación elegida no está disponible."); $('#hdSkuId').val(0); showSkuImages(0); // $('#submitAddCart').attr('disabled','true'); if(disableBuy == false) { // this.AddCart.submitAddCart.disabled=true; //document.getElementById('submitAddCart').disabled = true; CheckAmountError(); } } function CheckAmountError() { if (initialAmount > 0) { var flInitialAmount = initialAmount.toFixed(2); var flInitialAmountAnt = initialAmountAnt.toFixed(2); $('#ShowPriceDetail').show(); $('#money_1_noN').text(initialAmountAnt_s); $('#money_1_yesN').text(initialAmount_s); $('#txtFrom').show(); $('#txtBefore').hide(); // Control del ahorro y porcentaje var DescuentoNewInitial = 0; var AhorroNewInitial = 0; if (initialAmount < initialAmountAnt) { DescuentoNewInitial = 100 - ((initialAmount*100)/initialAmountAnt); AhorroNewInitial = initialAmountAnt - initialAmount; } $('#percentN').text('-' + DescuentoNewInitial.toFixed(2) + '%'); $('#saveN').text("Ahorra "+AhorroNewInitial_s); $('#PromoDiscountN').html(DescuentoTimeleftInitial_s); //Si no hay ahorro, se esconde el precio antiguo y el porcentaje checkDiscount(initialAmountAnt,initialAmount); $('#txtBefore').hide(); $('#skuProductCost').text(initialProductCost_s); $('#skuUnitsbyPack').text(initialUnitsByPack); if ('' != '') {$('#deliveryLink').text('()');} else {$('#deliveryLink').text('');} if (initialUnitsByPack > 1) { $('#skuUnitsbyPackLine').show(); } else { $('#skuUnitsbyPackLine').hide(); } if (initialProductCost > 0) { $('#skuProductCostLine').show(); } else { $('#skuProductCostLine').hide(); } $('#skuReference').text('34-aw19'); $('#skuReferenceLine').hide(); $('#deliveryLink').hide(); } } // Funcion que sera llamada cuando necesitemos mostrar que ha habido un error entre la selecion de los combobox function cleanSelectCorrect() { $('#bodyPriceList').show(); $('#PriceListErrorSelect').hide(); //$('#submitAddCart').show(); if(disableBuy == true || quantityN == 0) { //this.AddCart.submitAddCart.disabled=false; //document.getElementById('submitAddCart').disabled = true; } else { //document.getElementById('submitAddCart').disabled = false; } if(numSizes > 0) { $('#nameSizeID').text(" - Talla: " + NameSizeN); } if(numColours > 0) { $('#nameColourId').text(" - Color: "+nameColorN); } if(numClassifications > 0) { $('#nameClassificationId').text(" - 0: "+nameColorN); } } if (disableBuy == false) { // this.AddCart.submitAddCart.disabled=true; //document.getElementById('submitAddCart').disabled = true; } function AddGiftToCart(paramQuantity,paramFreeshipping,paramFree,paramRelatedIDSku) { //Recibe por parametros los datos necesarios para la llamada axaj que no se dispongan var ajaxGift = $.post("/process/process.aspx?action=send_NewShoppingCartService", { quantityFinal: paramQuantity, skuIDFinal: this.id, HDAcount : 0, selectedColourID : this.idcolor, selectedSizeID :this.idsize, selectedClassificationID :this.idclassification, nameColorN : this.color, NameSizeN : this.size, NameClassificationN : this.classification, colourNameClasif: this.namecolor, sizeNameClasif: this.namesize, classificationNameClasif: this.nameclassification, IDProduct: this.idproduct, IDPriceList: 801 , IDCatalog: 0 , reference: this.reference, IDCommerce: 0 , freeshipping: paramFreeshipping, free: paramFree, giftFromProduct: paramRelatedIDSku }, function (data) { //alert(data); var obj = jQuery.parseJSON(data); if (obj.status == "OK") { //this.added = true; eval('gift' + obj.IDProduct + 'Added = true;'); CheckAddedGifts(); } else { alert(obj.message); $('#submitAddCart').html(originalAddButtonText); } }).error(function () { alert(obj.message); $('#submitAddCart').html(originalAddButtonText); }); } function generate_gift(id, idproduct, idcolor, color, namecolor, idsize, size, namesize, idclassification, classification, nameclassification, reference) { this.id = id; this.idproduct = idproduct; this.idcolor = idcolor; this.color = color; this.namecolor = namecolor; this.idsize = idsize; this.size = size; this.namesize = namesize; this.idclassification = idclassification; this.classification = classification; this.nameclassification = nameclassification; this.reference = reference; this.AddToCart=AddGiftToCart; } // declaramos la matriz de regalos var GiftList = new Array(0); // inicializamos la matriz de regalos var contGift = 0; function SelectGift(idGift,quantity,freeShipping,free,idRelatedSku) { var selectedGift = false; var i=0 for(i=0; i 0) { sizeok = true; } selectedColourID= 0; colourok = true; selectedClassificationID= 0; classificationok = true; if (sizeok && colourok && classificationok) { ok = true; } if( ok && quantityN > 0) { if (SelectPriceList(selectedColourID,selectedSizeID,selectedClassificationID)) { // nos quedamos con la cantidad var prcList = GetPriceList(selectedColourID,selectedSizeID,selectedClassificationID); var quantityFinal = $('#selectedQuantity').val(); // nos quedamos con el sku insertado var skuIDFinal = $('#hdSkuId').val(); // nos quedamos con el nombre de la clasificacion de talla y color var colourNameClasif = "Color"; var sizeNameClasif = "Talla"; var classificationNameClasif = "0"; // nos quedamos con la referencia del producto var referenceN = $('#HDReference').val(); var IDPriceList = 801; var IDCatalog = 0; var IDCommerce = 0; // nos quedamos con el id del producto var IDProduct = 9162031 var ajax = $.post("/process/process.aspx?action=send_NewShoppingCartService&lng=es", { quantityFinal: quantityFinal, skuIDFinal: skuIDFinal, HDAcount : $('#HDAcount').val(), HDPrevAcount : prcList.importeant, selectedColourID : selectedColourID, selectedSizeID :selectedSizeID, selectedClassificationID :selectedClassificationID, nameColorN : nameColorN, NameSizeN : NameSizeN, NameClassificationN : NameClassificationN, colourNameClasif: colourNameClasif, sizeNameClasif: sizeNameClasif, classificationNameClasif: classificationNameClasif, IDProduct: IDProduct, IDPriceList: IDPriceList, IDCatalog: IDCatalog, reference: referenceN, IDCommerce: IDCommerce, freeshipping: prcList.freeshipping, free: prcList.free, giftFromProduct: 0 }, function (data) { var obj = jQuery.parseJSON(data); if (obj.status == "OK") { numCartLine = obj.NumCartLine; // Enviar regalos al carrito si tiene. Si no los tiene, redirigir a carrito travelUrl(); } else { alert(obj.message); } }); ajax.error(function () { alert(obj.message); return false; }); return true; } else { $('#PriceListErrorSelect').show(); $('#PriceListErrorSelect').text("La combinación elegida no está disponible."); if (onlyquantity) { selectedColourID = 'NT'; selectedSizeID = 'NT'; selectedClassificationID = 'NT'; } return false; } } else { $('#PriceListErrorSelect').show(); $('#PriceListErrorSelect').text("Selecciona las opciones indicadas."); if (onlyquantity) { selectedColourID = 'NT'; selectedSizeID = 'NT'; selectedClassificationID = 'NT'; } return false; } } // Funcion de navegacion correcta hacia el carrito function ControlarErroresSeleccion() { if (selectedSizeID == 0) { MoldearColores(true,'#Size_Description') $('#ShowErrorSize').show(); } else { MoldearColores(false,'#Size_Description') $('#ShowErrorSize').hide(); } if (quantityN == 0) { MoldearColores(true,'#Quantity_Description') $('#ShowErrorQuantity').show(); } else { MoldearColores(false,'#Quantity_Description') $('#ShowErrorQuantity').hide(); } } function MoldearColores(error,control) { if (error) { $(control).css('color', 'red'); } else { $(control).css('color', ''); } } // Funcion de navegacion correcta hacia el carrito function travelUrl() { var pagina = "/es/carrito.html" + "?sku="+ $('#hdSkuId').val()+"&ncl="+numCartLine; location.href = pagina; } var searchSKU = 0 if ( searchSKU > 0 ) { for (x = 0; x < PriceList.length; x++) { if (PriceList[x].id == searchSKU) { $("#SelColours").val(PriceList[x].color); $("#SelSize").val(PriceList[x].size); $("#SelClassification").val(PriceList[x].classification); } } } loadQuantity(); $('#PriceListErrorSelect').hide(); /*SKU Images*/ function showSkuImages(idsku) { $('.imageS .gallerysku').hide(); $('.imageS .galleryproduct').hide(); if (idsku > 0 && $('.imageS #gallerysku'+idsku).length>0 && $('.imageS #gallerysku'+idsku+' li').length>0) { $('.imageS #gallerysku'+idsku).show(); // poner primera imagen de coleccion como principal if ($('#principalimage').length>0 && $('.imageS #gallerysku'+idsku+' a').length>0) { var newPrincipalImage = $('.imageS #gallerysku'+idsku+' a').first().attr('href'); $('#principalimage').attr('src',newPrincipalImage.replace('.jpg',originalImageSize+'.jpg')); } else if ($('#principalimage').length>0) { $('#principalimage').attr('src',originalImage); } if ($('#principalimage').parent("a[rel='lightbox']").length>0 && $('.imageS #gallerysku'+idsku+' a').length>0) { var newPrincipalImage = $('.imageS #gallerysku'+idsku+' a').first().attr('href'); $('#principalimage').parent("a[rel='lightbox']").attr('href',newPrincipalImage.replace('.jpg',originalImageSize+'.jpg')); } else if ($('#principalimage').parent("a[rel='lightbox']").length>0) { $('#principalimage').parent("a[rel='lightbox']").attr('href',originalImage); } if ($('.see_more a').length>0 && $('.imageS #gallerysku'+idsku+' a').length>0) { var newPrincipalImage = $('.imageS #gallerysku'+idsku+' a').first().attr('href'); $('.see_more a').attr('href',newPrincipalImage); } else if ($('.see_more a').length>0) { $('.see_more a').attr('href',originalImage); } if ($('.zoomWrapperImage img').length>0 && $('.imageS #gallerysku'+idsku+' a').length>0) { var newPrincipalImage = $('.imageS #gallerysku'+idsku+' a').first().attr('href'); $('.zoomWrapperImage img').attr('src',newPrincipalImage.replace('.jpg',originalImageSize+'.jpg')); $('.imageS #gallerysku'+idsku+' li').first().hide(); } else if ($('.zoomWrapperImage img').length>0) { $('.zoomWrapperImage img').attr('src',originalImage); } if ($('#principalimagelink').length>0 && $('.imageS #gallerysku'+idsku+' a').length>0) { var newPrincipalImage = $('.imageS #gallerysku'+idsku+' a').first().attr('href'); $('#principalimagelink').attr('href',newPrincipalImage); } else if ($('#principalimagelink').length>0) { $('#principalimagelink').attr('href',originalImage); } if ($('.imageS #gallerysku'+idsku+' li').length>0) { $('.imageS #gallerysku'+idsku+' li').first().hide(); } } else { $('.imageS .galleryproduct').show(); //poner la imagen principal original if ($('#principalimage').length>0) { $('#principalimage').attr('src',originalImage); } if ($('#principalimage').parent("a[rel='lightbox']").length>0) { $('#principalimage').parent("a[rel='lightbox']").attr('href',originalImage.replace(originalImageSize+'.jpg','.jpg')); } if ($('.see_more a').length>0) { $('.see_more a').attr('href',originalImage.replace(originalImageSize+'.jpg','.jpg')); } if ($('.zoomWrapperImage img').length>0) { $('.zoomWrapperImage img').attr('src',originalImage.replace(originalImageSize+'.jpg','.jpg')); } if ($('#principalimagelink').length>0) { $('#principalimagelink').attr('href',originalImage.replace(originalImageSize+'.jpg','.jpg')); } if ($('.imageS .galleryproduct li').length>0) { $('.imageS .galleryproduct li').first().hide(); } } } $('.imageS .gallerysku').hide(); /*SKU Images END*/

Utilizamos cookies propias y de terceros, para analizar la navegación de los usuarios. Si continúas navegando, consideramos que aceptas su uso. Más información aquí.

Tiempo de carga: 1.265 segundos