Fixed not updating cart count on empty
							parent
							
								
									0fcbfdcc33
								
							
						
					
					
						commit
						748c41de64
					
				|  | @ -343,8 +343,8 @@ $(document).ready(function (){ | ||||||
|             url: '/product/emptycart' |             url: '/product/emptycart' | ||||||
|         }) |         }) | ||||||
| 		.done(function(msg){ | 		.done(function(msg){ | ||||||
|             updateCartDiv(); |  | ||||||
|             showNotification(msg.message, 'success', true); |             showNotification(msg.message, 'success', true); | ||||||
|  |             updateCartDiv(); | ||||||
|         }); |         }); | ||||||
|     }); |     }); | ||||||
| 
 | 
 | ||||||
|  | @ -553,11 +553,12 @@ function updateCartDiv(){ | ||||||
|             }); |             }); | ||||||
| 
 | 
 | ||||||
|             $('.cartBodyWrapper').html(productHtml); |             $('.cartBodyWrapper').html(productHtml); | ||||||
|             $('#cart-count').text(session.totalCartItems); |  | ||||||
|         }else{ |         }else{ | ||||||
|             $('.cartBodyWrapper').html(''); |             $('.cartBodyWrapper').html(''); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  |         $('#cart-count').text(session.totalCartItems); | ||||||
|  | 
 | ||||||
|         // Set the totals section
 |         // Set the totals section
 | ||||||
|         var cartTotalsHtml = ` |         var cartTotalsHtml = ` | ||||||
|             <div class="row"> |             <div class="row"> | ||||||
|  |  | ||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Loading…
	
		Reference in New Issue