protected void Page_Load(object sender, EventArgs e) { try { GetPortalCommonInfo(out StoreID, out PortalID, out UserName, out CultureName); AspxCommonInfo aspxCommonObj = new AspxCommonInfo(StoreID, PortalID, UserName, CultureName); if (!IsPostBack) { string templateName = TemplateName; IncludeCss("LatestItems", "/Templates/" + templateName + "/css/MessageBox/style.css", "/Templates/" + templateName + "/css/FancyDropDown/fancy.css", "/Templates/" + templateName + "/css/ToolTip/tooltip.css", "/Modules/AspxCommerce/AspxLatestItems/css/module.css"); IncludeJs("LatestItems", "/Modules/AspxCommerce/AspxLatestItems/js/LatestItems.js" , "/js/MessageBox/alertbox.js"); resolveUrl = ResolveUrl("~/"); StoreSettingConfig ssc = new StoreSettingConfig(); ssc.GetStoreSettingParamThree(StoreSetting.DefaultProductImageURL, StoreSetting.ShowAddToCartButton, StoreSetting.AllowOutStockPurchase, out DefaultImagePath, out AllowAddToCart, out AllowOutStockPurchase, StoreID, PortalID, CultureName); } IncludeLanguageJS(); GetLatestItemsByCount(aspxCommonObj); } catch (Exception ex) { ProcessException(ex); } }
protected void Page_Load(object sender, EventArgs e) { try { GetPortalCommonInfo(out StoreID, out PortalID, out UserName, out CultureName); AspxCommonInfo aspxCommonObj = new AspxCommonInfo(StoreID, PortalID, UserName, CultureName); if (!IsPostBack) { IncludeJs("WishItems", "/js/DateTime/date.js", "/js/jquery.tipsy.js", "/Modules/AspxCommerce/AspxWishList/js/WishItems.js"); IncludeCss("WishItemsCss", "/Modules/AspxCommerce/AspxWishList/css/WishItems.css"); userFriendlyURL = IsUseFriendlyUrls; GetWishListItemsSettig(aspxCommonObj); StoreSettingConfig ssc = new StoreSettingConfig(); ssc.GetStoreSettingParamThree(StoreSetting.DefaultProductImageURL, StoreSetting.ShowItemImagesInWishList,StoreSetting.ModuleCollapsible, out NoImageWishItemPath, out ShowWishedItemImage, out ModuleCollapsible, StoreID, PortalID, CultureName); } if (NoOfRecentAddedWishItems > 0) { BindMyWishList(aspxCommonObj); } IncludeLanguageJS(); } catch (Exception ex) { ProcessException(ex); } }
protected void Page_Load(object sender, EventArgs e) { try { ServicePath = ResolveUrl(this.AppRelativeTemplateSourceDirectory + "/Service/Service.asmx/"); GetPortalCommonInfo(out StoreID, out PortalID, out CustomerID, out UserName, out CultureName); IncludeJs("ItemCompareDetailsJS", "/js/encoder.js", "/js/Templating/tmpl.js", "/js/jquery.cookie.js", "/Modules/AspxCommerce/AspxCompareItems/js/ItemCompareDetails.js"); IncludeCss("ItemCompareDetails", "/Modules/AspxCommerce/AspxCompareItems/css/module.css"); if (!IsPostBack) { StoreSettingConfig ssc = new StoreSettingConfig(); ssc.GetStoreSettingParamThree(StoreSetting.ShowAddToCartButton, StoreSetting.DefaultProductImageURL, StoreSetting.AllowOutStockPurchase, out AllowAddToCart, out NoImageItemComparePath, out AllowOutStockPurchase, StoreID, PortalID, CultureName); } IncludeLanguageJS(); } catch (Exception ex) { ProcessException(ex); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { var ssc = new StoreSettingConfig(); ssc.GetStoreSettingParamThree(StoreSetting.DimensionUnit, StoreSetting.WeightUnit, StoreSetting.EstimateShippingCostInCartPage, out DimentionalUnit, out WeightUnit, out ShowRateEstimate, GetStoreID, GetPortalID, GetCurrentCultureName); IncludeJs("ValidationRate", "/js/FormValidation/jquery.validate.js", "/Modules/AspxCommerce/AspxShippingRateEstimate/js/ShippingRateEstimate.js"); GetItemCount(); } IncludeLanguageJS(); LoadCountry(); }
protected void Page_Load(object sender, EventArgs e) { try { GetPortalCommonInfo(out StoreID, out PortalID, out UserName, out CultureName); if (!IsPostBack) { IncludeJs("Specials", "/Modules/AspxCommerce/AspxSpecialsItems/js/Specials.js"); IncludeCss("SpecialCss", "/Modules/AspxCommerce/AspxSpecialsItems/css/SpecialItems.css"); StoreSettingConfig ssc = new StoreSettingConfig(); ssc.GetStoreSettingParamThree(StoreSetting.DefaultProductImageURL, StoreSetting.ShowAddToCartButton, StoreSetting.AllowOutStockPurchase, out DefaultImagePath, out AllowAddToCart, out AllowOutStockPurchase, StoreID, PortalID, CultureName); } IncludeLanguageJS(); AspxCommonInfo aspxCommonObj = new AspxCommonInfo(StoreID, PortalID, UserName, CultureName); BindSpecialItems(aspxCommonObj); IncludeLanguageJS(); } catch (Exception ex) { ProcessException(ex); } }
protected void Page_Load(object sender, EventArgs e) { try { SageFrameConfig pagebase = new SageFrameConfig(); string PortalLoginpage = pagebase.GetSettingsByKey(SageFrameSettingKeys.PortalLoginpage);//Ask santosh to get portal login page SecurityPolicy objSecurity = new SecurityPolicy(); FormsAuthenticationTicket ticket = objSecurity.GetUserTicket(GetPortalID); AspxCommonInfo aspxCommonObj = new AspxCommonInfo(); base.GetPortalCommonInfo(out storeID, out portalID, out customerID, out userName, out cultureName, out sessionCode); aspxCommonObj = new AspxCommonInfo(storeID, portalID, userName, cultureName, customerID, sessionCode); RewardPointsGeneralSettingsIsActive = RewardPointsController.RewardPointsGeneralSettingsIsActive(aspxCommonObj).ToString(); StoreSettingConfig ssc = new StoreSettingConfig(); ssc.GetStoreSettingParamThree(StoreSetting.AllowUsersToCreateMultipleAddress, StoreSetting.MainCurrency, StoreSetting.ShowAddToCartButton, out allowMultipleAddress, out CurrencyCodeSlected, out AllowAddToCart, storeID, portalID, cultureName ); IsRewardInstl = AspxCommonController.GetModuleInstallationInfo("AspxRewardPoints", aspxCommonObj).ToString(); if (ticket != null && ticket.Name != ApplicationKeys.anonymousUser) { if (!IsPostBack) { string templateName = TemplateName; IncludeCss("UserDashBoardCSS", "/Templates/" + templateName + "/css/GridView/tablesort.css", "/Templates/" + templateName + "/css/StarRating/jquery.rating.css", "/Templates/" + templateName + "/css/MessageBox/style.css", "/Templates/" + templateName + "/css/PopUp/style.css", "/Templates/" + templateName + "/css/JQueryUIFront/jquery.ui.all.css", "/Templates/" + templateName + "/css/PasswordValidation/jquery.validate.password.css", "/Templates/" + templateName + "/css/ToolTip/tooltip.css"); IncludeJs("UserDashBoardJS", "/Modules/AspxCommerce/AspxWishList/js/WishItemList.js", "/js/jDownload/jquery.jdownload.js", "/js/DateTime/date.js", "/js/MessageBox/jquery.easing.1.3.js", "/js/MessageBox/alertbox.js", "/js/StarRating/jquery.MetaData.js", "/js/FormValidation/jquery.validate.js", "/js/PasswordValidation/jquery.validate.password.js", "/js/GridView/jquery.grid.js", "/js/GridView/SagePaging.js", "/js/GridView/jquery.global.js", "/js/GridView/jquery.dateFormat.js", "/js/GridView/jquery.tablesorter.min.js", "/js/StarRating/jquery.rating.pack.js", "/js/encoder.js", "/js/StarRating/jquery.rating.js", "/js/PopUp/custom.js", "/js/jquery.tipsy.js", "/Modules/AspxCommerce/AspxUserDashBoard/js/userdashboard.js", "/js/Paging/jquery.pagination.js", "/js/FormValidation/jquery.form-validation-and-hints.js"); userModuleIDUD = int.Parse(SageUserModuleID); ModulePath = ResolveUrl(this.AppRelativeTemplateSourceDirectory); MembershipController m = new MembershipController(); UserInfo sageUser = m.GetUserDetails(GetPortalID, GetUsername); AspxCommonController objUser = new AspxCommonController(); UsersInfo userDetails = objUser.GetUserDetails(aspxCommonObj); if (userDetails.UserName != null) { userEmail = userDetails.Email; userFirstName = userDetails.FirstName; userLastName = userDetails.LastName; userPicture = userDetails.ProfilePicture; userEmailWishList = userEmail;//userDetail.Email;//added later for wishlist userIP = HttpContext.Current.Request.UserHostAddress; IPAddressToCountryResolver ipToCountry = new IPAddressToCountryResolver(); ipToCountry.GetCountry(userIP, out countryName); } BindUserDetails(); } IncludeAllLanguageJS(); } else { if (!IsParent) { Response.Redirect(ResolveUrl(GetParentURL + "/portal/" + GetPortalSEOName + "/" + PortalLoginpage) + ".aspx?ReturnUrl=" + Request.Url.ToString(), false); } else { Response.Redirect(ResolveUrl("~/" + PortalLoginpage) + ".aspx?ReturnUrl=" + Request.Url.ToString(), false); } } IncludeAllLanguageJS(); GetUserRecentActivity(aspxCommonObj); GetAddressBookDetails(aspxCommonObj); GetAllCountry(); GetMyOrders(aspxCommonObj); } catch (Exception ex) { ProcessException(ex); } }