Rectangulaires T939 | 1 étiquette rectangulaires par feuille - 355.6 mm x 215.9 mm | AA Labels | French
1 Rectangulaires Labels par SRA3 feuille - 355.6 mm x 215.9 mm
1 Rectangulaires Labels par SRA3 feuille
Code produit: RB01
Taille de l'étiquette: Largeur 355.6 mm x la taille 215.9 mm
Largeur : 355.6 mm Hauteur : 215.9 mm
Marge supérieure : 52.05 mm Marge inférieure : 52.05 mm
Marge de gauche : 47.2 mm Marge droite : 47.2 mm
'+data.delivery_txt); $(_this).parents('.productdetails').find('.plainprice_text').html(data.price); $(_this).parents('.productdetails').find('.original_price').html(''+data.symbol+data.original_price+''); $(_this).parents('.productdetails').find('.promotion_price').html('-'+data.symbol+data.promotion_price_txt+''); if(data.promotion_price_txt == null || data.promotion_price_txt == 0 || data.promotion_price_txt == 0.00) { $(_this).parents('.productdetails').find('.plainprice_box').find('tr.plainprice').hide(); $(_this).parents('.productdetails').find('.plainprice_box').find('tr.halfprintprice').hide(); } else { $(_this).parents('.productdetails').find('.plainprice_box').find('tr.plainprice').show(); $(_this).parents('.productdetails').find('.plainprice_box').find('tr.halfprintprice').show(); $(_this).parents('.productdetails').find('.plainprice_box').find('.percentage_discount').text(data.percentage_discount); } $(_this).parents('.productdetails').find('.plainperlabels_text').html(data.labelprice); $(_this).parents('.productdetails').find('.plainprice_box').show(); if(Printable=='Y'){ $(_this).parents('.productdetails').find('.printing_offer_text').html(data.symbol+''+data.onlyprintprice); $(_this).parents('.productdetails').find('.addprintingoption').removeClass('hide'); } } } } }); } }); $(document).on("click", ".calculate_printed", function(e) { var id = $(this).parents('.productdetails').find('.product_id').val(); var cart_id = $(this).parents('.productdetails').find('.cart_id').val(); var menuid = $(this).parents('.productdetails').find('.manfactureid').val(); var labels = $(this).parents('.productdetails').find('.LabelsPerSheet').val(); var printing = $(this).parents('.productdetails').find('.digitalprintoption').val(); var min_qty = parseInt($(this).parents('.productdetails').find('.minimum_quantities').val()); var max_qty = parseInt($(this).parents('.productdetails').find('.maximum_quantities').val()); var unitqty = $(this).parents('.productdetails').find('.printedsheet_unit').text(); //Sheets Labels var upload_qty = parseInt($(this).parents('.productdetails').find('#uploadedartworks_'+id).attr('data-qty')); var artworks = parseInt($(this).parents('.productdetails').find('#uploadedartworks_'+id).val()); unitqty = $.trim(unitqty); var input_id = $(this).parents('.productdetails').find('.printedsheet_input'); var qty = input_id.val(); var _this = this; if(unitqty =='Étiquettes'){ var min_qty = parseInt(labels)*25; var max_qty = parseInt(labels)*50000; } if(!is_numeric(qty) || qty=='' || qty < min_qty){ input_id.val(min_qty); if(unitqty == "Étiquettes"){ show_faded_popover(input_id, 'La quantité a été modifiée pour la production '+min_qty+' étiquettes.'); }else{ show_faded_popover(input_id, 'La quantité a été modifiée pour la production '+min_qty+' feuilles.'); } } else if(qty > max_qty){ input_id.val(max_qty); if(unitqty =='Étiquettes'){ show_faded_popover(input_id, 'La quantité a été modifiée pour la production '+max_qty+' étiquettes.'); }else{ show_faded_popover(input_id, 'La quantité a été modifiée pour la production '+max_qty+' feuilles.'); } } else if(printing == '' || printing.length == 0){ swal({ title: "Sélectionnez", text: "Processus d'impression numérique ", confirmButtonText: "Continuer", type: "", }); } else{ if(printing == '4 Colour Digital Process'){var printing = 'Fullcolour'; } else{ var printing = 'Mono'; } if(qty%labels != 0 && unitqty == 'Étiquettes'){ var multipyer = parseInt(labels) * parseInt(parseInt(qty/labels)+1); input_id.val(multipyer); var qty = multipyer; } if(unitqty =='Étiquettes'){ qty = parseInt(qty/labels); //upload_qty = parseInt(upload_qty/labels); } if(artworks > 1 && upload_qty!= qty && upload_qty!=0){ $(this).parents('.productdetails').find('.artwork_uploader').click(); alert_box("Vous avez changé la quantité de "+unitqty+" veuillez modifier les quantités relatives à chaque œuvre d'art téléchargée."); return false; } change_btn_state(_this,'disable','printed'); $.ajax({ url: base+'ajax/calculate_sheet_price', type:"POST", async:"false", dataType: "html", data: { qty: qty,menuid: menuid,prd_id: id,labels:labels,labeltype:printing,cart_id:cart_id}, success: function(data){ if(!data==''){	data = $.parseJSON(data); if(data.response=='yes'){ change_btn_state(_this,'enable','printed'); $(_this).parents('.productdetails').find('.calculate_printed').hide(); $(_this).parents('.productdetails').find('.add_printed').show(); if(printing=='Fullcolour'){ $(_this).parents('.productdetails').find('.printedprice_box .price .printprice').find('.phead').text('Couleur pleine impression'); }else if(printing=='Mono'){ $(_this).parents('.productdetails').find('.printedprice_box .price .printprice').find('.phead').text('Noir imprimé'); } $(_this).parents('.productdetails').find('.printedprice_box .price .plainprice').find('.plaintext').html(''+data.symbol+data.plain+''); $(_this).parents('.productdetails').find('.printedprice_box .price .printprice').find('.printtext').html(''+data.symbol+data.halfprintprice+''); $(_this).parents('.productdetails').find('.printedprice_box .price .halfprintprice').find('.halfprinttext').html('-'+data.symbol+data.printprice+''); $(_this).parents('.productdetails').find('.printedprice_box .price .no_design').find('.phead').html(data.artworks+' Design gratuit'); $(_this).parents('.productdetails').find('.printedprice_box .price .desgincharge').find('.desginprice').html(''+data.symbol+data.designprice+''); $(_this).parents('.productdetails').find('.printedprice_text').html(data.price); $(_this).parents('.productdetails').find('.printedperlabels_text').html(data.labelprice); $(_this).parents('.productdetails').find('.printedprice_box').show(); } } } }); } }); $(document).on("click", ".add_plain", function(e) { var id = $(this).parents('.productdetails').find('.product_id').val(); var prd_name = $(this).parents('.productdetails').find('.product_name').text(); var menuid = $(this).parents('.productdetails').find('.manfactureid').val(); var labels = $(this).parents('.productdetails').find('.LabelsPerSheet').val(); var min_qty = parseInt($(this).parents('.productdetails').find('.minimum_quantities').val()); var max_qty = parseInt($(this).parents('.productdetails').find('.maximum_quantities').val()); var input_id = $(this).parents('.productdetails').find('.plainsheet_input'); var qty = parseInt(input_id.val()); var unitqty = $(this).parents('.productdetails').find('.plainsheet_unit').text(); //Sheets Labels unitqty = $.trim(unitqty); var _this = this; if(unitqty =='Étiquettes'){ var min_qty = parseInt(labels)*25; var max_qty = parseInt(labels)*50000; } if(!is_numeric(qty) || qty=='' || qty < min_qty){ input_id.val(min_qty); if(unitqty == "Étiquettes"){ show_faded_popover(input_id, 'La quantité a été modifiée pour la production '+min_qty+' étiquettes.'); }else{ show_faded_popover(input_id, 'La quantité a été modifiée pour la production '+min_qty+' feuilles.'); } return false; } else if(qty > max_qty){ input_id.val(max_qty); if(unitqty =='Étiquettes'){ show_faded_popover(input_id, 'La quantité a été modifiée pour la production '+max_qty+' étiquettes.'); }else{ show_faded_popover(input_id, 'La quantité a été modifiée pour la production '+max_qty+' feuilles.'); } return false; } else{ if(unitqty =='Étiquettes'){qty = parseInt(qty/labels);} change_btn_state(_this,'disable','plain'); $.ajax({ url: base+'ajax/add_to_cart', type:"POST", async:"false", dataType: "html", data: {qty:qty, menuid:menuid, prd_id:id,labeltype:'plain'}, success: function(data){ if(!data==''){	data = $.parseJSON(data); if(data.response=='yes'){ change_btn_state(_this,'enable','plain'); fireRemarketingTag('Add to cart'); ecommerce_add_to_cart(_this, 'plain'); popup_messages(menuid+' - '+prd_name); $('#cart').html(data.top_cart); } } } }); } }); $(document).on("click", ".add_printed", function(e) { var product_id = $(this).parents('.productdetails').find('.product_id').val(); var prd_name = $(this).parents('.productdetails').find('.product_name').text(); var cart_id = $(this).parents('.productdetails').find('.cart_id').val(); var menuid = $(this).parents('.productdetails').find('.manfactureid').val(); var labels = $(this).parents('.productdetails').find('.LabelsPerSheet').val(); var printing = $(this).parents('.productdetails').find('.digitalprintoption').val(); var min_qty = parseInt($(this).parents('.productdetails').find('.minimum_quantities').val()); var max_qty = parseInt($(this).parents('.productdetails').find('.maximum_quantities').val()); var unitqty = $(this).parents('.productdetails').find('.printedsheet_unit').text(); //Sheets Labels unitqty = $.trim(unitqty); var input_id = $(this).parents('.productdetails').find('.printedsheet_input'); var qty = input_id.val(); var _this = this; if(unitqty =='Étiquettes'){ var min_qty = parseInt(labels)*25; var max_qty = parseInt(labels)*50000; } if(!is_numeric(qty) || qty=='' || qty < min_qty){ input_id.val(min_qty); if(unitqty == "Étiquettes"){ show_faded_popover(input_id, 'La quantité a été modifiée pour la production '+min_qty+' étiquettes.'); }else{ show_faded_popover(input_id, 'La quantité a été modifiée pour la production '+min_qty+' feuilles.'); } return false; } else if(qty > max_qty){ input_id.val(max_qty); if(unitqty =='Étiquettes'){ show_faded_popover(input_id, 'La quantité a été modifiée pour la production '+max_qty+' étiquettes.'); }else{ show_faded_popover(input_id, 'La quantité a été modifiée pour la production '+max_qty+' feuilles.'); } return false; } else if(printing == '' || printing.length == 0){ swal({ title: "Sélectionnez", text: "Processus d'impression numérique ", confirmButtonText: "Continuez", type: "", }); return false; } else{ if(printing == '4 Colour Digital Process'){var printing = 'Fullcolour'; } else{ var printing = 'Mono'; } if(unitqty =='Étiquettes'){qty = parseInt(qty/labels);} var designs = $(this).parents('.productdetails').find('#uploadedartworks_'+product_id).val(); if(designs == 0 ){ swal({ title: "Avez-vous oublié quelque chose?", text: "Il n'y a pas d'illustration téléchargée pour vos étiquettes imprimées. \n\n Téléchargez votre illustration en cliquant sur le bleu “OK” bouton et procédez à votre achat. \n\n Alternativement, vous pouvez passer votre commande et payer en cliquant sur le bouton orange “Continuer” et un membre de notre équipe de service à la clientèle vous contactera pour discuter de vos besoins d'art.", type: "warning", showCancelButton: true, confirmButtonClass: "btn orangeBg", confirmButtonText: "Continuez", cancelButtonClass: "btn blueBg", cancelButtonText: "OK", closeOnConfirm: true, closeOnCancel: true }, function(isConfirm) { if (isConfirm) { //console.log('continue'); change_btn_state(_this,'disable','printed'); $.ajax({ url: base+'ajax/add_products_incart', type:"POST", async:"false", dataType: "html", data: { qty: qty,menuid: menuid,prd_id:product_id,labeltype:printing,cartid:cart_id,labels:labels}, success: function(data){ if(!data==''){ data = $.parseJSON(data); if(data.response=='yes'){ change_btn_state(_this,'enable','printed'); fireRemarketingTag('Add to cart');	ecommerce_add_to_cart(_this, 'printed'); $(_this).parents('.productdetails').find('#uploadedartworks_'+product_id).val(0); $(_this).parents('.productdetails').find('#uploadedartworks_'+product_id).attr('data-qty', 0); update_artwork_upload_btn(_this, 0); popup_messages(menuid+' - '+prd_name); $('#cart').html(data.top_cart); } } } }); } }); } else{ change_btn_state(_this,'disable','printed'); $.ajax({ url: base+'ajax/add_products_incart', type:"POST", async:"false", dataType: "html", data: { qty: qty,menuid: menuid,prd_id:product_id,labeltype:printing,cartid:cart_id,labels:labels}, success: function(data){ if(!data==''){	data = $.parseJSON(data); if(data.response=='yes'){ change_btn_state(_this,'enable','printed'); fireRemarketingTag('Add to cart');	ecommerce_add_to_cart(_this, 'printed'); $(_this).parents('.productdetails').find('#uploadedartworks_'+product_id).val(0); $(_this).parents('.productdetails').find('#uploadedartworks_'+product_id).attr('data-qty', 0); update_artwork_upload_btn(_this, 0); popup_messages(menuid+' - '+prd_name); $('#cart').html(data.top_cart); } } } }); } } }); $(document).on("click", ".price_breaks", function(e) { var product_id = $(this).parents('.productdetails').find('.product_id').val(); var manfactureid = $(this).parents('.productdetails').find('.manfactureid').val(); var labels = $(this).parents('.productdetails').find('.LabelsPerSheet').val(); $('#ajax_price_breaks').html(''); $('#price_loader').show(); $.ajax({ url: base+'ajax/labels_price_breaks', type:"POST", async:"false", data:{mid:manfactureid,labels:labels,type:'Feuilles SRA3'}, dataType: "html", success: function(data){ if(!data==''){	data = $.parseJSON(data); setTimeout(function(){ $('#price_loader').hide(); $('#ajax_price_breaks').html(data.html); },500); } } }); }); $(document).on("click", ".rsample", function(e) { var p_code = $(this).parents('.productdetails').find('.product_id').val(); var menuid = $(this).parents('.productdetails').find('.manfactureid').val(); var prd_name = $(this).parents('.productdetails').find('.product_name').text(); var _this = $(this); if(menuid){ change_btn_state(_this,'disable','sample'); $.ajax({ url: base+'ajax/add_sample_to_cart', type:"POST", async:"false", dataType: "html", data: { qty: 1,menuid: menuid,prd_id: p_code}, success: function(data){ if(!data==''){	$(".requestsample").modal('hide'); data = $.parseJSON(data); if(data.response=='yes'){ change_btn_state(_this,'enable','sample'); var sample_txt = "Merci d'avoir demandé un échantillon, une feuille A4 du matériel choisi sera envoyée par la poste. \n\n Remarque: la taille de l'étiquette sur l'échantillon ne correspond pas à l'étiquette / s sur cette page."; swal("Échantillon de matériau ajouté au panier",sample_txt,"success"); //popup_messages(menuid+' - '+prd_name+' - Sample '); $('#cart').html(data.top_cart); } else if(data.response=='failed'){ swal("Limite maximale dépassée",data.msg,"error"); } } } }); } }); var contentbox = $('#ajax_labelfilter'); function change_text(text) { } $(document).ready(function() { $('[data-toggle="popover"]').popover(); $('[data-toggle="tooltip-digital"]').tooltip(); $("[data-toggle=tooltip-product]").tooltip(); $('.fnTop').show().slideDown( "fast" ); $( ".labels-filters-form" ).slideUp( "fast" ); change_text('VOIR FILTRES'); });	$(document).on("click", ".technical_specs", function(e) { var id = $(this).parents('.productdetails').find('.product_id').val(); $('#ajax_tecnial_specifiacation').html(''); $('#mat_code').html(''); $('#specs_loader').show(); $.ajax({ url: base+'ajax/material_popup/'+id, type:"POST", async:"false", dataType: "html", success: function(data){ if(!data==''){	data = $.parseJSON(data); $('#material_popup_img').attr('src',data.src); setTimeout(function(){ $('#specs_loader').hide(); $('#ajax_tecnial_specifiacation').html(data.html); $('#mat_code').html(data.mat_code); },500); } } }); }); //$('[data-filters="Polyethylene"]').hide(); // function fetch_category_mateials(){ var catid = 'T939'; var material = $('#material_mat').val(); var adhesive = $('#adhesive_mat').val(); var color = $('#color_mat').val(); var top = $('#material_mat').offset().top; top = top+100; $('.loading-gif').css('top',top); $('#aa_loader').show(); $.ajax({ url: base+'ajax/get_category_materials_newfilter/', type:"POST", async:"false", dataType: "html", data: { material: material,adhesive: adhesive,color: color,catid: catid }, success: function(data){ if(!data==''){	data = $.parseJSON(data); /*$('#material_mat').html(data.material); $('#adhesive_mat').html(data.adhesive); $('#color_mat').html(data.color);*/ //$('.new_filter .material-d-down').find('.dropdown-menu').html(data.material); $('.new_filter .color-d-down').find('.dropdown-menu').html(data.color); var material = $('#material_mat').val(); var adhesive = $('#adhesive_mat').val(); var color = $('#color_mat').val(); $('[data-reset="reset"]').show(); $('.data-reset-colour').show(); if(material!=''){ $('.other_materials [data-reset="reset"]').hide(); $('.other_materials [data-mat-filters="'+material+'"]').show(); } if(color!=''){ $('.other_materials [data-reset="reset"]').hide();	$('.other_materials [data-reset="reset"]').each(function( index ) { var colourexist = ''; var _this = this; $(this).find('.data-reset-colour').each(function( index ) { var colour = $(this).attr('data-colour-filters'); if(colour == color){ if(adhesive!=''){ var isdisabled= $(_this).find('.product_adhesive option[value="'+adhesive+'"]').attr('disabled'); // var select_txt = $(_this).find('.product_adhesive option[value="'+adhesive+'"]').text(); //console.log(isdisabled+' -- '+'Selected -- '+select_txt+' --- '+colour+' --- '+adhesive); if(isdisabled != 'disabled'){ //$(_this).find('.product_adhesive').children('option').removeAttr("selected"); $(_this).find('.product_adhesive option[value="'+adhesive+'"]').attr('selected', 'selected'); //console.log('Inner Selection: '+isdisabled+' -- '+adhesive); } } //	$(this).find('a').click(); colourexist = 'match'; var material_select = $(_this).attr('data-mat-filters'); if(material!='' && material_select != material ){ $(_this).hide(); }else{ $(_this).show(); } if($(_this).css('display') == 'block'){ $(this).find('a').click(); } } }); //$('.data-reset-colour').hide(); //$('[data-colour-filters="'+color+'"]').show(); //if(colourexist==''){$(this).hide();} }); } if(adhesive!=''){ $('.other_materials [data-reset="reset"]').each(function( index ) { //var adhesive = $(this).find('.product_adhesive').val(); var _this = this; var option=$(this).find('.product_adhesive').children('option[value="' + adhesive + '"]').attr('disabled'); //	console.log(option); if(option == 'disabled'){ $(_this).hide(); }else{ //var option=$(this).find('.product_adhesive').children('option[value="' + adhesive + '"]').attr('selected', 'selected');	} }); } var visible = $(".other_materials [data-reset='reset']:visible"); $('.fetch_category_mateials').find('.append_search').append(visible); var others = $(".other_materials [data-reset='reset']:hidden"); $(others).show(); $('.other_mats').find('.append_search').append(others); $('.other_mats').show(); $('.hide_title').text("Résultats filtrés"); $('#aa_loader').hide(); } } }); } function fireRemarketingTag(page){ dataLayer.push({'event': 'fireRemarketingTag', 'ecomm_pagetype' : page}); } function ecommerce_add_to_cart(_this, type){ var prdid = $(_this).parents('.productdetails').find('.product_id').val(); //var product_name = $(_this).parents('.productdetails').find('.product_name').text(); var product_name = $(_this).parents('.productdetails').find('.category_description').val(); var category = 'Feuilles SRA3';	if(type == 'printed'){ var input_id = $(_this).parents('.productdetails').find('.printedsheet_input'); var quantity = parseInt(input_id.val()); var price = $(_this).parents('.productdetails').find('.printedprice_text').find('.color-orange').text(); var category = " Printed - "+category; var price = price.replace ( /[^\d.]/g, '' ); } else if(type == 'sample'){ var price = 0.00; var category = " Sample - "+category; var quantity = 1 } else{ var input_id = $(_this).parents('.productdetails').find('.plainsheet_input'); var quantity = parseInt(input_id.val()); var price = $(_this).parents('.productdetails').find('.plainprice_text').find('.color-orange').text(); var price = price.replace ( /[^\d.]/g, '' ); } price = parseFloat(price); dataLayer.push({ 'event': 'addToCart', 'ecommerce': { 'add': { 'products': [{ 'name': product_name, 'id': prdid, 'price': price, 'brand': 'AALABELS', 'category': category, 'quantity': quantity, }] } } }); } $(document).on("click", ".View_filter", function(e){ var display = $(".show_filter").css('display'); if(display == 'none'){ $('.fnTop').hide(); $(".show_filter").css("display","block").slideDown("slow"); $( ".labels-filters-form" ).slideDown( "slow" ); change_text(' CACHER LES FILTRES'); $(".View_text").text(" CACHER LES FILTRES"); }else { hideFilter("View_text");	} }); function hideFilter(clss){ $(".show_filter").css("display","none").slideUp( "slow" ); $(".View_text").text(" VOIR FILTRES "); } $(document).on("click", ".hide_filter", function(e){ hideFilter("hide_filter"); }); function fetch_special_offers(){ $('#aa_loader').show(); var visible = $(".other_materials [data-promotion='yes']"); $('.fetch_category_mateials').find('.append_search').append(visible); var others = $(".other_materials [data-promotion='no']"); $(others).show(); $('.other_mats').find('.append_search').append(others); $('.other_mats').show(); $('.hide_title').text("Résultats filtrés"); $('#aa_loader').hide(); } $(document).on("click",".new_filter .dm-selector .dropdown-menu a",function(e){ var value = $(this).data('value'); var valuefr = $(this).data('value-fr'); var type = $(this).data('id'); var unsorted = "" var input_value = ""; if(value == "reset" || value == "resetall") { $(this).parents(".new_filter").find(".color-d-down").find(".dropdown-toggle").addClass("disabled"); if(type == "material") { value = "Trier par Matériaux"; } else { value = "Trier par Couleur"; } $(this).parents(".new_filter").find(".material-d-down").find(".dropdown-toggle").html("Trier par Matériaux"+unsorted); $(this).parents(".new_filter").find(".color-d-down").find(".dropdown-toggle").html("Trier par Couleur"+unsorted); $(this).parents(".new_filter").find("#material_mat").val(input_value); $(this).parents(".new_filter").find("#color_mat").val(input_value); } else { $(this).parents(".new_filter").find("."+type+"-d-down").find(".dropdown-toggle").html(valuefr+unsorted); $(this).parents(".new_filter").find("#"+type+"_mat").val(value); $(this).parents(".new_filter").find(".color-d-down").find(".dropdown-toggle").removeClass("disabled"); } if(type == "material") { $(this).parents(".new_filter").find(".color-d-down").find(".dropdown-toggle").html("Trier par Couleur"+unsorted); $(this).parents(".new_filter").find("#color_mat").val(''); } fetch_category_mateials(); }); $(document).on("click",".continue_btn",function(e){ var cartproductid = $("#cartproductid").val(); var min_qty = $('.productdetails[data-value="'+cartproductid+'"]').find('.minimum_quantities').val(); var uploaded_sheets = parseInt($("#uploaded_sheets").val()); var actual_qty = parseInt($("#acutal_qty").val()); var labels_p_sheet = parseInt($("#labels_p_sheet").val()); var unitqty = $('#cartunitqty').val(); var max_qty = parseInt($('.productdetails[data-value="'+cartproductid+'"]').find('.maximum_quantities').val()); if(unitqty == "Étiquettes") { max_qty = max_qty*labels_p_sheet; uploaded_sheets = uploaded_sheets*labels_p_sheet } if(uploaded_sheets > max_qty) { swal("","Maximum " + max_qty + " " + unitqty + " autorisé, merci de régler" + unitqty + "dans vos oeuvres","warning"); return false; } if(actual_qty > 0 && uploaded_sheets > 0) { if(uploaded_sheets < min_qty) { swal("","Minimum "+ min_qty + " " + unitqty + " autorisé, merci de régler" + unitqty + "dans vos oeuvres","warning"); return false; } if(uploaded_sheets < actual_qty) { swal({ title: "Vous avez réduit le nombre de "+unitqty+", cliquez ici pour mettre à jour votre panier.", type: "warning", showCancelButton: true, confirmButtonClass: "btn orangeBg", confirmButtonText: "Confirmer", cancelButtonClass: "btn blueBg m-r-10", cancelButtonText: "Annuler", closeOnConfirm: true, closeOnCancel: true }, function(isConfirm) { if (isConfirm) { actual_qty = uploaded_sheets; /*if(unitqty == "Labels") { uploaded_sheets = uploaded_sheets*labels_p_sheet; max_qty = max_qty*labels_p_sheet; }*/ $('.productdetails[data-value="'+cartproductid+'"]').find('.printedsheet_input').val(uploaded_sheets); $('.artworkModal1').modal('hide'); } else { $('.artworkModal1').modal('show'); } }); return false; } if(uploaded_sheets > actual_qty) { swal({ title: "Vous avez entré extra "+unitqty+", cliquez ici pour mettre à jour votre panier.", type: "warning", showCancelButton: true, confirmButtonClass: "btn orangeBg", confirmButtonText: "Confirmer", cancelButtonClass: "btn blueBg m-r-10", cancelButtonText: "Annuler", closeOnConfirm: true, closeOnCancel: true }, function(isConfirm) { if (isConfirm) { actual_qty = uploaded_sheets; /* if(unitqty == "Labels") { uploaded_sheets = uploaded_sheets*labels_p_sheet; }*/ $('.productdetails[data-value="'+cartproductid+'"]').find('.printedsheet_input').val(uploaded_sheets); $('.artworkModal1').modal('hide'); } else { $('.artworkModal1').modal('show'); } }); return false; } } if(uploaded_sheets < min_qty) { swal("","Minimum "+ min_qty + " feuilles autorisé, merci de régler" + unitqty + "dans vos oeuvres","warning"); return false; } if(actual_qty == 0 && uploaded_sheets > 0) { $('.productdetails[data-value="'+cartproductid+'"]').find('.printedsheet_input').val(uploaded_sheets); } $('.artworkModal1').modal('hide'); }); $(document).on("keypress",".artwork_name",function(e){ var keyCode = e.which; if(keyCode==46){ return true; }else if ( !( (keyCode >= 48 && keyCode <= 57) ||(keyCode >= 65 && keyCode <= 90) || (keyCode >= 97 && keyCode <= 122) ) && keyCode != 8 && keyCode != 32) { return false; } });