"; // console.log(row); totalitems_amount = parseFloat(totalitems_amount) + ( parseFloat(item.Price) * parseFloat(item.Qty) ); totalcartitems = parseInt(totalcartitems) + parseInt(item.Qty); $("#cart-items").append(row1); } //console.log(totalcartitems); $("#cart-items-amount").html(totalitems_amount.toFixed(2)); $("#total-cart-items").html(totalcartitems); //addcartprocess(dataString) } setTimeout(function() { if (localStorage.cart.length > 2) { $.ajax({ url: $("#baseurl").val()+'Cart/cart_processnew', type: 'POST', data: localStorage.cart, dataType: 'json', async: false, cache: true, success: function (response) { console.log(response); } }); } }, 2000); function addcartprocess(dataString) { $('#checkoutbtn').attr("disabled",true); $.ajax({ url: $("#baseurl").val()+'Cart/cart_process', type: 'POST', data: {SKU:dataString.SKU, Qty:dataString.Qty, Detail:dataString.Details, InvNO:dataString.InvNO}, dataType: 'json', // async: false, // cache: true, success: function (response) { //console.log(response); } }); $('#checkoutbtn').attr("disabled",false); } '; $.each(pincode,function(index,el){ pincode1 += ""+el+""; }); $('#pincode').html(pincode1); } else { $('#pincode').html('Record not found'); } } $('#signup').on("click",function(){ $('.signin').addClass('hide'); $('.signup').removeClass('hide'); $('.forgot').addClass('hide'); }); $('#signup2').on("click",function(){ $('.signin').addClass('hide'); $('.signup').removeClass('hide'); $('.forgot').addClass('hide'); }); $('#signin').on("click",function(){ $('.signup').addClass('hide'); $('.signin').removeClass('hide'); $('.forgot').addClass('hide'); }); $('#signin1').on("click",function(){ $('.signup').addClass('hide'); $('.signin').removeClass('hide'); $('.forgot').addClass('hide'); }); $('#signin2').on("click",function(){ $('.signup').addClass('hide'); $('.signin').removeClass('hide'); $('.forgot').addClass('hide'); }); $('#signin3').on("click",function(){ $('.signup').addClass('hide'); $('.signin').removeClass('hide'); $('.forgot').addClass('hide'); }); $('#forgot').on("click",function(){ $('.forgot').removeClass('hide'); $('.signup').addClass('hide'); $('.signin').addClass('hide'); }); $(document).ready(function(){ $('#suggestion1').addClass('suggestion'); $('#suggestion1').removeClass('suggestions'); // filter_data(); function filter_data() { $('.filter_data').html('