I use Cart.js to one of my new project but getting issue when set "selling_plan". After this Callbacks functions not working.
below is my code.
CartJS.addItem(att, qty, sellp, props,{},{
"success": function(data, textStatus, jqXHR){
alert('11');
setTimeout(function() {
$("body").removeClass("loading showOverly");
//$(".block-cart").addClass("active");
$('.header-cart').trigger('click');
},1000);
},
"error": function(jqXHR, textStatus, errorThrown){
alert('22');
var errormsg = JSON.parse(jqXHR.responseText).description;
$("body").removeClass("loading");
$(".error-message").text(errormsg);
$("body").addClass("showOverly");
$("#errorDrawer").fadeIn(500);
drawerTimeout = setTimeout(function(){
$("body").removeClass("loading showOverly"), $("#errorDrawer").fadeOut(200)
}, 6000);
}
});
I use Cart.js to one of my new project but getting issue when set "selling_plan". After this Callbacks functions not working.
below is my code.