Home Two Glass Door Wall Cabinet (2022)

Home Kitchen Kitchen Cabinets Kitchen Wall Cabinets Home Two Glass Door Wall Cabinet

SKU #81035

1

' + '

'+'

'; if (i === 0) { slider_for_images_html += videos_html; } } for (var j = 0; j < images_urls._160x160.length; j++) { slider_nav_images_html += '

' + 'Home Two Glass Door Wall Cabinet (1)' + '

'; if (j === 0) { slider_nav_images_html += videos_nav_html; } } // if (slider_for.height() !== 0) { // slider_for.height(slider_for.height()); // } slider_nav.removeClass('slick-initialized slick-slider'); slider_nav.html(slider_nav_images_html); slider_for.removeClass('slick-initialized slick-slider'); slider_for.addClass('slider-fadein'); slider_for.html(slider_for_images_html); initNavigationSlider(); setTimeout(function () { slider_for.removeClass('slider-fadein'); // slider_for.css('height', 'auto'); //slider_for.slick('setPosition'); }, 300); } } /** * */ function prepareVideos () { var videos_html = ''; for (var i = 0; i < product_video.length; i++) { var video = product_video[i].trim(), split_video = video.split('/'), video_id = split_video[split_video.length - 1]; if (video.indexOf('youtu.be') > 0) { youtube_video_ids.push(video_id); var video_preview = 'https://img.youtube.com/vi/' + video_id + '/0.jpg'; videos_html += '

' + '

' + '

' + '

'; } else { if (video.indexOf('vimeo.com') > 0) { vimeo_video_ids.push(video_id); videos_html += '

' + 'Home Two Glass Door Wall Cabinet (2)' + '

' + '

'; } else { video_links.push(video); videos_html += '

' + '

' + '

'; } } } return videos_html; } /** * @param product_video * @param index */ function prepareNavVideos (product_video, index) { if (index < product_video.length) { var video = product_video[index].trim(), split_video = video.split('/'), video_id = split_video[split_video.length - 1]; if (video.indexOf('youtu.be') > 0) { var src = 'https://img.youtube.com/vi/' + video_id + '/0.jpg'; videos_nav_html += '

Home Two Glass Door Wall Cabinet (3)

'; prepareNavVideos(product_video, index + 1); } else if (video.indexOf('vimeo.com') > 0) { $.ajax({ type: 'GET', url: 'http://vimeo.com/api/v2/video/' + video_id + '.json', jsonp: 'callback', dataType: 'json', success: function (data) { var src = data[0].thumbnail_large; videos_nav_html += '

Home Two Glass Door Wall Cabinet (4)

'; prepareNavVideos(product_video, index + 1); } , error: function (jqXHR) { videos_nav_html += '

'; prepareNavVideos(product_video, index + 1); } }); } else { videos_nav_html += '

'; prepareNavVideos(product_video, index + 1); } } } /** * */ function initArrows () { $('.navigation-slider .slider-arrows__arrow').on('click touchstart', function () { var slidesCount = parseInt($('.slider-arrows__all_slides').text()), slickCurrent = $('.main-slider .slick-current'), index = slickCurrent.data('slick-index') + 1; if ($(this).hasClass('slider-arrows_next-arrow')) { slickCurrent.next().click(); index++; } else if ($(this).hasClass('slider-arrows_prev-arrow')) { slickCurrent.prev().click(); index--; } if (index > slidesCount) { index = 1; } if (index === 0) { index = slidesCount; } $('.slider-arrows .slider-arrows__current_slide').text(index); }); } /** * */ function initMainSlider () { slider_for.slickYoutube(youtube_video_ids); slider_for.slickVimeo(vimeo_video_ids); slider_for.slickVideo(video_links); $('.main-slider').slick({ lazyLoad: 'progressive', slidesToShow: 1, slidesToScroll: 1, arrows: false, asNavFor: '.navigation-slider__previews', focusOnSelect: true, adaptiveHeight: true, responsive: [ { breakpoint: 767, settings: { prevArrow: '

', nextArrow: '

', arrows: true, } }] }); } /** * */ function initNavigationSlider () { slider_nav.slick({ lazyLoad: 'progressive', slidesToShow: 6, slidesToScroll: 1, asNavFor: '.main-slider', dots: false, arrows: false, focusOnSelect: true, adaptiveHeight: false, responsive: [ { breakpoint: 1025, settings: { slidesToShow: 3, slidesToScroll: 1, } }] }); } })();

