Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > display accurate count of items in cart? View modes: 
User avatar
Member
Member
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%}

User avatar
Member
Member
kentico_alleng - 1/23/2013 8:06:27 PM
   
RE:display accurate count of items in cart?
Hello,

The delay could be due to caching.

Other than reviewing your cache settings, I would recommend modifying the shopping cart preview to display the cart count.

See the advice in this forum thread:

http://devnet.kentico.com/Forums.aspx?forumid=36&threadid=22259

Regards,

Allen