ApparelNow»Cherry Creek Elementary School»Mens»Jackets
Zoom In
How to Customize Product
Size Chart
Not all sizes listed below are guaranteed to be available.
Please note we have taken every effort to provide you with a detailed and correct size chart, however certain garments will fit differently and sizing may vary.
Leader Soft Shell Jacket
- Center front dyed-to-match reverse coil zipper with semi-autolock rubber pull tab and chin guard
- Zippered front welt pockets
- Open hem cuffs
- Double-needle stitching at hem and cuffs
- Open hem with drop back bottom
Production types for bulk orders: Embroidery
Soft shell jacket with dyed-to-match reverse coil zipper, semi-autolock rubber pull tab, and chin guard. Features zippered front welt pockets and open hem cuffs.
$52.95
All Design Sports
- Popular designs
- Baseball
- Basketball
- Cheerleading
- Cross Country
- Football
- Golf
- Gymnastics
- Hockey
- Lacrosse
- Rugby
- Soccer
- Softball
- Swim and Dive
- Swimming
- Tennis
- Track and Field
- Volleyball
- Water Polo
- Wrestling
Choose Embroidery Logo (remove logo)
Customize Logo:
- Black
- Brown
- Burnt Orange
- Cardinal
- Columbia Blue
- Forest Green
- Gold
- Gray
- Hot Pink
- Kelly Green
- Light Pink
- Lime Green
- Maroon
- Navy Blue
- Old Gold
- Orange
- Purple
- Red
- Royal Blue
- Teal
- White
- Yellow
- Black
- Brown
- Burnt Orange
- Cardinal
- Columbia Blue
- Forest Green
- Gold
- Gray
- Hot Pink
- Kelly Green
- Light Pink
- Lime Green
- Maroon
- Navy Blue
- Old Gold
- Orange
- Purple
- Red
- Royal Blue
- Teal
- White
- Yellow
TEXT
Product Color
More Colors
Size & Quantity
View Size Chart
Product Description
Customer Reviews
Leader Soft Shell Jacket
- Center front dyed-to-match reverse coil zipper with semi-autolock rubber pull tab and chin guard
- Zippered front welt pockets
- Open hem cuffs
- Double-needle stitching at hem and cuffs
- Open hem with drop back bottom
';});$('#designdiv').empty();$('#designdiv').html(designdiv);});/*above to load side image*/$('body').on('click', '.productIColor', function(event) {$('body').find('#slickbox').removeClass('selected');event.preventDefault();var Current_product_color=$(this).attr('data');var Hidden_product_site_selection=$('input[name="Hidden_product_site_selection"]').val();var Hidden_back_design_id=$('input[name="Hidden_back_design_id"]').val();if(Hidden_product_site_selection == 1){var Hidden_DesignId=$('input[name="Hidden_DesignId"]').val();}else{var Hidden_DesignId=$('input[name="Hidden_back_design_id"]').val();}var Hidden_dynamic_Year=$('input[name="Hidden_dynamic_year"]').val();var Hidden_dynamic_number=$('input[name="Hidden_dynamic_number"]').val();var Hidden_primarycolorId=$('input[name="Hidden_primarycolorId"]').val();var Hidden_secondarycolorId=$('input[name="Hidden_secondarycolorId"]').val();var Hidden_line1=$('input[name="Hidden_line1"]').val();var Hidden_line2=$('input[name="Hidden_line2"]').val();if (Hidden_product_site_selection == 1){var designsubcategoryname=$('input[name="Hidden_design_sub_category_name"]').val();} else {var designsubcategoryname=$('input[name="Hidden_design_sub_category_name_back"]').val();}var dynamiceditedtext=$('input[name="Hidden_dynamic_text"]').val();$('input[name="data_color_type"]').val('random');//CompleteUrl=base_url+"/"+Hidden_DesignId+"/"+Current_product_color+"/random/2.45/"+Hidden_primarycolorId+"/"+Hidden_secondarycolorId+"/"+Hidden_dynamic_number+"/"+Hidden_dynamic_Year+"/"+designsubcategoryname+"/"+Hidden_product_site_selection+"/0/"+dynamiceditedtext+"/"+Hidden_line1+"/"+Hidden_line2 + '?product-page';CompleteUrl=base_url+"/"+Hidden_DesignId+"/"+Current_product_color+"/random/2.45/"+Hidden_primarycolorId+"/"+Hidden_secondarycolorId+"/"+Hidden_dynamic_number+"/"+Hidden_dynamic_Year+"/"+designsubcategoryname+"/"+Hidden_product_site_selection+"/0/"+dynamiceditedtext+"/"+Hidden_line1+"/"+Hidden_line2;$('input[name="Hidden_ProductColorId"]').val(Current_product_color);call_ajax(CompleteUrl,Hidden_DesignId);var Hidden_DesignId_pri=$('input[name="Hidden_DesignId"]').val();get_product_sizeandprice(setproduct_id,setstore_id,Hidden_DesignId_pri,Current_product_color,Hidden_back_design_id);$("#custom_form").attr("action", base_url_store+'/'+Hidden_DesignId+'/'+Current_product_color+'/random/?'+url_get_varible);checkBlocks(Current_product_color);$.get('https://apparelnow.com/stores/get_back_imageofproduct',{'product_color_id':Current_product_color}, function(data) {if(data.STATUS==true) { if(data.back_image_thumbnail){ $('.thumnailbackimage').attr('src', ''); $('.thumnailbackimage').attr('src', 'https://apparelnow.com/'+data.back_image_thumbnail); } if(data.back_image){ $('.bigbackimage').attr('src', ''); $('.bigbackimage').attr('src', 'https://apparelnow.com/'+data.back_image); } } });$('input[name="CompleteUrl"]').val(base_url_store+'/'+Hidden_DesignId+'/'+Current_product_color+'/random/?'+url_get_varible);call_ajax(CompleteUrl,Hidden_DesignId);//window.history.pushState("title","SSA Store",base_url_store+'/'+Hidden_DesignId+'/'+Current_product_color+'/random/?'+url_get_varible);});/*$(document).on('click', '.getCurrentDesignColor', function(event) {var Hidden_ProductColorId=$('input[name="Hidden_ProductColorId"]').val();$.get('https://apparelnow.com/stores/check_color/'+setstore_id+'_'+Hidden_ProductColorId, function(data){ if(data){$('.primary_color_ajax').each(function(index, el) { if($(this).attr('data')=='rgb('+data.designColor1+')'){$( this ).addClass("design_color_active");$('.updatecolorprimarybox').css('background','rgb('+data.designColor1+')');$('.updatecolorprimarybox').addClass("design_color_active");$('.updatecolorprimarybox').addClass("design_color_box");} }); $('.secondary_color_ajax ').each(function(index, el) { if($(this).attr('data')=='rgb('+data.designColor2+')'){$( this ).addClass("design_color_active");$('.updatecolorsecondarybox').css('background','rgb('+data.designColor2+')');$('.updatecolorsecondarybox').addClass("design_color_active");$('.updatecolorsecondarybox').addClass("design_color_box");} });var pColor=data.designColor1.replace(" ","");var pColor=pColor.replace(" ","");var sColor=data.designColor2.replace(" ","");var sColor=sColor.replace(" ","");$('input[name="Hidden_primarycolorId"]').val(pColor.replace(" ",""));$('input[name="Hidden_secondarycolorId"]').val(sColor.replace(" ","")); } }); });*//*Product color change end*/$(document).on('click', '.design_image_product_main_modal', function(event) { event.preventDefault(); var Hidden_ProductColorId=$('input[name="Hidden_ProductColorId"]').val();var Hidden_product_site_selection=$('input[name="Hidden_product_site_selection"]').val();var Hidden_back_design_id=$('input[name="Hidden_back_design_id"]').val();var Hidden_dynamic_Year=$('input[name="Hidden_dynamic_year"]').val();var Hidden_dynamic_number=$('input[name="Hidden_dynamic_number"]').val();var Hidden_primarycolorId=$('input[name="Hidden_primarycolorId"]').val();var Hidden_secondarycolorId=$('input[name="Hidden_secondarycolorId"]').val();var Hidden_line1=$('input[name="Hidden_line1"]').val();var Hidden_line2=$('input[name="Hidden_line2"]').val();if (Hidden_product_site_selection == 1){var designsubcategoryname=$('input[name="Hidden_design_sub_category_name"]').val();} else {var designsubcategoryname=$('input[name="Hidden_design_sub_category_name_back"]').val();}var dynamiceditedtext=$('input[name="Hidden_dynamic_text"]').val();if(Hidden_product_site_selection == 1){var Hidden_DesignId=$('input[name="Hidden_DesignId"]').val();}else{var Hidden_DesignId=$('input[name="Hidden_back_design_id"]').val();}$('input[name="data_color_type"]').val('random');//CompleteUrl=base_url+"/"+Hidden_DesignId+"/"+Hidden_ProductColorId+"/random/2.45/"+Hidden_primarycolorId+"/"+Hidden_secondarycolorId+"/"+Hidden_dynamic_number+"/"+Hidden_dynamic_Year+"/"+designsubcategoryname+"/"+Hidden_product_site_selection+"/0/"+dynamiceditedtext+"/"+Hidden_line1+"/"+Hidden_line2+'?product-page';CompleteUrl=base_url+"/"+Hidden_DesignId+"/"+Hidden_ProductColorId+"/random/2.45/"+Hidden_primarycolorId+"/"+Hidden_secondarycolorId+"/"+Hidden_dynamic_number+"/"+Hidden_dynamic_Year+"/"+designsubcategoryname+"/"+Hidden_product_site_selection+"/0/"+dynamiceditedtext+"/"+Hidden_line1+"/"+Hidden_line2;$('.design_image_product_main_modal').attr('href','');$('.design_image_product_main_modal').attr('href',CompleteUrl);/*$('#myModal2').modal('show');*/ });$('body').on('click', '.productIDesign', function(event) {$('body').find('#slickbox').removeClass('selected');event.preventDefault();var Current_desing_id=$(this).attr('data');var Hidden_product_site_selection=$('input[name="Hidden_product_site_selection"]').val();if(Hidden_product_site_selection == 1){var Hidden_DesignId=$('input[name="Hidden_DesignId"]').val(Current_desing_id);}else{var Hidden_DesignId=$('input[name="Hidden_back_design_id"]').val(Current_desing_id);}var Hidden_back_design_id=$('input[name="Hidden_back_design_id"]').val();var Hidden_front_design_id=$('input[name="Hidden_DesignId"]').val();var Hidden_line1=$('input[name="Hidden_line1"]').val();var Hidden_line2=$('input[name="Hidden_line2"]').val();var Hidden_ProductColorId=$('input[name="Hidden_ProductColorId"]').val();var Hidden_dynamic_Year=$('input[name="Hidden_dynamic_year"]').val();var Hidden_dynamic_number=$('input[name="Hidden_dynamic_number"]').val();var Hidden_primarycolorId=$('input[name="Hidden_primarycolorId"]').val();var Hidden_secondarycolorId=$('input[name="Hidden_secondarycolorId"]').val();if(Hidden_product_site_selection == 1){var designsubcategoryname=$('input[name="Hidden_design_sub_category_name"]').val();var Current_desing_back_id=$('input[name="Hidden_design_sub_category_name"]').val();} else {var designsubcategoryname=$('input[name="Hidden_design_sub_category_name_back"]').val();var Current_desing_back_id=$('input[name="Hidden_design_sub_category_name_back"]').val();}var dynamiceditedtext=$('input[name="Hidden_dynamic_text"]').val();//CompleteUrl=base_url+"/"+Current_desing_id+"/"+Hidden_ProductColorId+"/random/2.45/"+Hidden_primarycolorId+"/"+Hidden_secondarycolorId+"/"+Hidden_dynamic_number+"/"+Hidden_dynamic_Year+"/"+designsubcategoryname+"/"+Hidden_product_site_selection+"/0/"+dynamiceditedtext+"/"+Hidden_line1+"/"+Hidden_line2+'?product-page';CompleteUrl=base_url+"/"+Current_desing_id+"/"+Hidden_ProductColorId+"/random/2.45/"+Hidden_primarycolorId+"/"+Hidden_secondarycolorId+"/"+Hidden_dynamic_number+"/"+Hidden_dynamic_Year+"/"+designsubcategoryname+"/"+Hidden_product_site_selection+"/0/"+dynamiceditedtext+"/"+Hidden_line1+"/"+Hidden_line2;call_ajax(CompleteUrl,Current_desing_id);get_product_sizeandprice(setproduct_id,setstore_id,Hidden_front_design_id,Hidden_ProductColorId,Hidden_back_design_id);$('.designimgthumbeditor').removeClass('design_image_active'); $(this).parent('div').addClass('design_image_active');$("#custom_form").attr("action", base_url_store+'/'+Current_desing_id+'/'+Hidden_ProductColorId+'/random/?'+url_get_varible);//window.history.pushState("title","SSA Store",base_url_store+'/'+Current_desing_id+'/'+Hidden_ProductColorId+'/random/?'+url_get_varible);});/*Design over Product change end*/$('body').on('click', '.primary_color_ajax', function(event){var Hidden_product_site_selection=$('input[name="Hidden_product_site_selection"]').val();var Hidden_back_design_id=$('input[name="Hidden_back_design_id"]').val();if(Hidden_product_site_selection == 1){var Hidden_DesignId=$('input[name="Hidden_DesignId"]').val();}else{var Hidden_DesignId=$('input[name="Hidden_back_design_id"]').val();}var Hidden_ProductColorId=$('input[name="Hidden_ProductColorId"]').val();var Hidden_primarycolorId=$('input[name="Hidden_primarycolorId"]').val();var Hidden_secondarycolorId=$('input[name="Hidden_secondarycolorId"]').val();var Hidden_dynamic_Year=$('input[name="Hidden_dynamic_year"]').val();var Hidden_dynamic_number=$('input[name="Hidden_dynamic_number"]').val();var Current_primarycolorId=$(this).attr('data');if(Hidden_product_site_selection == 1){var designsubcategoryname=$('input[name="Hidden_design_sub_category_name"]').val();} else {var designsubcategoryname=$('input[name="Hidden_design_sub_category_name_back"]').val();}//alert(designsubcategoryname);var Hidden_line1=$('input[name="Hidden_line1"]').val();var Hidden_line2=$('input[name="Hidden_line2"]').val();$('.updatecolorprimarybox').addClass('design_color_box').css('background',Current_primarycolorId);Current_primarycolorId = Current_primarycolorId.replace("rgb(", "");Current_primarycolorId = Current_primarycolorId.replace(")", "");Current_primarycolorId = Current_primarycolorId.replace(" ", "");Current_primarycolorId = Current_primarycolorId.replace(" ", "");$('body').find('ul#dropdown_primmary_color li').removeClass('design_color_active');$(this).addClass('design_color_active');var dynamiceditedtext=$('input[name="Hidden_dynamic_text"]').val();//CompleteUrl=base_url+"/"+Hidden_DesignId+"/"+Hidden_ProductColorId+"/random/2.45/"+Current_primarycolorId+"/"+Hidden_secondarycolorId+"/"+Hidden_dynamic_number+"/"+Hidden_dynamic_Year+"/"+designsubcategoryname+"/"+Hidden_product_site_selection+"/0/"+dynamiceditedtext+"/"+Hidden_line1+"/"+Hidden_line2+'?product-page';CompleteUrl=base_url+"/"+Hidden_DesignId+"/"+Hidden_ProductColorId+"/random/2.45/"+Current_primarycolorId+"/"+Hidden_secondarycolorId+"/"+Hidden_dynamic_number+"/"+Hidden_dynamic_Year+"/"+designsubcategoryname+"/"+Hidden_product_site_selection+"/0/"+dynamiceditedtext+"/"+Hidden_line1+"/"+Hidden_line2;$('input[name="Hidden_primarycolorId"]').val(Current_primarycolorId);call_ajax(CompleteUrl,Hidden_DesignId);});/*Primary color over Product color change end*/$('body').on('click', '.secondary_color_ajax', function(event){var Hidden_product_site_selection=$('input[name="Hidden_product_site_selection"]').val();var Hidden_back_design_id=$('input[name="Hidden_back_design_id"]').val();if(Hidden_product_site_selection == 1){var Hidden_DesignId=$('input[name="Hidden_DesignId"]').val();}else{var Hidden_DesignId=$('input[name="Hidden_back_design_id"]').val();}var Hidden_ProductColorId=$('input[name="Hidden_ProductColorId"]').val();var Hidden_primarycolorId=$('input[name="Hidden_primarycolorId"]').val();var Hidden_secondarycolorId=$('input[name="Hidden_secondarycolorId"]').val();var Hidden_dynamic_Year=$('input[name="Hidden_dynamic_year"]').val();var Hidden_dynamic_number=$('input[name="Hidden_dynamic_number"]').val();var Current_secondarycolorId=$(this).attr('data');if(Hidden_product_site_selection == 1){var designsubcategoryname=$('input[name="Hidden_design_sub_category_name"]').val();} else {var designsubcategoryname=$('input[name="Hidden_design_sub_category_name_back"]').val();}var Hidden_line1=$('input[name="Hidden_line1"]').val();var Hidden_line2=$('input[name="Hidden_line2"]').val();$('.updatecolorsecondarybox').addClass('design_color_box').css('background',Current_secondarycolorId);Current_secondarycolorId = Current_secondarycolorId.replace("rgb(", "");Current_secondarycolorId = Current_secondarycolorId.replace(")", "");Current_secondarycolorId = Current_secondarycolorId.replace(" ", "");Current_secondarycolorId = Current_secondarycolorId.replace(" ", "");$('body').find('ul#dropdown_secondary_color li').removeClass('design_color_active');$(this).addClass('design_color_active');var dynamiceditedtext=$('input[name="Hidden_dynamic_text"]').val();//CompleteUrl=base_url+"/"+Hidden_DesignId+"/"+Hidden_ProductColorId+"/random/2.45/"+Hidden_primarycolorId+"/"+Current_secondarycolorId+"/"+Hidden_dynamic_number+"/"+Hidden_dynamic_Year+"/"+designsubcategoryname+"/"+Hidden_product_site_selection+"/0/"+dynamiceditedtext+"/"+Hidden_line1+"/"+Hidden_line2+'?product-page';CompleteUrl=base_url+"/"+Hidden_DesignId+"/"+Hidden_ProductColorId+"/random/2.45/"+Hidden_primarycolorId+"/"+Current_secondarycolorId+"/"+Hidden_dynamic_number+"/"+Hidden_dynamic_Year+"/"+designsubcategoryname+"/"+Hidden_product_site_selection+"/0/"+dynamiceditedtext+"/"+Hidden_line1+"/"+Hidden_line2;$('input[name="Hidden_secondarycolorId"]').val(Current_secondarycolorId);call_ajax(CompleteUrl,Hidden_DesignId);});/*Secondary color over Product color change end*/$('body').on('click','.designsubcategory', function(event){$('body').find('#slickbox').removeClass('selected');var Hidden_product_site_selection=$('input[name="Hidden_product_site_selection"]').val();var Hidden_dynamic_number=$('input[name="Hidden_dynamic_number"]').val();var designsubcategorybase_url='https://apparelnow.com/stores/get_design_by_store/361366';var to_set_name='Designs by '+$(this).attr('nametoset');$('.replace_text_to_show').text(to_set_name);var get_current_product_side=$('input[name="Hidden_product_site_selection"]').val();var designsubcategoryid=$(this).attr('data');var designsubcategoryname=$(this).attr('data-name');var Hidden_dynamic_Year=$('input[name="Hidden_dynamic_year"]').val();var Hidden_line1=$('input[name="Hidden_line1"]').val();var Hidden_line2=$('input[name="Hidden_line2"]').val();var Hidden_DesignId=$('input[name="Hidden_DesignId"]').val();var dynamiceditedtext=$('input[name="Hidden_dynamic_text"]').val();$.get('https://apparelnow.com/stores/get_design_to_subcategory',{'store_id':setstore_id,'store_id':setstore_id,'setstore_category_id':setstore_category_id,'designsubcategoryid':designsubcategoryid,'setproduct_id':setproduct_id,'design_checked_for_store':design_checked_for_store,'get_side_of_product':get_current_product_side, 'limit_to_five':0}, function(data) { var designdiv='';if(data.STATUS==true) { if(data.designsbysubcategory){ $.each(data.designsbysubcategory, function(key, value) { var designlink=designsubcategorybase_url +'/'+ value.id +'/'+ Hidden_dynamic_number+"/"+Hidden_dynamic_Year+"/"+designsubcategoryname+"/"+dynamiceditedtext+"/"+Hidden_line1+"/"+Hidden_line2; var addClassActive=''; if(value.id==Hidden_DesignId){ addClassActive='design_image_active'; } designdiv +='
'; }); } else{ designdiv +='No designs found in category'; } $('input[name="Hidden_design_sub_category"]').val(designsubcategoryid); if(Hidden_product_site_selection == 1){ $('input[name="Hidden_design_sub_category_name"]').val(designsubcategoryname); } else { $('input[name="Hidden_design_sub_category_name_back"]').val(designsubcategoryname); } } else{ designdiv +='No designs found in category'; } $('#designdiv').html(designdiv); /*$("img.lazy1").lazyload({ effect : "fadeIn", effectspeed: 900 }).removeClass('lazy1').addClass('lazy1');*/});});/*Design through sub-category end*/$('body').on('click','.designsubcategory1', function(event){$('body').find('#slickbox').removeClass('selected');$('#designdiv').empty();var designdiv='';$('#designdiv').html(designdiv);var Hidden_product_site_selection=$('input[name="Hidden_product_site_selection"]').val();var Hidden_dynamic_number=$('input[name="Hidden_dynamic_number"]').val();var designsubcategorybase_url='https://apparelnow.com/stores/get_design_by_store/361366';var Hidden_DesignId=$('input[name="Hidden_DesignId"]').val();var get_current_product_side=$('input[name="Hidden_product_site_selection"]').val();var designsubcategoryid=$(this).attr('data');var designsubcategoryname=$(this).attr('data-name');var to_set_name=$(this).attr('nametoset');$('.replace_text_to_show').text(to_set_name);var Hidden_line1=$('input[name="Hidden_line1"]').val();var Hidden_line2=$('input[name="Hidden_line2"]').val();var Hidden_dynamic_Year=$('input[name="Hidden_dynamic_year"]').val();var dynamiceditedtext=$('input[name="Hidden_dynamic_text"]').val();$.get('https://apparelnow.com/stores/get_design_to_subcategory',{'store_id':setstore_id,'store_id':setstore_id,'setstore_category_id':setstore_category_id,'designsubcategoryid':designsubcategoryid,'setproduct_id':setproduct_id,'design_checked_for_store':design_checked_for_store,'get_side_of_product':get_current_product_side}, function(data) { var designdiv='';if(data.STATUS==true) { if(data.designsbysubcategory){ $.each(data.designsbysubcategory, function(key, value) { var designlink=designsubcategorybase_url +'/'+ value.id +'/'+ Hidden_dynamic_number+"/"+Hidden_dynamic_Year+"/"+designsubcategoryname+"/"+dynamiceditedtext+"/"+Hidden_line1+"/"+Hidden_line2; var addClassActive=''; if(value.id==Hidden_DesignId){ addClassActive='design_image_active'; } designdiv +='
'; }); } else{ designdiv +='No designs found in category'; } $('input[name="Hidden_design_sub_category"]').val(designsubcategoryid); if(Hidden_product_site_selection == 1){ $('input[name="Hidden_design_sub_category_name"]').val(designsubcategoryname); } else { $('input[name="Hidden_design_sub_category_name_back"]').val(designsubcategoryname); } } else{ designdiv +='No designs found in category'; } $('#designdiv').html(designdiv); /*$("img.lazy1").lazyload({ effect : "fadeIn", effectspeed: 900 }).removeClass('lazy1').addClass('lazy1');*/});});$(document).ready(function() { $("#designnumber").change(function(){ $('body').find('#slickbox').removeClass('selected');if($(this).val() == null || $(this).val()==''){alert('Put some 2 Digit Number that you would like.');$(this).val($('input[name="Hidden_dynamic_number"]').val());return false;} var dynamiceditednumber=$(this).val();$("#designnumber").removeClass('invalidyearnumber');if (!dynamiceditednumber.match(/[0-9 -()+]+$/)) {$("#designnumber").addClass('invalidyearnumber'); return false;} var Hidden_product_site_selection=$('input[name="Hidden_product_site_selection"]').val();var Hidden_back_design_id=$('input[name="Hidden_back_design_id"]').val();if(Hidden_product_site_selection == 1){var Hidden_DesignId=$('input[name="Hidden_DesignId"]').val();}else{var Hidden_DesignId=$('input[name="Hidden_back_design_id"]').val();}var Hidden_ProductColorId=$('input[name="Hidden_ProductColorId"]').val();var Hidden_primarycolorId=$('input[name="Hidden_primarycolorId"]').val();var Hidden_secondarycolorId=$('input[name="Hidden_secondarycolorId"]').val();var Hidden_dynamic_Year=$('input[name="Hidden_dynamic_year"]').val();if(Hidden_product_site_selection == 1){var designsubcategoryname=$('input[name="Hidden_design_sub_category_name"]').val();} else {var designsubcategoryname=$('input[name="Hidden_design_sub_category_name_back"]').val();}var dynamiceditedtext=$('input[name="Hidden_dynamic_text"]').val();var Hidden_line1=$('input[name="Hidden_line1"]').val();var Hidden_line2=$('input[name="Hidden_line2"]').val();//CompleteUrl=base_url+"/"+Hidden_DesignId+"/"+Hidden_ProductColorId+"/random/2.45/"+Hidden_primarycolorId+"/"+Hidden_secondarycolorId+"/"+dynamiceditednumber+"/"+Hidden_dynamic_Year+"/"+designsubcategoryname+"/"+Hidden_product_site_selection+"/0/"+dynamiceditedtext+"/"+Hidden_line1+"/"+Hidden_line2+"?product-page";CompleteUrl=base_url+"/"+Hidden_DesignId+"/"+Hidden_ProductColorId+"/random/2.45/"+Hidden_primarycolorId+"/"+Hidden_secondarycolorId+"/"+dynamiceditednumber+"/"+Hidden_dynamic_Year+"/"+designsubcategoryname+"/"+Hidden_product_site_selection+"/0/"+dynamiceditedtext+"/"+Hidden_line1+"/"+Hidden_line2;$('input[name="Hidden_dynamic_number"]').val(dynamiceditednumber);//alert(CompleteUrl);call_ajax(CompleteUrl,Hidden_DesignId);var get_current_product_side=$('input[name="Hidden_product_site_selection"]').val();});});/*Number over designs end*/ $(document).ready(function() {$("#designyear").change(function(){ $('body').find('#slickbox').removeClass('selected'); if($(this).val() == null || $(this).val()==''){$(this).val($('input[name="Hidden_dynamic_year"]').val());return false;} var dynamiceditedyear=$(this).val();$("#designyear").removeClass('invalidyearnumber');if (!dynamiceditedyear.match(/[0-9 -()+]+$/) || dynamiceditedyear.length>4 || dynamiceditedyear.length < 4) {$("#designyear").addClass('invalidyearnumber');$(this).val($('input[name="Hidden_dynamic_year"]').val()); return false;} var Hidden_ProductColorId=$('input[name="Hidden_ProductColorId"]').val();var Hidden_product_site_selection=$('input[name="Hidden_product_site_selection"]').val();var Hidden_back_design_id=$('input[name="Hidden_back_design_id"]').val();if(Hidden_product_site_selection == 1){var Hidden_DesignId=$('input[name="Hidden_DesignId"]').val();}else{var Hidden_DesignId=$('input[name="Hidden_back_design_id"]').val();}var Hidden_primarycolorId=$('input[name="Hidden_primarycolorId"]').val();var Hidden_secondarycolorId=$('input[name="Hidden_secondarycolorId"]').val();var Hidden_dynamic_number=$('input[name="Hidden_dynamic_number"]').val();if(Hidden_product_site_selection == 1){var designsubcategoryname=$('input[name="Hidden_design_sub_category_name"]').val();} else {var designsubcategoryname=$('input[name="Hidden_design_sub_category_name_back"]').val();}var dynamiceditedtext=$('input[name="Hidden_dynamic_text"]').val();var Hidden_line1=$('input[name="Hidden_line1"]').val();var Hidden_line2=$('input[name="Hidden_line2"]').val();//CompleteUrl=base_url+"/"+Hidden_DesignId+"/"+Hidden_ProductColorId+"/random/2.45/"+Hidden_primarycolorId+"/"+Hidden_secondarycolorId+"/"+Hidden_dynamic_number+"/"+dynamiceditedyear+"/"+designsubcategoryname+"/"+Hidden_product_site_selection+"/0/"+dynamiceditedtext+"/"+Hidden_line1+"/"+Hidden_line2+"?product-page";CompleteUrl=base_url+"/"+Hidden_DesignId+"/"+Hidden_ProductColorId+"/random/2.45/"+Hidden_primarycolorId+"/"+Hidden_secondarycolorId+"/"+Hidden_dynamic_number+"/"+dynamiceditedyear+"/"+designsubcategoryname+"/"+Hidden_product_site_selection+"/0/"+dynamiceditedtext+"/"+Hidden_line1+"/"+Hidden_line2;$('input[name="Hidden_dynamic_year"]').val(dynamiceditedyear);call_ajax(CompleteUrl,Hidden_DesignId);var get_current_product_side=$('input[name="Hidden_product_site_selection"]').val();});});/*Year over designs end*/$(document).ready(function() { $('#designtextstring').change(function(){ $('body').find('#slickbox').removeClass('selected');if($('#designtextstring').val() == null || $('#designtextstring').val()==''){$('#designtextstring').val($('input[name="Hidden_dynamic_text"]').val());return false;} var count_string_character=0;var qry = $('#designtextstring').val().split("");$.each(qry, function(index, val) {if(!val.match(pattern)) {count_string_character++;}});if(count_string_character){$('#designtextstring').val($('input[name="Hidden_dynamic_text"]').val());return false;} var Hidden_product_site_selection=$('input[name="Hidden_product_site_selection"]').val();var Hidden_back_design_id=$('input[name="Hidden_back_design_id"]').val();if(Hidden_product_site_selection == 1){var Hidden_DesignId=$('input[name="Hidden_DesignId"]').val();}else{var Hidden_DesignId=$('input[name="Hidden_back_design_id"]').val();}var dynamiceditedtext=$('#designtextstring').val();var dynamiceditednumber=$('input[name="Hidden_dynamic_number"]').val(); var Hidden_ProductColorId=$('input[name="Hidden_ProductColorId"]').val();var Hidden_primarycolorId=$('input[name="Hidden_primarycolorId"]').val();var Hidden_secondarycolorId=$('input[name="Hidden_secondarycolorId"]').val();var Hidden_dynamic_Year=$('input[name="Hidden_dynamic_year"]').val();if(Hidden_product_site_selection == 1){var designsubcategoryname=$('input[name="Hidden_design_sub_category_name"]').val();} else {var designsubcategoryname=$('input[name="Hidden_design_sub_category_name_back"]').val();}var Hidden_line1=$('input[name="Hidden_line1"]').val();var Hidden_line2=$('input[name="Hidden_line2"]').val();//CompleteUrl=base_url+"/"+Hidden_DesignId+"/"+Hidden_ProductColorId+"/random/2.45/"+Hidden_primarycolorId+"/"+Hidden_secondarycolorId+"/"+dynamiceditednumber+"/"+Hidden_dynamic_Year+"/"+designsubcategoryname+"/"+Hidden_product_site_selection+"/0/"+dynamiceditedtext+"/"+Hidden_line1+"/"+Hidden_line2+"?product-page";CompleteUrl=base_url+"/"+Hidden_DesignId+"/"+Hidden_ProductColorId+"/random/2.45/"+Hidden_primarycolorId+"/"+Hidden_secondarycolorId+"/"+dynamiceditednumber+"/"+Hidden_dynamic_Year+"/"+designsubcategoryname+"/"+Hidden_product_site_selection+"/0/"+dynamiceditedtext+"/"+Hidden_line1+"/"+Hidden_line2;$('input[name="Hidden_dynamic_text"]').val(dynamiceditedtext);//alert(CompleteUrl);call_ajax(CompleteUrl,Hidden_DesignId);var get_current_product_side=$('input[name="Hidden_product_site_selection"]').val();});});/*Text over designs end*/$(document).ready(function() {$('body').on('click','#product_backimage', function(event){$('.view_front_back').attr('id','');$('.view_front_back').attr('data-original-title','Wait a moment');$('#designdiv').empty();var designdiv='';$('#designdiv').html(designdiv);var Hidden_ProductColorId=$('input[name="Hidden_ProductColorId"]').val();var Hidden_product_site_selection=$('input[name="Hidden_product_site_selection"]').val();var Hidden_back_design_id=$('input[name="Hidden_back_design_id"]').val();if(Hidden_product_site_selection == 2){var Hidden_DesignId=$('input[name="Hidden_DesignId"]').val();}else{var Hidden_DesignId=$('input[name="Hidden_back_design_id"]').val();}var Hidden_primarycolorId=$('input[name="Hidden_primarycolorId"]').val();var Hidden_secondarycolorId=$('input[name="Hidden_secondarycolorId"]').val();var Hidden_dynamic_number=$('input[name="Hidden_dynamic_number"]').val();var dynamiceditedtext=$('input[name="Hidden_dynamic_text"]').val();var Hidden_dynamic_Year=$('input[name="Hidden_dynamic_year"]').val();var Hidden_line1=$('input[name="Hidden_line1"]').val();var Hidden_line2=$('input[name="Hidden_line2"]').val();if(Hidden_product_site_selection == 2){var designsubcategoryname=$('input[name="Hidden_design_sub_category_name"]').val();} else {var designsubcategoryname=$('input[name="Hidden_design_sub_category_name_back"]').val();}//alert(designsubcategoryname);var site_of_product='';var site_html='';var site_toggle_msg='';if(Hidden_product_site_selection==1){site_of_product=2;site_html='Switch to Front View';site_toggle_msg='Showing Product Back';}else{site_of_product=1;site_html='Switch to Back View';site_toggle_msg='Showing Product Front';}//CompleteUrl=base_url+"/"+Hidden_DesignId+"/"+Hidden_ProductColorId+"/random/2.45/"+Hidden_primarycolorId+"/"+Hidden_secondarycolorId+"/"+Hidden_dynamic_number+"/"+Hidden_dynamic_Year+"/"+designsubcategoryname+"/"+site_of_product+"/0/"+dynamiceditedtext+"/"+Hidden_line1+"/"+Hidden_line2+"?product-page";CompleteUrl=base_url+"/"+Hidden_DesignId+"/"+Hidden_ProductColorId+"/random/2.45/"+Hidden_primarycolorId+"/"+Hidden_secondarycolorId+"/"+Hidden_dynamic_number+"/"+Hidden_dynamic_Year+"/"+designsubcategoryname+"/"+site_of_product+"/0/"+dynamiceditedtext+"/"+Hidden_line1+"/"+Hidden_line2;$('input[name="Hidden_product_site_selection"]').val(site_of_product);$('.frontbackmsg').html(site_html);$('#togglesidemsg').html(site_toggle_msg);call_ajax(CompleteUrl,Hidden_DesignId);var get_current_product_side=$('input[name="Hidden_product_site_selection"]').val();var designsubcategorybase_url='https://apparelnow.com/stores/get_design_by_store/361366';var designsubcategoryid=$('input[name="Hidden_design_sub_category"]').val();$.get('https://apparelnow.com/stores/get_design_to_subcategory',{'store_id':setstore_id,'setstore_category_id':setstore_category_id,'designsubcategoryid':designsubcategoryid,'setproduct_id':setproduct_id,'design_checked_for_store':design_checked_for_store,'get_side_of_product':get_current_product_side,'limit_to_five':1}, function(data) { var designdiv='';if(data.STATUS==true) { if(data.designsbysubcategory){ $.each(data.designsbysubcategory, function(key, value) { var designlink=designsubcategorybase_url +'/'+ value.id +'/'+ Hidden_dynamic_number+"/"+Hidden_dynamic_Year+"/"+designsubcategoryname+"/"+dynamiceditedtext+"/"+Hidden_line1+"/"+Hidden_line2; var hideStr = ''; var blankIdStr = ''; if (value.no_design_on_product == 1) { hideStr = ' style="display:none;"'; blankIdStr = ' id="blankDesign"'; } var addClassActive=''; if(value.id==Hidden_DesignId){ addClassActive='design_image_active'; } designdiv +='
'; }); } else{ designdiv +='No designs found in category'; }setTimeout(function(){ $('.view_front_back').attr('id','product_backimage');$('.view_front_back').attr('data-original-title',''); }, 2500); } else{ designdiv +='No designs found in category';setTimeout(function(){ $('.view_front_back').attr('id','product_backimage');$('.view_front_back').attr('data-original-title',''); }, 2500); } $('#designdiv').html(designdiv); /*$("img.lazy1").lazyload({ effect : "fadeIn", effectspeed: 100 }).removeClass('lazy1').addClass('lazy1');*/ });//window.history.pushState("title","SSA Store",base_url_store+'/'+Hidden_DesignId+"/"+Hidden_ProductColorId+'/random/?'+url_get_varible); }); });$(document).ready(function() { $('#designtextstringline1').on('keyup', function(e){ e.preventDefault();setTimeout(function(){if($('#designtextstringline1').val() == null || $('#designtextstringline1').val()==''){$('#designtextstringline1').val($('input[name="Hidden_line1"]').val());return false;}var count_string_character=0;var qry = $('#designtextstringline1').val().split("");$.each(qry, function(index, val) {if(!val.match(pattern)) {count_string_character++;}});if(count_string_character){$('#designtextstringline1').val($('input[name="Hidden_line1"]').val());return false;}$('body').find('#slickbox').removeClass('selected');var Hidden_product_site_selection=$('input[name="Hidden_product_site_selection"]').val();var Hidden_back_design_id=$('input[name="Hidden_back_design_id"]').val();if(Hidden_product_site_selection == 1){var Hidden_DesignId=$('input[name="Hidden_DesignId"]').val();}else{var Hidden_DesignId=$('input[name="Hidden_back_design_id"]').val();}var Hidden_line1 =$('#designtextstringline1').val();$('input[name="Hidden_line1"]').val(Hidden_line1);var dynamiceditednumber=$('input[name="Hidden_dynamic_number"]').val(); var Hidden_ProductColorId=$('input[name="Hidden_ProductColorId"]').val();var Hidden_primarycolorId=$('input[name="Hidden_primarycolorId"]').val();var Hidden_secondarycolorId=$('input[name="Hidden_secondarycolorId"]').val();var Hidden_dynamic_Year=$('input[name="Hidden_dynamic_year"]').val();if(Hidden_product_site_selection == 1){var designsubcategoryname=$('input[name="Hidden_design_sub_category_name"]').val();} else {var designsubcategoryname=$('input[name="Hidden_design_sub_category_name_back"]').val();}var dynamiceditedtext=$('input[name="Hidden_dynamic_text"]').val();var Hidden_line2=$('input[name="Hidden_line2"]').val();//CompleteUrl=base_url+"/"+Hidden_DesignId+"/"+Hidden_ProductColorId+"/random/2.45/"+Hidden_primarycolorId+"/"+Hidden_secondarycolorId+"/"+dynamiceditednumber+"/"+Hidden_dynamic_Year+"/"+designsubcategoryname+"/"+Hidden_product_site_selection+"/0/"+dynamiceditedtext+"/"+Hidden_line1+"/"+Hidden_line2+"?product-page";CompleteUrl=base_url+"/"+Hidden_DesignId+"/"+Hidden_ProductColorId+"/random/2.45/"+Hidden_primarycolorId+"/"+Hidden_secondarycolorId+"/"+dynamiceditednumber+"/"+Hidden_dynamic_Year+"/"+designsubcategoryname+"/"+Hidden_product_site_selection+"/0/"+dynamiceditedtext+"/"+Hidden_line1+"/"+Hidden_line2;//alert(CompleteUrl);call_ajax(CompleteUrl,Hidden_DesignId);}, 2500); });$('#designtextstringline2').on('keyup', function(e){ e.preventDefault();setTimeout(function(){ if($('#designtextstringline2').val() == null || $('#designtextstringline2').val()==''){$('#designtextstringline2').val($('input[name="Hidden_line2"]').val());return false;} var count_string_character=0;var qry = $('#designtextstringline2').val().split("");$.each(qry, function(index, val) {if(!val.match(pattern)) {count_string_character++;}});if(count_string_character){$('#designtextstringline2').val($('input[name="Hidden_line2"]').val());return false;}$('body').find('#slickbox').removeClass('selected');var Hidden_product_site_selection=$('input[name="Hidden_product_site_selection"]').val();var Hidden_back_design_id=$('input[name="Hidden_back_design_id"]').val();if(Hidden_product_site_selection == 1){var Hidden_DesignId=$('input[name="Hidden_DesignId"]').val();}else{var Hidden_DesignId=$('input[name="Hidden_back_design_id"]').val();}var Hidden_line2 =$('#designtextstringline2').val();$('input[name="Hidden_line2"]').val(Hidden_line2);var dynamiceditednumber=$('input[name="Hidden_dynamic_number"]').val(); var Hidden_ProductColorId=$('input[name="Hidden_ProductColorId"]').val();var Hidden_primarycolorId=$('input[name="Hidden_primarycolorId"]').val();var Hidden_secondarycolorId=$('input[name="Hidden_secondarycolorId"]').val();var Hidden_dynamic_Year=$('input[name="Hidden_dynamic_year"]').val();if(Hidden_product_site_selection == 1){var designsubcategoryname=$('input[name="Hidden_design_sub_category_name"]').val();} else {var designsubcategoryname=$('input[name="Hidden_design_sub_category_name_back"]').val();}var dynamiceditedtext=$('input[name="Hidden_dynamic_text"]').val();var Hidden_line1=$('input[name="Hidden_line1"]').val();//CompleteUrl=base_url+"/"+Hidden_DesignId+"/"+Hidden_ProductColorId+"/random/2.45/"+Hidden_primarycolorId+"/"+Hidden_secondarycolorId+"/"+dynamiceditednumber+"/"+Hidden_dynamic_Year+"/"+designsubcategoryname+"/"+Hidden_product_site_selection+"/0/"+dynamiceditedtext+"/"+Hidden_line1+"/"+Hidden_line2+"?product-page";CompleteUrl=base_url+"/"+Hidden_DesignId+"/"+Hidden_ProductColorId+"/random/2.45/"+Hidden_primarycolorId+"/"+Hidden_secondarycolorId+"/"+dynamiceditednumber+"/"+Hidden_dynamic_Year+"/"+designsubcategoryname+"/"+Hidden_product_site_selection+"/0/"+dynamiceditedtext+"/"+Hidden_line1+"/"+Hidden_line2;//alert(CompleteUrl);call_ajax(CompleteUrl,Hidden_DesignId);}, 2500); });});var call_ajax=function(url,design_id){$('.lazy_product').remove();var design_image_product_main=''$('.design_image_product_main').html(design_image_product_main); $("img.lazy_product").lazyload({effect : "fadeIn",effectspeed: 900, threshold : 50}).removeClass('lazy_product').addClass('lazy_product'); $('input[name="Hidden_product_path"]').val(); $('input[name="Hidden_product_path"]').val(url); $.post('https://apparelnow.com/stores/design_disable_fields', {'design_id':design_id}, function(data) { if(data.STATUS==true) { var limit_line1 = data.limit_line1; var limit_line2 = data.limit_line2;var enable_line1 = data.enable_line1;var enable_line2 = data.enable_line2;var enable_string = data.enable_string;var enable_year = data.enable_year;var enable_number = data.enable_number;var color_availability = data.color_availability;var color_availability_graphic_2 = data.color_availability_graphic_2;var design_access = data.design_access;var text_colors = data.text_colors;var has_colors = 0;var no_colors = 0;var line1_t = $('#designtextstringline1').val();var line2_t = $('#designtextstringline2').val();if (limit_line1 > 0 && line1_t.length > limit_line1) {line1_t = line1_t.substring(0, limit_line1);$('#designtextstringline1').val(line1_t);}if (limit_line2 > 0 && line2_t.length > limit_line2) {line2_t = line2_t.substring(0, limit_line2);$('#designtextstringline2').val(line2_t);}$('#designnumber').removeAttr('data-original-title');$('#designtextstring').removeAttr('data-original-title');$('#designyear').removeAttr('data-original-title');$('#designtextstringline1').removeAttr('data-original-title');$('#designtextstringline2').removeAttr('data-original-title');if (text_colors > 1 || (color_availability > 0 && color_availability_graphic_2 > 0)) {$('#designColor2').css('display','');} else {$('#designColor2').css('display','none');}if (color_availability == 0 && color_availability_graphic_2 == 0 && design_access != 2) {no_colors = 1;$('#color_box').css('display','none');} else {$('#color_box').css('display','');}$('#tmp_text_colors').val(text_colors);if(enable_number ==0){$('#designnumber_box').css('display','none');$('#designnumber').prop("disabled", true);$('#designnumber').attr('data-original-title',number_title_not_editable);}else{$('#designnumber_box').css('display','');$('#designnumber').prop("disabled", false);$('#designnumber').attr('data-original-title',number_title);}if(enable_string ==0){$('#designtextstring_box').css('display','none');$('#designtextstring').prop("disabled", true);$('#designtextstring').attr('data-original-title',name_title_not_editable);}else{$('#designtextstring_box').css('display','');$('#designtextstring').prop("disabled", false);$('#designtextstring').attr('data-original-title',name_title);} if(enable_year ==0){$('#designyear_box').css('display','none');$('body').find('#designyear').prop("disabled", true);$('#designyear').attr('data-original-title',year_title_not_editable);}else{$('#designyear_box').css('display','');$('body').find('#designyear').prop("disabled", false);$('#designyear').attr('data-original-title',year_title);} if(enable_line1 ==0){$('#designtextstringline1_box').css('display','none');$('#designtextstringline1').prop("disabled", true);$("#designtextstringline1").attr('data-original-title',line1_title_not_editable);}else{$('#designtextstringline1_box').css('display','');$('#designtextstringline1').prop("disabled", false);$("#designtextstringline1").attr('maxlength',limit_line1);$("#designtextstringline1").attr('data-original-title','Please Enter text with limit of '+limit_line1);} if(enable_line2 ==0){$('#designtextstringline2_box').css('display','none');$('#designtextstringline2').prop("disabled", true);$("#designtextstringline2").attr('data-original-title',line2_title_not_editable);}else{$('#designtextstringline2_box').css('display','');$('#designtextstringline2').prop("disabled", false);$("#designtextstringline2").attr('maxlength',limit_line2);$("#designtextstringline2").attr('data-original-title','Please Enter text with limit of '+limit_line2);} if (no_colors == 1 && enable_number == 0 && enable_string == 0 && enable_year == 0 && enable_line1 == 0 && enable_line2 == 0) {$('#customize_design_box').css('display','none');//$('#customize_link').css('display','none');} else {$('#customize_design_box').css('display','');/*if (enable_number == 0 && enable_string == 0 && enable_year == 0) {$('#customize_design_box').css('display','none');//$('#customize_link').css('display','');}else {$('#customize_design_box').css('display','');//$('#customize_link').css('display','none');}*/}} });}/*Product creation is end*/function get_product_sizeandprice(product_id,store_id,design_id,product_color_id,Hidden_back_design_id){ $.get('https://apparelnow.com/stores/calculatepriceforsize', {'product_id':product_id,'store_id': store_id,'design_id':design_id,'product_color_id':product_color_id,'Hidden_back_design_id':Hidden_back_design_id}, function(data) { if(data.STATUS==true) { var productprice=parseFloat(data.productprice); var productcolorprice=parseFloat(data.productcolorprice); var designprice=parseFloat(data.designprice); var sizeprice=''; var countsize=''; jQuery.each(data.sizeinfo, function(key, value){ var table=''; sizeprice=parseFloat(value.price) + productprice + productcolorprice + designprice; sizeprice=sizeprice.toFixed(2) table +='$'+sizeprice; $('#size_id_price_ajax'+value.id).html(table); countsize++; if(countsize==1){ default_price=sizeprice; } }); $('#default_price').text('$'+default_price+' Total'); } else{ alert('No Price found'); } get_product_bulkprice();});}/*bulk amount calculation*/function get_product_bulkprice(){var serialize_data=$("#sizeformid").serialize(); $('.inputfieldforquantity').prop('disabled', true); $('#add_to_cart_button').prop('disabled', true); $.get('https://apparelnow.com/stores/calculation_store_bulk',serialize_data, function(data) {var total_price=data.total_price;var total_qty=data.total_qty;$('#discountper_item').html('');if(total_qty >= 1){if(data.bulk_discount_apply == 1){var discountof=total_price * data.discounted_pecentage;total_price=total_price-discountof;//var save=discountof/total_qty;var save=discountof;save=save.toFixed(2);$('#discountper_item').html('(Saves $'+save+' Total)');}else{$('#discountper_item').html('');}var peritemprice=total_price/total_qty;peritemprice=peritemprice.toFixed(2);$('#discounted_price').html('$'+peritemprice+' Each');}else{$('#discounted_price').html('Select Quantity');}total_price=total_price.toFixed(2);$('#default_price').html('$'+total_price+' Total');}); $('.inputfieldforquantity').prop('disabled', false); $('#add_to_cart_button').prop('disabled', false);}$('body').on('change','#size-select', function(event){updateOrder(this.value, $('#quantity-select').val());});$('body').on('change','#quantity-select', function(event){updateOrder($('#size-select').val(), this.value);});function resetQuantities() {$('.inputfieldforquantity').each(function(index, el) { el.value = '0';});//get_product_bulkprice();}function updateOrder(sizeVal, quantityVal) {resetQuantities();if (quantityVal > 0) {$('#quantity_loop_id'+sizeVal).val(quantityVal);}get_product_bulkprice();}$('.inputfieldforquantity').change(function(event) {get_product_bulkprice();});/*Number over designs end*/$('body').on('click','.qtyplus',function(e){ e.preventDefault(); var this_p=$(this).parent(); fieldName = $(this).attr('field'); var currentVal = parseInt(this_p.find('.quantity-input').val()); if (!isNaN(currentVal)){ if(currentVal<9999) this_p.find('.quantity-input').val(currentVal + 1); else this_p.find('.quantity-input').val(9999); } else { this_p.find('.quantity-input').val(0); } get_product_bulkprice(); });// increase size quantity$('body').on('click','.qtyminus',function(e) { e.preventDefault(); var this_m=$(this).parent(); fieldName = $(this).attr('field'); var currentVal = parseInt(this_m.find('.quantity-input').val()); if (!isNaN(currentVal) && currentVal > 0) this_m.find('.quantity-input').val(currentVal -1); else this_m.find('.quantity-input').val(0); get_product_bulkprice(); });});//decrease size quantityfunction checkMaxLength(textareaID, maxLength, fieldid){ currentLengthInTextarea = $("#"+textareaID).val().length; $(fieldid).text(parseInt(maxLength) - parseInt(currentLengthInTextarea)); if (currentLengthInTextarea > (maxLength)) { $("input#textareaID").val($("input#textareaID").val().slice(0, maxLength)); $(fieldid).text(0); } } $(document).ready( function () { var maxLength = $("input#designnumber").attr("maxlength"); var remainingLengthTempId=$("input#designnumber").val(); $("input#designnumber").bind("keyup change", function(){checkMaxLength(this.id, maxLength,remainingLengthTempId); } ) var maxLength1 = $("input#designyear").attr("maxlength"); var remainingLengthTempId1=$("input#designyear").val(); $("input#designyear").bind("keyup change", function(){checkMaxLength(this.id, maxLength1,remainingLengthTempId1); } ) });var colorSelectionConfirm = false; $(document).ready(function() { var shownNotice = false; $('body').on('click', '#add_to_cart_button', function() {var tmp_text_colors = $('#tmp_text_colors').val();var dColor1 = $('input[name="Hidden_primarycolorId"]').val();var dColor2 = $('input[name="Hidden_secondarycolorId"]').val(); var Hidden_product_site_selection=$('input[name="Hidden_product_site_selection"]').val(); if(Hidden_product_site_selection==2){$("#product_backimage").click();$("#add_to_cart_button").click(); } var valid_flag=false; $('.inputfieldforquantity').each(function(index, el) { if(valid_flag== false && el.value=='0'){ valid_flag = false; }else{ valid_flag=true; } }); if(valid_flag==false){sweetAlert("Please select a Size and Quantity!","", "error"); return false; } if ($("#designyear_box").css('display') != 'none' && $("#designyear").val() == '') { sweetAlert("Enter a year to display on your logo.","", "error");return false; } if (shownNotice != true) { swal({ title: "Quick Note", text: "For best results, apply a light logo to a darker garment and vice versa.
", html: true, type: "" }, function(){shownNotice = true;$("#add_to_cart_button").click(); }); return false; } }); });// validate quantityfunction InvalidMsg(textbox) {if(textbox.validity.patternMismatch){ textbox.setCustomValidity('Only positive integer number allowed.'); } else { textbox.setCustomValidity(''); } return true;}