'); var container = parent.find('.swatch_container'); var selected_value = select.val(); Shopify.each(options, function (o, i) { var selected = ''; var opt = $(o); var value = opt.val().replace('"', """); if (value === selected_value) { selected = 'active'; $(".swatches_text").text(": "+value); } var swatch_info = swatch_options_values[value]; if (swatch_info === undefined) { swatch_info = { image: '', color: '' }; } var swatch = ''; if (swatch_info.image !== '') { swatch = '

' + '

' + /*'Home Two Glass Door Wall Cabinet (6)' +*/ 'Home Two Glass Door Wall Cabinet (7)' + '

' + '

' + value + '

' + '

'; } else if (swatch_info.color !== '') { swatch = '

' + '

' + '

' + value + '

' + '

'; } else { swatch = '

' + '

' + '

' + '

' + '

' + '

' + value + '

' + '

'; } container.append(swatch); }); }); } }, 100); const prepareOptions = function (options, excludedOptions) { let tmp = [], result = []; for (let i = 0; i < options.length; i++) { tmp[options[i]] = true; } for (let i = 0; i < excludedOptions.length; i++) { if (tmp[excludedOptions[i]]) { delete tmp[excludedOptions[i]]; } else { tmp[excludedOptions[i]] = true; } } for (var option in tmp) { result.push(option); } return result; }; var click_count = 0; var auto_click = 0; // example.com?param1=name&param2=&id=6 /* set main product quantity start*/ setMainProQuantity(); function setMainProQuantity(){ setTimeout(function(){ var main_pro_variant_id = $('.bold_qb_grid').attr('data-variant-id'); jQuery.getJSON('/cart.js', function(cart) { var cart_items = cart.items; cart_items.filter(function(items_data, items_index){ //console.log('main_pro_variant_id',main_pro_variant_id,items_data.id); if(items_data.id == main_pro_variant_id){ $(".quantity__main").val(items_data.quantity); } }); }); },150); } $(document).ready(function() { $(".add-to-cart, .add-to-cart_main").attr("disabled",true); setTimeout(function(){ var check_status = $(".add-to-cart_main").attr("data-status"); var url = window.location.href; var arguments = url.split('?')[1].split('='); arguments.shift(); var varient_id = '32261339676738'; if(varient_id == arguments[0]){ var varient_title = 'White / 24 in.'; checkChangeprice(varient_title); } var varient_id = '32261340168258'; if(varient_id == arguments[0]){ var varient_title = 'White / 36 in.'; checkChangeprice(varient_title); } var varient_id = '32261341937730'; if(varient_id == arguments[0]){ var varient_title = 'Gray / 24 in.'; checkChangeprice(varient_title); } var varient_id = '32261342593090'; if(varient_id == arguments[0]){ var varient_title = 'Gray / 36 in.'; checkChangeprice(varient_title); } console.log("selected_varient_id",arguments); if(check_status != "Currently Out of Stock" ){ //$(".add-to-cart, .add-to-cart_main").attr("disabled",false); } }, 3000); }); /* set main product quantity end*/ $(document).on('click', '.swatch_item_main', function () { var variant_id = $('[name="id"]').val(); $(".quantity__main").val(1);setMainProQuantity(); click_count ++; var swatch_item = $(this); var value = this.getAttribute('data-value'); var value_script = this.getAttribute('data-value'); var container = $(this).closest('.swatch_container'); container.find('.active').removeClass('active'); var id = container.attr('data-id'); $(this).addClass('active'); $('#' + id).val(value).trigger('change'); $('.swatches_text').text(': '+value); $('.adding_padding_swatches .selector-wrapper ').each(function () { var varient_label = $(this).find("label"); var varient_name = varient_label.text().split(':'); var find_varient_data = $(this).find(".swatch_item.active ").attr('data-value'); var value = ""+find_varient_data+"+value>"; varient_label.html(varient_name[0]+' : '+value); }); if (click_count > 0) { $('#' + id).val(value).trigger('change'); auto_click = 1; } var variant_id_1 = $('[name="id"]').val(); if(variant_id != variant_id_1){// changeDynamicLeadTime(); }variantClickScript(value_script); }); function checkChangeprice(value_script){ console.log("value_script",value_script); var loop_title = "White \/ 24 in."; if(loop_title == value_script){ var loop_price = 26999; var total_price_formate = Shopify.formatMoney(loop_price); $(".price_cal_price").text(total_price_formate); total_price_formate = total_price_formate.replace("$",""); total_price_formate = total_price_formate.replace(",",""); // $("#backend-data").attr("data-total",total_price_formate); var product_price = total_price_formate; var per_corton_cover = $("#backend-data").attr("data-size"); var perFeetValue = parseFloat(product_price / per_corton_cover); console.log("product_price",product_price,"per_corton_cover",per_corton_cover, perFeetValue.toFixed(2)); var product_pricePersqrfit = perFeetValue.toFixed(2); product_pricePersqrfit = product_pricePersqrfit.toString().split("."); var perFeetValue = perFeetValue.toString().match(/^-?\d+(?:\.\d{0,2})?/)[0] var parts = perFeetValue.toString().split("."); $(".price_squarefit").html('$'+product_pricePersqrfit[0]+''+product_pricePersqrfit[1]+' / sq. ft.'); } var loop_title = "White \/ 36 in."; if(loop_title == value_script){ var loop_price = 38999; var total_price_formate = Shopify.formatMoney(loop_price); $(".price_cal_price").text(total_price_formate); total_price_formate = total_price_formate.replace("$",""); total_price_formate = total_price_formate.replace(",",""); // $("#backend-data").attr("data-total",total_price_formate); var product_price = total_price_formate; var per_corton_cover = $("#backend-data").attr("data-size"); var perFeetValue = parseFloat(product_price / per_corton_cover); console.log("product_price",product_price,"per_corton_cover",per_corton_cover, perFeetValue.toFixed(2)); var product_pricePersqrfit = perFeetValue.toFixed(2); product_pricePersqrfit = product_pricePersqrfit.toString().split("."); var perFeetValue = perFeetValue.toString().match(/^-?\d+(?:\.\d{0,2})?/)[0] var parts = perFeetValue.toString().split("."); $(".price_squarefit").html('$'+product_pricePersqrfit[0]+''+product_pricePersqrfit[1]+' / sq. ft.'); } var loop_title = "Gray \/ 24 in."; if(loop_title == value_script){ var loop_price = 26999; var total_price_formate = Shopify.formatMoney(loop_price); $(".price_cal_price").text(total_price_formate); total_price_formate = total_price_formate.replace("$",""); total_price_formate = total_price_formate.replace(",",""); // $("#backend-data").attr("data-total",total_price_formate); var product_price = total_price_formate; var per_corton_cover = $("#backend-data").attr("data-size"); var perFeetValue = parseFloat(product_price / per_corton_cover); console.log("product_price",product_price,"per_corton_cover",per_corton_cover, perFeetValue.toFixed(2)); var product_pricePersqrfit = perFeetValue.toFixed(2); product_pricePersqrfit = product_pricePersqrfit.toString().split("."); var perFeetValue = perFeetValue.toString().match(/^-?\d+(?:\.\d{0,2})?/)[0] var parts = perFeetValue.toString().split("."); $(".price_squarefit").html('$'+product_pricePersqrfit[0]+''+product_pricePersqrfit[1]+' / sq. ft.'); } var loop_title = "Gray \/ 36 in."; if(loop_title == value_script){ var loop_price = 38999; var total_price_formate = Shopify.formatMoney(loop_price); $(".price_cal_price").text(total_price_formate); total_price_formate = total_price_formate.replace("$",""); total_price_formate = total_price_formate.replace(",",""); // $("#backend-data").attr("data-total",total_price_formate); var product_price = total_price_formate; var per_corton_cover = $("#backend-data").attr("data-size"); var perFeetValue = parseFloat(product_price / per_corton_cover); console.log("product_price",product_price,"per_corton_cover",per_corton_cover, perFeetValue.toFixed(2)); var product_pricePersqrfit = perFeetValue.toFixed(2); product_pricePersqrfit = product_pricePersqrfit.toString().split("."); var perFeetValue = perFeetValue.toString().match(/^-?\d+(?:\.\d{0,2})?/)[0] var parts = perFeetValue.toString().split("."); $(".price_squarefit").html('$'+product_pricePersqrfit[0]+''+product_pricePersqrfit[1]+' / sq. ft.'); } } function variantClickScript(value_script){ var catrgory_data = "["Bestseller", "BMSM", "Cabinet Size: Standard Size", "Cabinet Type: Wall Cabinets", "Cabinet Width: 24 Inch", "Cabinet Width: 36 Inch", "Category: Home", "Category: Kitchen", "Configuration: Individual Cabinets", "Deals & Sales: Best Seller", "Door Colour: Gray", "Door Colour: White", "Individual_product", "PIP Status: Redesign", "Product Type: Cabinets", "right_swatch_dropdown", "Series: 24\" home Bar", "Subcategory: Laundry"]"; catrgory_data = catrgory_data.split(","); var cat_name ="All NewAge Products"; for(var i = 0; i < catrgory_data.length; i++) { var res = catrgory_data[i].match(/Category/g); if(res != null){ var catrgory_data = catrgory_data[i]; catrgory_data = catrgory_data.split(":"); catrgory_data = catrgory_data[1]; catrgory_data = catrgory_data.replace("PIP Status",""); catrgory_data = catrgory_data.replace("Category",""); catrgory_data = catrgory_data.replace("Color",""); catrgory_data = catrgory_data.replace(/"/g, ''); } } dataLayer.push({ 'Pagetype':'PIP', //also need to pass word ‘page’ 'category':catrgory_data, //also need to pass word ‘page’// 'subcategory':'value', //also need to pass word ‘page’ 'variant':value_script}) } var pro_current_variant ='32261339676738'; var main_page_url=window.location.href; var variantLeadMessageArray = []; var state = localStorage.getItem('state'); var tags_data = "["Bestseller", "BMSM", "Cabinet Size: Standard Size", "Cabinet Type: Wall Cabinets", "Cabinet Width: 24 Inch", "Cabinet Width: 36 Inch", "Category: Home", "Category: Kitchen", "Configuration: Individual Cabinets", "Deals & Sales: Best Seller", "Door Colour: Gray", "Door Colour: White", "Individual_product", "PIP Status: Redesign", "Product Type: Cabinets", "right_swatch_dropdown", "Series: 24\" home Bar", "Subcategory: Laundry"]".search("BestDeals_NovEvents"); var show_default_data = true; if(state != null && tags_data > 0 ){ show_default_data = false; } if(state == null && tags_data > 0 ){ show_default_data = false; } if(state == null && tags_data < 0 ){ show_default_data = false; } if(show_default_data == true){ var variant_id = 32261339676738; var valueLead = '[{"sku":"81035","pre_order":"IN STOCK","store":"US","default_leadtime":"This product will ship in 7-13 days.","dc":"999","mid":"1","AL":"This product will ship in 5-11 days.","AK":"Shipping is currently unavailable for this area. Please provide an alternate shipping location for delivery. For questions, please contact our Sales specialists at 1.877.306.8930","AZ":"This product will ship in 10-16 days.","AR":"This product will ship in 7-13 days.","CA":"This product will ship in 8-14 days.","CO":"This product will ship in 4-11 days.","CT":"This product will ship in 7-13 days.","DE":"This product will ship in 8-14 days.","DC":"This product will ship in 15-21 days.","FL":"This product will ship in 8-14 days.","GA":"This product will ship in 5-11 days.","HI":"Shipping is currently unavailable for this area. Please provide an alternate shipping location for delivery. For questions, please contact our Sales specialists at 1.877.306.8930","ID":"This product will ship in 10-16 days.","IL":"This product will ship in 7-13 days.","IN":"This product will ship in 6-12 days.","IA":"This product will ship in 7-13 days.","KS":"This product will ship in 5-11 days.","KY":"This product will ship in 5-11 days.","LA":"This product will ship in 6-12 days.","ME":"This product will ship in 9-15 days.","MD":"This product will ship in 8-14 days.","MA":"This product will ship in 6-12 days.","MI":"This product will ship in 8-14 days.","MN":"This product will ship in 8-14 days.","MS":"This product will ship in 7-13 days.","MT":"This product will ship in 9-15 days.","NE":"This product will ship in 7-13 days.","NV":"This product will ship in 7-13 days.","NH":"This product will ship in 6-12 days.","NJ":"This product will ship in 4-11 days.","NM":"This product will ship in 7-13 days.","NY":"This product will ship in 10-16 days.","NC":"This product will ship in 8-14 days.","ND":"This product will ship in 7-13 days.","OH":"This product will ship in 6-12 days.","OK":"This product will ship in 7-13 days.","OR":"This product will ship in 10-16 days.","PA":"This product will ship in 6-12 days.","PR":"Shipping is currently unavailable for this area. Please provide an alternate shipping location for delivery. For questions, please contact our Sales specialists at 1.877.306.8930","RI":"This product will ship in 5-11 days.","SC":"This product will ship in 5-11 days.","SD":"This product will ship in 5-11 days.","TN":"This product will ship in 5-11 days.","TX":"This product will ship in 11-17 days.","UT":"This product will ship in 8-14 days.","VT":"This product will ship in 7-13 days.","VA":"This product will ship in 8-14 days.","WA":"This product will ship in 11-17 days.","WV":"This product will ship in 4-11 days.","WI":"This product will ship in 6-12 days.","WY":"This product will ship in 6-12 days.","MO":"This product will ship in 6-12 days."}]' valueLead = JSON.parse(valueLead); // console.log('valeLead',valueLead, variant_id); var price = 26999 / 100; var valueLead_lead_time =""; if( valueLead != null){ valueLead.filter(function(data, item){ // if(valueLead.length == 1){ // if(valueLead[0].lead_time == undefined || valueLead[0].lead_time == 'undefined'){ // valueLead_lead_time = valueLead[0].default_lead_time; // }else{ // valueLead_lead_time = valueLead[0].lead_time; // } // var valueLead_pre_order = valueLead[0].pre_order; // }else{ valueLead_lead_time = data[state]; var valueLead_pre_order = data['pre_order']; // } if(valueLead_lead_time == undefined || valueLead_lead_time == "undefined"){ valueLead_lead_time = data['default_leadtime']; } var sort_stock_status = 'ASC'; if(valueLead_pre_order=='DISCONTINUED' || valueLead_pre_order =='OUT OF STOCK' || valueLead_pre_order=='COMING SOON'){ sort_stock_status = 'DESC'; } if(valueLead_pre_order =='CLEARANCE'){ // valueLead_lead_time = valueLead[0].lead_time; } if(state!=null){ valueLead_lead_time = data[state]; valueLead_lead_time = ( valueLead_lead_time == '' || valueLead_lead_time == undefined) ? data['default_lead_time']:valueLead_lead_time; }else{ valueLead_lead_time = valueLead['default_lead_time']; } variantLeadMessageArray.push({ id: variant_id, price: price, value: valueLead_lead_time, pre_order: valueLead_pre_order, sort_stock_status: sort_stock_status }); }); }else{ valueLead_lead_time = 'This product will ship in 1-3 weeks.'; valueLead_pre_order = 'N'; sort_stock_status = 'ASC'; variantLeadMessageArray.push({ id: variant_id, price: price, value: valueLead_lead_time, pre_order: valueLead_pre_order, sort_stock_status: sort_stock_status }); } var variant_id = 32261340168258; var valueLead = '[{"sku":"81037","pre_order":"IN STOCK","store":"US","default_leadtime":"This product will ship in 7-13 days.","dc":"999","mid":"1","AL":"This product will ship in 5-11 days.","AK":"Shipping is currently unavailable for this area. Please provide an alternate shipping location for delivery. For questions, please contact our Sales specialists at 1.877.306.8930","AZ":"This product will ship in 10-16 days.","AR":"This product will ship in 7-13 days.","CA":"This product will ship in 8-14 days.","CO":"This product will ship in 4-11 days.","CT":"This product will ship in 7-13 days.","DE":"This product will ship in 8-14 days.","DC":"This product will ship in 15-21 days.","FL":"This product will ship in 8-14 days.","GA":"This product will ship in 5-11 days.","HI":"Shipping is currently unavailable for this area. Please provide an alternate shipping location for delivery. For questions, please contact our Sales specialists at 1.877.306.8930","ID":"This product will ship in 10-16 days.","IL":"This product will ship in 7-13 days.","IN":"This product will ship in 6-12 days.","IA":"This product will ship in 7-13 days.","KS":"This product will ship in 5-11 days.","KY":"This product will ship in 5-11 days.","LA":"This product will ship in 6-12 days.","ME":"This product will ship in 9-15 days.","MD":"This product will ship in 8-14 days.","MA":"This product will ship in 6-12 days.","MI":"This product will ship in 8-14 days.","MN":"This product will ship in 8-14 days.","MS":"This product will ship in 7-13 days.","MT":"This product will ship in 9-15 days.","NE":"This product will ship in 7-13 days.","NV":"This product will ship in 7-13 days.","NH":"This product will ship in 6-12 days.","NJ":"This product will ship in 4-11 days.","NM":"This product will ship in 7-13 days.","NY":"This product will ship in 10-16 days.","NC":"This product will ship in 8-14 days.","ND":"This product will ship in 7-13 days.","OH":"This product will ship in 6-12 days.","OK":"This product will ship in 7-13 days.","OR":"This product will ship in 10-16 days.","PA":"This product will ship in 6-12 days.","PR":"Shipping is currently unavailable for this area. Please provide an alternate shipping location for delivery. For questions, please contact our Sales specialists at 1.877.306.8930","RI":"This product will ship in 5-11 days.","SC":"This product will ship in 5-11 days.","SD":"This product will ship in 5-11 days.","TN":"This product will ship in 5-11 days.","TX":"This product will ship in 11-17 days.","UT":"This product will ship in 8-14 days.","VT":"This product will ship in 7-13 days.","VA":"This product will ship in 8-14 days.","WA":"This product will ship in 11-17 days.","WV":"This product will ship in 4-11 days.","WI":"This product will ship in 6-12 days.","WY":"This product will ship in 6-12 days.","MO":"This product will ship in 6-12 days."}]' valueLead = JSON.parse(valueLead); // console.log('valeLead',valueLead, variant_id); var price = 38999 / 100; var valueLead_lead_time =""; if( valueLead != null){ valueLead.filter(function(data, item){ // if(valueLead.length == 1){ // if(valueLead[0].lead_time == undefined || valueLead[0].lead_time == 'undefined'){ // valueLead_lead_time = valueLead[0].default_lead_time; // }else{ // valueLead_lead_time = valueLead[0].lead_time; // } // var valueLead_pre_order = valueLead[0].pre_order; // }else{ valueLead_lead_time = data[state]; var valueLead_pre_order = data['pre_order']; // } if(valueLead_lead_time == undefined || valueLead_lead_time == "undefined"){ valueLead_lead_time = data['default_leadtime']; } var sort_stock_status = 'ASC'; if(valueLead_pre_order=='DISCONTINUED' || valueLead_pre_order =='OUT OF STOCK' || valueLead_pre_order=='COMING SOON'){ sort_stock_status = 'DESC'; } if(valueLead_pre_order =='CLEARANCE'){ // valueLead_lead_time = valueLead[0].lead_time; } if(state!=null){ valueLead_lead_time = data[state]; valueLead_lead_time = ( valueLead_lead_time == '' || valueLead_lead_time == undefined) ? data['default_lead_time']:valueLead_lead_time; }else{ valueLead_lead_time = valueLead['default_lead_time']; } variantLeadMessageArray.push({ id: variant_id, price: price, value: valueLead_lead_time, pre_order: valueLead_pre_order, sort_stock_status: sort_stock_status }); }); }else{ valueLead_lead_time = 'This product will ship in 1-3 weeks.'; valueLead_pre_order = 'N'; sort_stock_status = 'ASC'; variantLeadMessageArray.push({ id: variant_id, price: price, value: valueLead_lead_time, pre_order: valueLead_pre_order, sort_stock_status: sort_stock_status }); } var variant_id = 32261341937730; var valueLead = '[{"sku":"82035","pre_order":"IN STOCK","store":"US","default_leadtime":"This product will ship in 7-13 days.","dc":"999","mid":"1","AL":"This product will ship in 5-11 days.","AK":"Shipping is currently unavailable for this area. Please provide an alternate shipping location for delivery. For questions, please contact our Sales specialists at 1.877.306.8930","AZ":"This product will ship in 10-16 days.","AR":"This product will ship in 7-13 days.","CA":"This product will ship in 8-14 days.","CO":"This product will ship in 4-11 days.","CT":"This product will ship in 7-13 days.","DE":"This product will ship in 8-14 days.","DC":"This product will ship in 15-21 days.","FL":"This product will ship in 8-14 days.","GA":"This product will ship in 5-11 days.","HI":"Shipping is currently unavailable for this area. Please provide an alternate shipping location for delivery. For questions, please contact our Sales specialists at 1.877.306.8930","ID":"This product will ship in 10-16 days.","IL":"This product will ship in 7-13 days.","IN":"This product will ship in 6-12 days.","IA":"This product will ship in 7-13 days.","KS":"This product will ship in 5-11 days.","KY":"This product will ship in 5-11 days.","LA":"This product will ship in 6-12 days.","ME":"This product will ship in 9-15 days.","MD":"This product will ship in 8-14 days.","MA":"This product will ship in 6-12 days.","MI":"This product will ship in 8-14 days.","MN":"This product will ship in 8-14 days.","MS":"This product will ship in 7-13 days.","MT":"This product will ship in 9-15 days.","NE":"This product will ship in 7-13 days.","NV":"This product will ship in 7-13 days.","NH":"This product will ship in 6-12 days.","NJ":"This product will ship in 4-11 days.","NM":"This product will ship in 7-13 days.","NY":"This product will ship in 10-16 days.","NC":"This product will ship in 8-14 days.","ND":"This product will ship in 7-13 days.","OH":"This product will ship in 6-12 days.","OK":"This product will ship in 7-13 days.","OR":"This product will ship in 10-16 days.","PA":"This product will ship in 6-12 days.","PR":"Shipping is currently unavailable for this area. Please provide an alternate shipping location for delivery. For questions, please contact our Sales specialists at 1.877.306.8930","RI":"This product will ship in 5-11 days.","SC":"This product will ship in 5-11 days.","SD":"This product will ship in 5-11 days.","TN":"This product will ship in 5-11 days.","TX":"This product will ship in 11-17 days.","UT":"This product will ship in 8-14 days.","VT":"This product will ship in 7-13 days.","VA":"This product will ship in 8-14 days.","WA":"This product will ship in 11-17 days.","WV":"This product will ship in 4-11 days.","WI":"This product will ship in 6-12 days.","WY":"This product will ship in 6-12 days.","MO":"This product will ship in 6-12 days."}]' valueLead = JSON.parse(valueLead); // console.log('valeLead',valueLead, variant_id); var price = 26999 / 100; var valueLead_lead_time =""; if( valueLead != null){ valueLead.filter(function(data, item){ // if(valueLead.length == 1){ // if(valueLead[0].lead_time == undefined || valueLead[0].lead_time == 'undefined'){ // valueLead_lead_time = valueLead[0].default_lead_time; // }else{ // valueLead_lead_time = valueLead[0].lead_time; // } // var valueLead_pre_order = valueLead[0].pre_order; // }else{ valueLead_lead_time = data[state]; var valueLead_pre_order = data['pre_order']; // } if(valueLead_lead_time == undefined || valueLead_lead_time == "undefined"){ valueLead_lead_time = data['default_leadtime']; } var sort_stock_status = 'ASC'; if(valueLead_pre_order=='DISCONTINUED' || valueLead_pre_order =='OUT OF STOCK' || valueLead_pre_order=='COMING SOON'){ sort_stock_status = 'DESC'; } if(valueLead_pre_order =='CLEARANCE'){ // valueLead_lead_time = valueLead[0].lead_time; } if(state!=null){ valueLead_lead_time = data[state]; valueLead_lead_time = ( valueLead_lead_time == '' || valueLead_lead_time == undefined) ? data['default_lead_time']:valueLead_lead_time; }else{ valueLead_lead_time = valueLead['default_lead_time']; } variantLeadMessageArray.push({ id: variant_id, price: price, value: valueLead_lead_time, pre_order: valueLead_pre_order, sort_stock_status: sort_stock_status }); }); }else{ valueLead_lead_time = 'This product will ship in 1-3 weeks.'; valueLead_pre_order = 'N'; sort_stock_status = 'ASC'; variantLeadMessageArray.push({ id: variant_id, price: price, value: valueLead_lead_time, pre_order: valueLead_pre_order, sort_stock_status: sort_stock_status }); } var variant_id = 32261342593090; var valueLead = '[{"sku":"82037","pre_order":"IN STOCK","store":"US","default_leadtime":"This product will ship in 7-13 days.","dc":"999","mid":"1","AL":"This product will ship in 5-11 days.","AK":"Shipping is currently unavailable for this area. Please provide an alternate shipping location for delivery. For questions, please contact our Sales specialists at 1.877.306.8930","AZ":"This product will ship in 10-16 days.","AR":"This product will ship in 7-13 days.","CA":"This product will ship in 8-14 days.","CO":"This product will ship in 4-11 days.","CT":"This product will ship in 7-13 days.","DE":"This product will ship in 8-14 days.","DC":"This product will ship in 15-21 days.","FL":"This product will ship in 8-14 days.","GA":"This product will ship in 5-11 days.","HI":"Shipping is currently unavailable for this area. Please provide an alternate shipping location for delivery. For questions, please contact our Sales specialists at 1.877.306.8930","ID":"This product will ship in 10-16 days.","IL":"This product will ship in 7-13 days.","IN":"This product will ship in 6-12 days.","IA":"This product will ship in 7-13 days.","KS":"This product will ship in 5-11 days.","KY":"This product will ship in 5-11 days.","LA":"This product will ship in 6-12 days.","ME":"This product will ship in 9-15 days.","MD":"This product will ship in 8-14 days.","MA":"This product will ship in 6-12 days.","MI":"This product will ship in 8-14 days.","MN":"This product will ship in 8-14 days.","MS":"This product will ship in 7-13 days.","MT":"This product will ship in 9-15 days.","NE":"This product will ship in 7-13 days.","NV":"This product will ship in 7-13 days.","NH":"This product will ship in 6-12 days.","NJ":"This product will ship in 4-11 days.","NM":"This product will ship in 7-13 days.","NY":"This product will ship in 10-16 days.","NC":"This product will ship in 8-14 days.","ND":"This product will ship in 7-13 days.","OH":"This product will ship in 6-12 days.","OK":"This product will ship in 7-13 days.","OR":"This product will ship in 10-16 days.","PA":"This product will ship in 6-12 days.","PR":"Shipping is currently unavailable for this area. Please provide an alternate shipping location for delivery. For questions, please contact our Sales specialists at 1.877.306.8930","RI":"This product will ship in 5-11 days.","SC":"This product will ship in 5-11 days.","SD":"This product will ship in 5-11 days.","TN":"This product will ship in 5-11 days.","TX":"This product will ship in 11-17 days.","UT":"This product will ship in 8-14 days.","VT":"This product will ship in 7-13 days.","VA":"This product will ship in 8-14 days.","WA":"This product will ship in 11-17 days.","WV":"This product will ship in 4-11 days.","WI":"This product will ship in 6-12 days.","WY":"This product will ship in 6-12 days.","MO":"This product will ship in 6-12 days."}]' valueLead = JSON.parse(valueLead); // console.log('valeLead',valueLead, variant_id); var price = 38999 / 100; var valueLead_lead_time =""; if( valueLead != null){ valueLead.filter(function(data, item){ // if(valueLead.length == 1){ // if(valueLead[0].lead_time == undefined || valueLead[0].lead_time == 'undefined'){ // valueLead_lead_time = valueLead[0].default_lead_time; // }else{ // valueLead_lead_time = valueLead[0].lead_time; // } // var valueLead_pre_order = valueLead[0].pre_order; // }else{ valueLead_lead_time = data[state]; var valueLead_pre_order = data['pre_order']; // } if(valueLead_lead_time == undefined || valueLead_lead_time == "undefined"){ valueLead_lead_time = data['default_leadtime']; } var sort_stock_status = 'ASC'; if(valueLead_pre_order=='DISCONTINUED' || valueLead_pre_order =='OUT OF STOCK' || valueLead_pre_order=='COMING SOON'){ sort_stock_status = 'DESC'; } if(valueLead_pre_order =='CLEARANCE'){ // valueLead_lead_time = valueLead[0].lead_time; } if(state!=null){ valueLead_lead_time = data[state]; valueLead_lead_time = ( valueLead_lead_time == '' || valueLead_lead_time == undefined) ? data['default_lead_time']:valueLead_lead_time; }else{ valueLead_lead_time = valueLead['default_lead_time']; } variantLeadMessageArray.push({ id: variant_id, price: price, value: valueLead_lead_time, pre_order: valueLead_pre_order, sort_stock_status: sort_stock_status }); }); }else{ valueLead_lead_time = 'This product will ship in 1-3 weeks.'; valueLead_pre_order = 'N'; sort_stock_status = 'ASC'; variantLeadMessageArray.push({ id: variant_id, price: price, value: valueLead_lead_time, pre_order: valueLead_pre_order, sort_stock_status: sort_stock_status }); } var variantLeadMessageArrayCount = _.groupBy(variantLeadMessageArray, 'value'); var isExistStock = variantLeadMessageArray.filter(i => i.sort_stock_status =='ASC'); //console.log('variantLeadMessageArrayCount', variantLeadMessageArrayCount); var KeyI = 0; var minWeekValue = 0; var minWeekText = ''; $.each(variantLeadMessageArrayCount, function (key, value) { value.filter(function(data,index){ if(data['sort_stock_status']=='ASC'){ var leadArray = key.split(' '); ` `; if (leadArray.length > 4) { if (leadArray[4].toLowerCase() == 'in') { var weekArray = leadArray[5].split('-'); var startDay = parseInt(weekArray[0]); var endDay = parseInt(weekArray[1]); if (KeyI == 0) { minWeekValue = endDay; minWeekText = key; } if (endDay < minWeekValue) { minWeekValue = endDay; minWeekText = key; } KeyI++; } }else{ minWeekText = key; } } }); }); if(isExistStock.length == 0){ minWeekText = variantLeadMessageArray[0]['value']; } var sortStockStatus = variantLeadMessageArray; var sort = sortStockStatus.sort(function (a, b) { var StockStatusA = a.sort_stock_status; var StockStatusB = b.sort_stock_status; if (StockStatusA > StockStatusB) { return 1; } if (StockStatusA < StockStatusB) { return -1; } return 0; }); var items = sort.filter(i => minWeekText.includes(i.value)); // sort by value items.sort(function (a, b) { return a.value - b.value; }); // sort by name items.sort(function (a, b) { var nameA = a.price; var nameB = b.price; if (nameA > nameB) { return -1; } if (nameA < nameB) { return 1; } // names must be equal return 0; }); if(pro_current_variant !='' && main_page_url.search("variant=")==-1){ //var proVariants = '[{"id":32261339676738,"title":"White \/ 24 in.","option1":"White","option2":"24 in.","option3":null,"sku":"81035","requires_shipping":true,"taxable":true,"featured_image":{"id":14569892479042,"product_id":4623072657474,"position":1,"created_at":"2020-07-23T07:36:41-04:00","updated_at":"2020-08-27T02:58:11-04:00","alt":null,"width":2000,"height":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1428\/2706\/products\/81035_Primary01.jpg?v=1598511491","variant_ids":[32261339676738]},"available":true,"name":"Home Two Glass Door Wall Cabinet - White \/ 24 in.","public_title":"White \/ 24 in.","options":["White","24 in."],"price":26999,"weight":0,"compare_at_price":33999,"inventory_quantity":-39,"inventory_management":null,"inventory_policy":"deny","barcode":"676065810351","featured_media":{"alt":null,"id":6743323770946,"position":1,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":2000,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1428\/2706\/products\/81035_Primary01.jpg?v=1598511491"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":32261340168258,"title":"White \/ 36 in.","option1":"White","option2":"36 in.","option3":null,"sku":"81037","requires_shipping":true,"taxable":true,"featured_image":{"id":14489971228738,"product_id":4623072657474,"position":9,"created_at":"2020-07-03T11:35:19-04:00","updated_at":"2020-08-27T02:58:11-04:00","alt":null,"width":600,"height":450,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1428\/2706\/products\/81037_1.jpg?v=1598511491","variant_ids":[32261340168258]},"available":true,"name":"Home Two Glass Door Wall Cabinet - White \/ 36 in.","public_title":"White \/ 36 in.","options":["White","36 in."],"price":38999,"weight":0,"compare_at_price":48999,"inventory_quantity":-32,"inventory_management":null,"inventory_policy":"deny","barcode":"676065810375","featured_media":{"alt":null,"id":6663353532482,"position":9,"preview_image":{"aspect_ratio":1.333,"height":450,"width":600,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1428\/2706\/products\/81037_1.jpg?v=1598511491"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":32261341937730,"title":"Gray \/ 24 in.","option1":"Gray","option2":"24 in.","option3":null,"sku":"82035","requires_shipping":true,"taxable":true,"featured_image":{"id":14489972506690,"product_id":4623072657474,"position":17,"created_at":"2020-07-03T11:35:43-04:00","updated_at":"2020-08-27T02:58:11-04:00","alt":null,"width":600,"height":450,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1428\/2706\/products\/82035_1.jpg?v=1598511491","variant_ids":[32261341937730]},"available":true,"name":"Home Two Glass Door Wall Cabinet - Gray \/ 24 in.","public_title":"Gray \/ 24 in.","options":["Gray","24 in."],"price":26999,"weight":0,"compare_at_price":33999,"inventory_quantity":-16,"inventory_management":null,"inventory_policy":"deny","barcode":"676065820350","featured_media":{"alt":null,"id":6663354843202,"position":17,"preview_image":{"aspect_ratio":1.333,"height":450,"width":600,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1428\/2706\/products\/82035_1.jpg?v=1598511491"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":32261342593090,"title":"Gray \/ 36 in.","option1":"Gray","option2":"36 in.","option3":null,"sku":"82037","requires_shipping":true,"taxable":true,"featured_image":{"id":14538978492482,"product_id":4623072657474,"position":25,"created_at":"2020-07-15T15:51:38-04:00","updated_at":"2020-08-27T02:58:11-04:00","alt":null,"width":2000,"height":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1428\/2706\/products\/yekzaqeff4pq6mtjwh4p.jpg?v=1598511491","variant_ids":[32261342593090]},"available":true,"name":"Home Two Glass Door Wall Cabinet - Gray \/ 36 in.","public_title":"Gray \/ 36 in.","options":["Gray","36 in."],"price":38999,"weight":0,"compare_at_price":48999,"inventory_quantity":-8,"inventory_management":null,"inventory_policy":"deny","barcode":"676065820374","featured_media":{"alt":null,"id":6712390385730,"position":25,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":2000,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1428\/2706\/products\/yekzaqeff4pq6mtjwh4p.jpg?v=1598511491"}},"requires_selling_plan":false,"selling_plan_allocations":[]}]'; var proVariantsArr=[]; var variant_id = '32261339676738'; var option1 = 'White'; var option2= '24 in.'; var option3= ''; var product_id = '4623072657474'; proVariantsArr.push({ id:variant_id, option1: option1, option2: option2, option3: option3, product_id:product_id }); var variant_id = '32261340168258'; var option1 = 'White'; var option2= '36 in.'; var option3= ''; var product_id = '4623072657474'; proVariantsArr.push({ id:variant_id, option1: option1, option2: option2, option3: option3, product_id:product_id }); var variant_id = '32261341937730'; var option1 = 'Gray'; var option2= '24 in.'; var option3= ''; var product_id = '4623072657474'; proVariantsArr.push({ id:variant_id, option1: option1, option2: option2, option3: option3, product_id:product_id }); var variant_id = '32261342593090'; var option1 = 'Gray'; var option2= '36 in.'; var option3= ''; var product_id = '4623072657474'; proVariantsArr.push({ id:variant_id, option1: option1, option2: option2, option3: option3, product_id:product_id }); // console.log('proVariantsArr=>',proVariantsArr); // proVariants = JSON.parse(proVariants); if(items.length>0){ pro_current_variant = items[0].id; } var colorJsonData = proVariantsArr.filter(function(data,item){ return data.id == pro_current_variant; }); //console.log('colorJsonData',colorJsonData); var product_id = colorJsonData[0].product_id; var option1 = colorJsonData[0].option1; var option2 = colorJsonData[0].option2; var option3 = colorJsonData[0].option3; $('.swatch_item_main').removeClass('active'); var id = 'product-select-'+product_id+'-option-0'; $('#' + id).val(option1).trigger('change'); // $('.swatch_item_main[data-value="'+option1+'"]').addClass('active'); $('#' + id).find('.swatches_text').text(': '+option1); if(option2!=''){ //console.log('option',option2); var id = 'product-select-'+product_id+'-option-1'; //console.log('option',id,option2); //$('.swatch_item_main[data-value="'+option2+'"]').addClass('active'); //$('.swatches_text').text(': '+option2); $('#' + id).val(option2).trigger('change'); //$('#' + id).find('.swatches_text').text(': '+option2); } if(option3!=''){ //console.log('option',option2); var id = 'product-select-'+product_id+'-option-2'; //$('.swatch_item_main[data-value="'+option3+'"]').addClass('active'); //$('.swatches_text').text(': '+option3); $('#' + id).val(option3).trigger('change'); //$('#' + id).find('.swatches_text').text(': '+option3); } //console.log('sortStockStatus',sortStockStatus,items,sort); } } setTimeout(function(){ $('.adding_padding_swatches .selector-wrapper ').each(function () { var varient_label = $(this).find("label"); var varient_name = varient_label.text().split(':'); var find_varient_data = $(this).find(".swatch_item.active ").attr('data-value'); //console.log("find_varient_data ",find_varient_data); var overHang = ""; var InfoOverHang = ""; var InfoPopup = ""; if(varient_name[0] == "Overhang"){ var overHang = "Overhang"; var InfoOverHang = "Home Two Glass Door Wall Cabinet (8)"; var InfoPopup = "

x

Granite slabs with an overhang extend 20mm on both sides of the cabinet, allowing for the installation of side panels. Granite slabs without an overhang match the exact width of the cabinet.

"; } var value = "" +find_varient_data+" "; //console.log("value",value); varient_label.html(varient_name[0]+' '+InfoOverHang+' : '+ value +' ' +InfoPopup); }); }, 3000); setTimeout(function(){ $(".infoClick").hover(function(){ $('.waste_factor_id_modalVar').toggleClass("hide"); }); }, 4000); // $(document).on('click', '.swatch_item', function () { // var value = this.getAttribute('data-value'); // var container = $(this).closest('.swatch_container'); // container.find('.active').removeClass('active'); // var id = container.attr('data-id'); // $(this).addClass('active'); // $('#' + id).val(value).trigger('change'); // }); // $('.single-option-selector').change(function(){ // var value = $(this).val(); // console.log("value : "+value); // var container = $(this).closest('.swatch_container'); // container.find('.active').removeClass('active'); // var id = container.attr('data-id'); // $(this).addClass('active'); // $('#' + id).val(value).trigger('change'); // $('.swatches_text').text(': '+value); // var varient_name = $(this).parents().closest(".selector-wrapper").find("label").text().split(':'); // var value = ""+value+"+value>"; // $(this).parents().closest(".selector-wrapper").find("label").html(varient_name[0]+' : '+value); // $('#' + id).val(value).trigger('change'); // }) // setTimeout(function(){ // $('.adding_padding_swatches .selector-wrapper ').each(function () { // var varient_label = $(this).find("label"); // var varient_name = varient_label.text().split(':'); // var find_varient_data = $(this).find(".swatch_item.active ").attr('data-value'); // console.log("find_varient_data ",find_varient_data); // var value = ""+find_varient_data+"+value>"; // varient_label.html(varient_name[0]+' : '+value); // // $('.swatch_item.active').each(function () { // // var value = this.getAttribute('data-value'); // // var value = ""+value+"+value>"; // // // varient_label.html(varient_name[0]+' - '+value); // // }); // }); // }, 3000); });

').addClass("hide"); var update = {}; update[variant_id] = qty; //console.log("variant_id",variant_id); jQuery.post('/cart/update.js', { updates: update }).always(function (e) { Shopify.getCart(function(cart){ $(".CartCount").text(cart.items.length); }); var button_text = $(".add-to-cart_main > span").text(); /*todo scroll to bundle*/ var stickyHeaderHeight = $('.js-sticky-header').height(), bundlesContainer = $('.form-bundle-title').parent(); var check_class = $(".product_list").children().hasClass("productListing"); //console.log(check_class); if (check_class == true) { $(".add-to-cart_main > span").text("Thank You"); callEnhanceImp(); setTimeout(function() {// $(".add-to-cart_main > span").text(button_text); $(".add-to-cart_main > span").text(previous_button_text); }, 1000); // $('html, body').animate({ // scrollTop: 700 // }, 2000); $('html, body').animate({ scrollTop: $(".productListing:first").offset().top - 100 }, 2000); }else{ $(".add-to-cart_main > span").text("Thank You"); callEnhanceImp(); setTimeout(function() {// $(".add-to-cart_main > span").text(button_text); $(".add-to-cart_main > span").text(previous_button_text); }, 1000); } }); setTimeout(autoload, 2000); }); $(document).on('click', '.info-item--label', function () { /*$('.mobile-product-info .info-item').removeClass('active');*/ //console.log($(this).parent()); $(this).parent().toggleClass('active'); $(this).parent().next('.info-item--content').slideToggle(); }); // for Enhanced eCommerce Implementation function callEnhanceImp(){ var product_id = 4623072657474; var product_title = "Home Two Glass Door Wall Cabinet"; var price = $(".price_Product > .price__is ").text().replace('$',''); if(price ==""){ var price = "$269.99"; } // var variant_sku = $(".product-sku").attr("content"); var variant_id = $('[name=id]').val(); var product_variant_id = 32261339676738; if(product_variant_id == variant_id){ var variant_name = 'White / 24 in.'; } var product_variant_id = 32261340168258; if(product_variant_id == variant_id){ var variant_name = 'White / 36 in.'; } var product_variant_id = 32261341937730; if(product_variant_id == variant_id){ var variant_name = 'Gray / 24 in.'; } var product_variant_id = 32261342593090; if(product_variant_id == variant_id){ var variant_name = 'Gray / 36 in.'; } var variant_sku = 'White / 24 in.'; var qty = $(".quantity__main").val(); var category_data = "Bestseller"; category_data = category_data.split(":"); category_data = category_data[1]; //console.log("add to cart working"); dataLayer.push({ 'event': 'addToCart', 'ecommerce': { 'currencyCode': 'USD', 'add': { // 'add' actionFieldObject measures. 'products': [{ // adding a product to a shopping cart. 'name': product_title, 'id': product_id, 'price': price, 'brand': 'NewAge', 'category': category_data, 'variant': variant_name, 'quantity': qty,// will change if the user clicks on offer }] } } }); }

Top Articles

You might also like

Latest Posts

Article information

Author: Duncan Muller

Last Updated: 12/07/2022

Views: 5841

Rating: 4.9 / 5 (79 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Duncan Muller

Birthday: 1997-01-13

Address: Apt. 505 914 Phillip Crossroad, O'Konborough, NV 62411

Phone: +8555305800947

Job: Construction Agent

Hobby: Shopping, Table tennis, Snowboarding, Rafting, Motor sports, Homebrewing, Taxidermy

Introduction: My name is Duncan Muller, I am a enchanting, good, gentle, modern, tasty, nice, elegant person who loves writing and wants to share my knowledge and understanding with you.