3pk F2WC9I1, ICE2 Ice Maker Water Filter by Cleardrop

0 out of 5.0
0 global ratings
  • 5 stars
    0%
  • 4 stars
    0%
  • 3 stars
    0%
  • 2 stars
    0%
  • 1 stars
    0%
See All Customer Reviews >
SKU : CD4-3P
  • Perfect fit, easy replacement, no water leakage.
  • Enjoy fresh, clean filtered water by Cleardrop.
  • Efficient filtration of contaminants through activated carbon blocks.
  • Food-grade and BPA-free material.
  • Long lasting up to 9 months or 2000 gallons.
  • No Tax, No VAT, Free Shipping
$ 52.99
$ 82.99
Quantity
- +
Sold Out
EASY RETURN
30 Days Return Warranty
Return Policy
FREE SHIPPING
Delivery Within 8 Business Days
Shipping Policy
  • Perfect fit, easy replacement, no water leakage.
  • Enjoy fresh, clean filtered water by Cleardrop.
  • Efficient filtration of contaminants through activated carbon blocks.
  • Food-grade and BPA-free material.
  • Long lasting up to 9 months or 2000 gallons.
  • No Tax, No VAT, Free Shipping
  • Why Us

    PP Rigid Shell
    Coconut Shell Carbon Block
    Precision Design

    Contaminants
    Reduction

    Reduce impurities in water for better tasting water.

    Replacement
    Frequency

    We recommend replacing it every 9 months or after filtering 2000 gallons of water to ensure the performance of the filter.

    REDUCE THE USE OF
    PLASTIC BOTTLES

    Drink filtered water and reduce the use of plastic bottles.

    Cleardrop brand

    Cleardrop brand

    Cleardrop is committed to reducing contaminants in drinking water and increasing everyone's awareness of drinking filtered water. In order to make everyone trust and choose Cleardrop, high-quality and low-price are our principles.

Specifications
Brand Cleardrop
Part Number CD4
Filter Life 9 Months / 2000 Gallons
Shipping Length9.21 in
Shipping Width7.99 in
Shipping Height 2.76 in
Shipping Weight 1.63 lb

The Cleardrop CD4 is compatible with following models:

Replaces Models
10565350A, 3019657, 4396808, AP5801390, ENF2WC9I1, F2WC9I1, ICE2, KTAF2WC9I1, MAYF2WCPI1, P6RFWG2K, PS8759230, P6RFGEG2K, P6RFKG2K, W10480323, W10565350, W10565350A, WHIRLF2WC9I1, 10689553100, 10689593100, 10689599100, JIM158XYCX0, JIM158XYCX1, JIM158XYRS0, JIM158XYRS1, MIM1554ZRS0, MIM1555ZRS0, GI15NDXZB0, GI15NDXZB1, GI15NDXZQ0, GI15NDXZQ1, GI15NDXZS0, GI15NDXZS1, GI15PDXZS0, KUIC15NHZS0, KUIC15PHZS0, KUIC15POZP0, KUIC18NNZS0, KUIC18PNZS0, KUID308ESS0, KUID308ESS1, KUID508ESS0, KUID508ESS1, KUIO18NNZS0, KUIO18NNZS1, KUIS15NNZB0, KUIS15NNZW0, KUIS18NNZB0, KUIS18NNZW0, KUIS18PNZB0, KUIS18PNZB1, KUIS18PNZW0, KUIS18PNZW1, KUIX305EBL0, KUIX305ESS0, KUIX305ESS1, KUIX305EWH0, KUIX505ESS0, KUIX505ESS1, KUID308EBL, KUID308EPA, KUID308EWH, KUIX505EPA, KUIX305ESS2
Customer reviews
0 out of 5.0 0 global ratings
  • 5 stars
    0%
  • 4 stars
    0%
  • 3 stars
    0%
  • 2 stars
    0%
  • 1 stars
    0%

Review this product

