rmclemore-millerheiman
-
1/17/2013 11:24:16 AM
display accurate count of items in cart?
I’m trying to display a count of how many item are in a vistors cart. I’m using the macro below. The problem I’m running into is that is doesn’t update most of the time when you add to cart. It will be later in the session after a few pages the is suddenly up to date. Then you remove an item and it’s a while again before the counter displays the correct count. The other way to get it to update is to hit the restart button in the admin dash.
Cart: {%EcommerceContext.CurrentShoppingCart.Children.ShoppingCartItems.Count%}
|