Skip to content

Instantly share code, notes, and snippets.

@nuriye
Created July 1, 2019 07:56
Show Gist options
  • Save nuriye/6bdc96f0da47ce81d25cf78eab859609 to your computer and use it in GitHub Desktop.
Save nuriye/6bdc96f0da47ce81d25cf78eab859609 to your computer and use it in GitHub Desktop.
$('.product .ajax_add_to_cart').on('click',function(e){
var tokenCart = true;
$( document ).ajaxComplete(function( event, xhr, settings ) {
if(tokenCart) {
getSide('Cart');
}
tokenCart = false;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment