Fixed not updating cart count on empty
parent
0fcbfdcc33
commit
748c41de64
|
@ -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
Loading…
Reference in New Issue