Share your thoughts with other customers
// 评星显示消失 $('.Arating_box .Arating').click(function(){ $('.Arating_toggle').css('display','block'); }); $('.Arating_box').mouseleave(function(){ setTimeout(function(){ $('.Arating_toggle').css('display','none'); },1500); }); // 搜索内容初始化 var category_id = 0; var search_word = ''; // 手机端搜索 $(function(){ $('.sea_input').keydown(function(event){ var keycode = event.which; var keyword = $(this).val(); if(13 == keycode || 38 == keycode || 40 == keycode){ if(keyword == ''){ alert("Please enter search content."); }else{ window.location.href = "/catalogsearch/index?q="+keyword; } } }); // 搜索按钮点击 $('#index_search_icon').click(function(){ var keyword = $('#searchword').val(); if(keyword == ''){ alert("Please enter search content."); }else{ window.location.href = "/catalogsearch/index?q="+keyword; } }); $('.search_submit').click(function(){ var keyword = $(this).prev().val(); if(keyword == ''){ alert("Please enter search content."); }else{ window.location.href = "/catalogsearch/index?q="+keyword; } }); }); // 点击.brand $(document).on('click','.brand',function(){ $('.brands').css('display','block'); setTimeout(function(){ $('.my_search .loading').css('display','none'); },2000); }); $(document).on('click','.branditem',function(){ // 加载点击项 var fullname = $(this).html(); if(fullname.length > 9){ var partname = fullname.substr(0,9) + '...'; }else{ var partname = fullname; } $('#brand').html(partname); $('#brand').attr('title',fullname); $('#brand').prev().val(fullname); $('.brands').css('display','none'); // 调取搜索产品方法 category_id = $(this).attr('data-id'); searchpro(); }); $(document).on('input propertychange','#searchword',function(){ // 调取搜索产品方法 search_word = $(this).val(); searchpro(); }); $('#searchword').keypress(function(event){ var keynum = (event.keyCode ? event.keyCode : event.which); search_word = $(this).val(); if(keynum == '13'){ if(search_word != ''){ if(category_id == 0){ window.location.href = "/catalogsearch/index?q="+search_word; }else{ window.location.href = "/catalogsearch/index?q="+search_word+"&c="+category_id; } }else{ alert("Please Enter Your Search Content."); } } }); $('.brandname').blur(function(){ var brandname = $(this).val(); $.ajax({ type:'post', data: { name:brandname, _csrf:$('.thiscsrf').val() }, url:'/catalog/product/searchcategory', success:function(res){ var response = JSON.parse(res); if(response.code == 200){ var html = ""; var list = response.data; for(var i = 0;i < list.length;i++){ html += "
  • "+list[i].name+"
  • "; } $('#listul ul').empty(); $('#listul ul').html(html); } }, error:function (XMLHttpRequest, textStatus, errorThrown){} }); }); $('.submit1,.search_submit').click(function(){ var searchcnt = $(this).prev().val(); searchcnt = searchcnt.trim(); if(searchcnt == ''){ alert('Please Enter Your Search Content.'); return false; } }); $('body').click(function(e) { var target = $(e.target); if(target.parents('#sresult-pc').length == 0 && target.parents('.brands').length == 0){ if($('.js_mySearch_pc').hasClass('active')){ $('.js_mySearch_pc').removeClass('active'); } } if(target.is('.brandname') || target.is('.find') || target.is('#listul') || target.is('#popularul') || target.is('.brands') || target.is('#popular') || target.is('.popularspan')){ $('.brands').css('display','block'); }else{ $('.brands').css('display','none'); } }); // 搜索产品方法 function searchpro(){ var bindelem = 'sresult-pc'; $.ajax({ url:"http://testfilter.dyyseo.com/catalog/product/searchpro", type:'get', data:{ searchcnt:search_word, searchcate:category_id, _csrf:$('.thiscsrf').val() }, success:function(res){ var response = JSON.parse(res); if(response.code == 200){ var items = response.data; var i; var lihtml = ""; $('#'+bindelem).empty(); $('#'+bindelem).html(lihtml); if(items.length > 0){ $('.js_mySearch_pc').addClass('active'); }else{ $('.js_mySearch_pc').removeClass('active'); } } } }); } // GTM function product_click(productObj) { dataLayer.push({ 'event': 'productClick', 'ecommerce': { 'click': { 'products': [{ 'name': productObj.name, 'id': productObj.sku, 'price': productObj.special_price, 'position': 1 }] } }, }); } var newwindow; var intId; function facebooklogin(){ var screenX = typeof window.screenX != 'undefined' ? window.screenX : window.screenLeft, screenY = typeof window.screenY != 'undefined' ? window.screenY : window.screenTop, outerWidth = typeof window.outerWidth != 'undefined' ? window.outerWidth : document.body.clientWidth, outerHeight = typeof window.outerHeight != 'undefined' ? window.outerHeight : (document.body.clientHeight - 22), width = 800, height = 450, left = parseInt(screenX + ((outerWidth - width) / 2), 10), top = parseInt(screenY + ((outerHeight - height) / 2.5), 10), features = ( 'width=' + width + ',height=' + height + ',left=' + left + ',top=' + top ); newwindow=window.open('https://www.facebook.com/v2.10/dialog/oauth?client_id=108618299786621&state=b131743cbdc1ed06abcf17686c750cdd&response_type=code&sdk=php-sdk-5.7.0&redirect_uri=http%3A%2F%2Ftestfilter.dyyseo.com%2Fcustomer%2Ffacebook%2Floginv&scope=email','Login_by_facebook',features); if (window.focus) {newwindow.focus()} return false; } function googlelogin(){ var screenX = typeof window.screenX != 'undefined' ? window.screenX : window.screenLeft, screenY = typeof window.screenY != 'undefined' ? window.screenY : window.screenTop, outerWidth = typeof window.outerWidth != 'undefined' ? window.outerWidth : document.body.clientWidth, outerHeight = typeof window.outerHeight != 'undefined' ? window.outerHeight : (document.body.clientHeight - 22), width = 800, height = 650, left = parseInt(screenX + ((outerWidth - width) / 2), 10), top = parseInt(screenY + ((outerHeight - height) / 2.5), 10), features = ( 'width=' + width + ',height=' + height + ',left=' + left + ',top=' + top ); newwindow=window.open('https://accounts.google.com/o/oauth2/auth?response_type=code&redirect_uri=http%3A%2F%2Ftestfilter.dyyseo.com%2Fcustomer%2Fgoogle%2Floginv&client_id=380372364773-qdj1seag9bh2n0pgrhcv2r5uoc58ltp3.apps.googleusercontent.com&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email&access_type=offline&approval_prompt=auto ','Login_by_facebook',features); if (window.focus) {newwindow.focus()} return false; } $(document).ready(function(){ $(".email_register_resend").click(function(){ emailRegisterResendUrl = "http://testfilter.dyyseo.com/customer/account/resendregisteremail"; $.ajax({ async:true, timeout: 6000, dataType: 'json', type:'get', data: { "email": "" }, url:emailRegisterResendUrl, success:function(data, textStatus){ // if (data.resendStatus == 'success') { //$(".resend_text").html('resend register email success'); alert("resend register email success") } else { //$(".resend_text").html('resend register email fail'); alert("resend register email fail") } }, error:function (XMLHttpRequest, textStatus, errorThrown){} }); }); }); // $('.searchipt').bind('input propertychange', function(){ // var searchcnt = $(this).val(); // var bindelem = $(this).attr('bindelem'); // $.ajax({ // url:"http://testfilter.dyyseo.com/catalog/product/searchpro", // type:'get', // data:{ // searchcnt:searchcnt, // _csrf:$('.thiscsrf').val() // }, // success:function(res){ // var response = JSON.parse(res); // if(response.code == 200){ // var items = response.data; // var i; // var lihtml = ""; // $('#'+bindelem).empty(); // $('#'+bindelem).html(lihtml); // if(items.length > 0){ // if(bindelem == 'sresult-pc'){ // $('.js_mySearch_pc').addClass('active'); // }else{ // $('.js_mySearch_mobile').addClass('active'); // } // }else{ // if(bindelem == 'sresult-pc'){ // $('.js_mySearch_pc').removeClass('active'); // }else{ // $('.js_mySearch_mobile').removeClass('active'); // } // } // } // } // }); // }); // CSRF信息 var csrfName = "_csrf"; var csrfVal = "V5A27gYFSNbZfGrBPkhHcDswBTiEdj1sskmITvzqmAIe5n6fcTEk5Zo-PPl7GiglcgdRbr05e1X_LfJ-pqLSMQ=="; // 公用数据 var updateCartInfoUrl = "http://testfilter.dyyseo.com/checkout/cart/updateinfo"; function limitpurchase(){ alert('This product cannot be purchased separately'); } $(function() { // 分享首页 sharePage(); // Header切换 // $(document).on("mousewheel DOMMouseScroll",function (e) { // var delta = (e.originalEvent.wheelDelta && (e.originalEvent.wheelDelta > 0 ? 1 : -1)) || // (e.originalEvent.detail && (e.originalEvent.detail > 0 ? -1 : 1)); // if (delta > 0) { // $("header").removeClass("large").addClass("small"); // if ($(document).scrollTop() < 240) { // $("header").removeClass("small").addClass("large"); // } // } else if (delta < 0) { // $("header").removeClass("small").addClass("large"); // } // }); $(document).on("scroll", function() { // if($(document).scrollTop() > 180) { // $('header').css('box-shadow','2px 2px 2px rgb(200 200 200)'); // }else{ // $('header').css('box-shadow','none'); // } }); // 设置全选框 selectall = ""; selectAllChecked = false; if (selectall == 1) { selectAllChecked = true; } else { item_select_all = 1; $(".cart_select_item").each(function () { checked = $(this).is(':checked'); if (checked == false) { item_select_all = 0; } }); if (item_select_all == 1) { selectAllChecked = true; } } $(".cart_select_all").attr("checked", selectAllChecked); currentUrl = "http://testfilter.dyyseo.com/checkout/cart"; updateCartInfoUrl = "http://testfilter.dyyseo.com/checkout/cart/updateinfo"; selectOneProductUrl = "http://testfilter.dyyseo.com/checkout/cart/selectone"; selectAllProductUrl = "http://testfilter.dyyseo.com/checkout/cart/selectall"; // 减少购物车数量 $(document).on("click",".cartqtydown",function () { $item_id = $(this).attr("rel"); num = $("#ajax_qty_" + $item_id).val(); if (num > 1) { $current_qty = --num; $data = { item_id: $item_id, up_type: "less_one" }; $data[csrfName] = csrfVal; jQuery.ajax({ async: true, timeout: 6000, dataType: 'json', type: 'post', data: $data, url: updateCartInfoUrl, success: function (data, textStatus) { if (data.status == 'success') { $(document).find(".ajax_qty_" + $item_id).html($current_qty); $(document).find("#ajax_qty_" + $item_id).val($current_qty); $(document).find(".js_cart_items").html(data.items_count); $(document).find(".ajax-cart-grand_total").html("$" + data.grand_total); $(document).find(".ajax-cart-product_total").html("$" + data.product_total); $(document).find(".ajax-cart-coupon_cost").html("$" + data.coupon_cost); $.each(data.products,function(id,obj){ $(document).find('.cart_product_price_'+obj.item_id).html("$" + obj.base_product_row_price.toFixed(2)); }); } else { alert(data.content); } }, error: function (XMLHttpRequest, textStatus, errorThrown) { } }); }else{ // 购物车数量仅剩一件 $(this).parent().next().find('.remove').eq(0).click(); } }); // 增加购物车数量 $(document).on("click",".cartqtyup",function () { $item_id = $(this).attr("rel"); $qty = $("#ajax_qty_" + $item_id).val(); $data = { item_id: $item_id, up_type: "add_one" }; $data[csrfName] = csrfVal; $current_qty = ++$qty; $.ajax({ async: true, timeout: 6000, dataType: 'json', type: 'post', data: $data, url: updateCartInfoUrl, success: function (data, textStatus) { if (data.status == 'success') { $(document).find(".ajax_qty_" + $item_id).html($current_qty); $(document).find("#ajax_qty_" + $item_id).val($current_qty); $(document).find(".js_cart_items").html(data.items_count); $(document).find(".ajax-cart-grand_total").html("$" + data.grand_total); $(document).find(".ajax-cart-product_total").html("$" + data.product_total); $(document).find(".ajax-cart-coupon_cost").html("$" + data.coupon_cost); $.each(data.products,function(id,obj){ $(document).find('.cart_product_price_'+obj.item_id).html("$" + obj.base_product_row_price.toFixed(2)); }); // 结账页刷新页面 } else { alert(data.content); } }, error: function (XMLHttpRequest, textStatus, errorThrown) { } }); }); }); // 减少购物车数量AJAX请求 function ajaxcartqtydown(obj) { $item_id = $(obj).attr("rel"); num = $(".ajax_qty_" + $item_id).text(); if (num > 1) { $current_qty = --num; $data = { item_id: $item_id, up_type: "less_one" }; $data[csrfName] = csrfVal; jQuery.ajax({ async: true, timeout: 6000, dataType: 'json', type: 'post', data: $data, url: updateCartInfoUrl, success: function (data, textStatus) { if (data.status == 'success') { $(".ajax_qty_" + $item_id).html($current_qty); $("#ajax_qty_" + $item_id).val($current_qty); if ($current_qty == 1) { $(obj).html(""); $(obj).attr('onclick', "ajaxbtnremove(this)") } $(".js_cart_items").html(data.items_count); $(".ajax-cart-grand_total").html("$" + data.grand_total); $(".ajax-cart-product_total").html("$" + data.product_total); $(".ajax-cart-coupon_cost").html("-" + data.coupon_cost); $("#popup-cart").html(data.popup_html); } else { alert(data.content); } }, error: function (XMLHttpRequest, textStatus, errorThrown) { } }); } } // 增加购物车数量AJAX请求 function ajaxcartqtyup(obj) { $item_id = $(obj).attr("rel"); $qty = $(".ajax_qty_" + $item_id).text(); $data = { item_id: $item_id, up_type: "add_one" }; $data[csrfName] = csrfVal; $current_qty = ++$qty; $.ajax({ async: true, timeout: 6000, dataType: 'json', type: 'post', data: $data, url: updateCartInfoUrl, success: function (data, textStatus) { if (data.status == 'success') { $(".ajax_qty_" + $item_id).html($current_qty); $("#ajax_qty_" + $item_id).val($current_qty); if ($current_qty > 1) { $("#ajax_sub_qty_" + $item_id).html(""); $("#ajax_sub_qty_" + $item_id).attr('onclick', "ajaxcartqtydown(this)") } $(".js_cart_items").html(data.items_count); $(".ajax-cart-grand_total").html("$" + data.grand_total); $(".ajax-cart-product_total").html("$" + data.product_total); $(".ajax-cart-coupon_cost").html("-" + data.coupon_cost); $("#popup-cart").html(data.popup_html); } else { alert(data.content); } }, error: function (XMLHttpRequest, textStatus, errorThrown) { } }); } // 移除购物车内容AJAX请求 function ajaxbtnremove(obj) { $item_id = $(obj).attr("rel"); $data = { item_id: $item_id, up_type: "remove" }; $data[csrfName] = csrfVal; $.ajax({ async: true, timeout: 6000, dataType: 'json', type: 'post', data: $data, url: updateCartInfoUrl, success: function (data, textStatus) { if (data.status == 'success') { $(".ajax_tr_" + $item_id).remove(); $(".js_cart_items").html(data.items_count); $(".ajax-cart-grand_total").html("$" + data.grand_total); $(".ajax-cart-product_total").html("$" + data.product_total); $(".ajax-cart-coupon_cost").html("-" + data.coupon_cost); $('#popup-cart').html(data.popup_html); var tr_length = $(".checkout-cart-table tr").length; var menu_length = $(".menu-ajax-table tr").length; if (data.items_count == 0) { $(".checkout-cart-row").html('
    \n' + ' \n' + '
    \n' + ' Your Shopping Cart is empty Start shopping now!\n' + '
    \n' + ' Please log in to view the products you have previously added to your Shopping Cart.
    \n' + '\n' + '
    '); img_url = "https://imgfilter.dyyseo.com"; $("#cart-table").html('
    \n' + ' \n' + '

    Your cart is empty.

    \n' + ' shop now\n' + '
    '); $("#popup-cart").html("

    Your cart is empty.

    shop now
    "); } } }, error: function (XMLHttpRequest, textStatus, errorThrown) { } }); // 删除购物车数据 $(".btn-remove").click(function () { $item_id = $(this).attr("rel"); $type = $(this).attr("data-type"); $sku = $(this).attr("sku"); //gtm if ($type == 'pc') { $price = $(this).parent().siblings().eq(2).html().substring(1); $qty = $(this).parent().siblings().eq(3).children("span").children("input").val(); $name = $(this).parent().siblings().eq(1).children("div").children("a").text(); } else { $qty = $("ajax_qty_" + $item_id).text(); $name = $(this).attr("data-name"); $price = $(this).attr("price"); } $data = { item_id: $item_id, up_type: "remove" }; $data[csrfName] = csrfVal; $.ajax({ async: true, timeout: 6000, dataType: 'json', type: 'post', data: $data, url: updateCartInfoUrl, success: function (data, textStatus) { if (data.status == 'success') { dataLayer.push({ 'event': 'removeFromCart', 'ecommerce': { 'remove': { 'products': [{ 'name': $name, 'id': $sku, 'price': $price, 'quantity': $qty }] } } }); window.location.href = currentUrl; } }, error: function (XMLHttpRequest, textStatus, errorThrown) { } }); }); $(".cart_select_item").click(function () { $item_id = $(this).attr("rel"); checked = $(this).is(':checked'); checked = checked ? 1 : 0; $data = { item_id: $item_id, checked: checked }; $data[csrfName] = csrfVal; $.ajax({ async: true, timeout: 6000, dataType: 'json', type: 'post', data: $data, url: selectOneProductUrl, success: function (data, textStatus) { if (data.status == 'success') { window.location.href = currentUrl; } }, error: function (XMLHttpRequest, textStatus, errorThrown) { } }); }); $(".cart_select_all").click(function () { checked = $(this).is(':checked'); checked = checked ? 1 : 0; $data = { checked: checked }; $data[csrfName] = csrfVal; selectCurrentUrl = currentUrl + '?selectall=' + checked; $.ajax({ async: true, timeout: 6000, dataType: 'json', type: 'post', data: $data, url: selectAllProductUrl, success: function (data, textStatus) { if (data.status == 'success') { window.location.href = selectCurrentUrl; } }, error: function (XMLHttpRequest, textStatus, errorThrown) { } }); }); $(".add_coupon_submit").click(function () { coupon_code = $("#coupon_code").val(); coupon_type = $(".couponType").val(); coupon_url = ""; if ("1") { if (coupon_type == 2) { coupon_url = "http://testfilter.dyyseo.com/checkout/cart/ajaxaddcoupon"; } else if (coupon_type == 1) { coupon_url = "http://testfilter.dyyseo.com/checkout/cart/ajaxcancelcoupon"; } } else { if (coupon_type == 2) { coupon_url = "http://testfilter.dyyseo.com/checkout/cart/addcoupon"; } else if (coupon_type == 1) { coupon_url = "http://testfilter.dyyseo.com/checkout/cart/cancelcoupon"; } } $data = {"coupon_code": coupon_code}; $data[csrfName] = csrfVal; $.ajax({ async: true, timeout: 6000, dataType: 'json', type: 'post', data: $data, url: coupon_url, success: function (data) { if (data.status == 'success') { window.location.href = currentUrl; } else if (data.content == 'nologin') { window.location.href = "http://testfilter.dyyseo.com/customer/account/login"; } else { $(".coupon_add_log").html(data.content); } }, error: function (XMLHttpRequest, textStatus, errorThrown) { } }); }); } // 数量减少方法 function add_sub(product_id){ num = $("#qty_"+product_id).val(); if (num > 1) { num--; $("#qty_"+product_id).val(num); } } // 数量增加方法 function add_add(product_id){ num = $("#qty_"+product_id).val(); num++; $("#qty_"+product_id).val(num); } // 加入购物车AJAX请求 function add_to_cart(product_id,clickType){ num = $("#qty_"+product_id).val(); csrfName = "_csrf"; csrfVal = "V5A27gYFSNbZfGrBPkhHcDswBTiEdj1sskmITvzqmAIe5n6fcTEk5Zo-PPl7GiglcgdRbr05e1X_LfJ-pqLSMQ=="; $(this).addClass("dataUp"); addToCartUrl = "http://testfilter.dyyseo.com/checkout/cart/add"; $data = {}; $data['custom_option'] = null; $data['product_id'] = product_id; $data['qty'] = num; if (csrfName && csrfVal) { $data[csrfName] = csrfVal; } jQuery.ajax({ async: true, timeout: 6000, dataType: 'json', type: 'post', data: $data, url: addToCartUrl, success: function (data, textStatus) { if (data.status == 'success') { if (clickType == 'buy_now') { window.location.href = "http://testfilter.dyyseo.com/checkout"; } else { $(".js_cart_items").html(data.items_count); $("#cart-table").html(data.cart_content); $("#popup-cart").html(data.popup_html); $(function() { $('.autoplay3').slick({ infinite: true, speed: 1000, slidesToShow: 3, slidesToScroll: 1, autoplay: true, autoplaySpeed: 3000, dots: true, responsive: [{ breakpoint: 992, settings: { slidesToShow: 2, slidesToScroll: 1, autoplay: true, autoplaySpeed: 3000, infinite: true, dots: true, } }, { breakpoint: 768, settings: { slidesToShow: 2, slidesToScroll: 1, autoplay: true, autoplaySpeed: 3000, dots: true, } }, { breakpoint: 480, settings: { slidesToShow: 2, slidesToScroll: 1, autoplay: true, autoplaySpeed: 3000, dots: true, } } ] }) }); //gtm dataLayer.push({ 'event': 'addToCart', 'ecommerce': { 'currencyCode': '', 'add': { 'products': [{ 'name': '', 'id': '', 'price': "", 'category': "", 'quantity': num, }] } } }); $(document).find('#cart_a').click(); } } else { content = data.content; $(".addProductToCart").removeClass("dataUp"); alert(content); } }, error: function (XMLHttpRequest, textStatus, errorThrown) { } }); } // 添加单个商品至购物车 function add_this_product(product_id,refresh,checkempty){ if(product_id == 0){return false;} // 验证购物车是否为空 if(checkempty == 1){ var cart_length = $('#popup-cart').find('li').length; if(cart_length < 1){ alert('This product cannot be purchased separately.'); return false; } } var num = 1; csrfName = "_csrf"; csrfVal = "V5A27gYFSNbZfGrBPkhHcDswBTiEdj1sskmITvzqmAIe5n6fcTEk5Zo-PPl7GiglcgdRbr05e1X_LfJ-pqLSMQ=="; $(this).addClass("dataUp"); // Ajax数据 addToCartUrl = "http://testfilter.dyyseo.com/checkout/cart/add"; $data = {}; $data['custom_option'] = null; $data['product_id'] = product_id; $data['qty'] = num; if (csrfName && csrfVal) { $data[csrfName] = csrfVal; } // Ajax请求 jQuery.ajax({ async: true, timeout: 6000, dataType: 'json', type: 'post', data: $data, url: addToCartUrl, success: function (data, textStatus) { if (data.status == 'success') { $(".js_cart_items").html(data.items_count); $("#cart-table").html(data.cart_content); $("#popup-cart").html(data.popup_html); $(function() { $('.autoplay3').slick({ infinite: true, speed: 1000, slidesToShow: 3, slidesToScroll: 1, autoplay: true, autoplaySpeed: 3000, dots: true, responsive: [{ breakpoint: 992, settings: { slidesToShow: 2, slidesToScroll: 1, autoplay: true, autoplaySpeed: 3000, infinite: true, dots: true, } }, { breakpoint: 768, settings: { slidesToShow: 2, slidesToScroll: 1, autoplay: true, autoplaySpeed: 3000, dots: true, } }, { breakpoint: 480, settings: { slidesToShow: 2, slidesToScroll: 1, autoplay: true, autoplaySpeed: 3000, dots: true, } } ] }) }); dataLayer.push({ 'event': 'addToCart', 'ecommerce': { 'currencyCode': '', 'add': { 'products': [{ 'name': '', 'id': '', 'price': "", 'category': "", 'quantity': num, }] } } }); } else { content = data.content; $(".addProductToCart").removeClass("dataUp"); } }, error: function (XMLHttpRequest, textStatus, errorThrown) { } }); if(refresh == 1){ window.location.reload(); } }