private void GetCartInfo() { if ((!includeItemCount) && (!includeCartTotal)) { return; } siteSettings = CacheHelper.GetCurrentSiteSettings(); currencyCulture = ResourceHelper.GetCurrencyCulture(siteSettings.GetCurrency().Code); cart = StoreHelper.GetCartIfExists(moduleId, Page.Request.IsAuthenticated); if (cart == null) { return; } itemCount = cart.CartOffers.Count(); cartTotal = cart.SubTotal; }