Complete the look with ' }); }) function addtocart(qty,skus,key){ var data = { "productId":"664532", "cartNum":qty, "new":0 }; if(key){ data.uniqueId = skus[key].unique; } $.ajax({ url:"?m=jqajax&act=addtocart", method:"POST", dataType:"JSON", data:data, success :function(e){ layer.closeAll(); if(e.error == 0){ $(".right-mini-cart-box").html(e.html); $(".CartCount").html(e.data.count); $('.drawer-toggle-cart').trigger("click"); }else{ layer.msg(e.msg); } } }); } $(".cart-wishlist").click(function(){ $.ajax({ url: "?m=jqajax&act=addwish", method: "POST", dataType: "JSON", data: { id:'664532' }, success: function (e) { console.log(e); if(e.error == 1){ window.location.href = "/account/login"; }else{ layer.msg("Add favorite successfully!"); } } }); }); category Online Promotions Flash Bargains Brand Accessories Big Bargains My Company Why Shop With Us Flat Rate Shipping FAQ Information Terms of Service Privacy Policy Shipping policy Refund and Return Policy Payment My Account Contact us About Us My Account