Fixed not updating cart count on empty

master
Mark Moffat 2020-01-05 08:45:28 +10:30
parent 0fcbfdcc33
commit 748c41de64
2 changed files with 4 additions and 3 deletions

View File

@ -343,8 +343,8 @@ $(document).ready(function (){
url: '/product/emptycart'
})
.done(function(msg){
updateCartDiv();
showNotification(msg.message, 'success', true);
updateCartDiv();
});
});
@ -553,11 +553,12 @@ function updateCartDiv(){
});
$('.cartBodyWrapper').html(productHtml);
$('#cart-count').text(session.totalCartItems);
}else{
$('.cartBodyWrapper').html('');
}
$('#cart-count').text(session.totalCartItems);
// Set the totals section
var cartTotalsHtml = `
<div class="row">

File diff suppressed because one or more lines are too long