Skip to content

Callbacks functiona not wroking when I set selling_price option #211

Description

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);
}
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions