Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callbacks functiona not wroking when I set selling_price option #211

Open
adornthemes opened this issue Sep 9, 2021 · 0 comments
Open

Comments

@adornthemes
Copy link

adornthemes commented Sep 9, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant