Hi Yale
You can add the following code to the End of the Master Pages (ThemedPage.Master and ThemedPageFullWidth.Master)
This will allow you to use the xmp.sdk.storeFrontParams.currentUser.itemsInCar value to display the number of items in the cart.
<%
int cartCount = 0;
if(!uStore.Common.BLL.CustomerInfo.Current.IsAnonymous){
try{
cartCount = uStoreAPI.OrderProduct.GetOrderProductList(uStoreAPI.Order.GetUserCartId(uStore.GenParams.StoreID ,uStore.Common.BLL.CustomerInfo.Current.UserID),false).Length;
} catch(Exception e){
// Error Here
}
Response.Write("<script language=javascript>\n");
Response.Write("xmp.sdk.storeFrontParams.currentUser.itemsInCart = " + cartCount+ "\n");
Response.Write("</script>\n");
}
%>