コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            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);

            StoreSettingConfig ssc = new StoreSettingConfig();
            ssc.GetStoreSettingParamTwo(StoreSetting.ShoppingCartURL,
                                            StoreSetting.ShowAddToCartButton,
                                            out ShoppingCartURL,
                                            out AllowAddToCart,
                                            storeID,
                                            portalID,
                                            cultureName
                                            );

            GetUserRecentActivity(aspxCommonObj);
            GetAddressBookDetails(aspxCommonObj);
            GetAllCountry();

           // IncludeJs("AccountUserDashboard", "/Modules/AspxCommerce/AspxUserDashBoard/js/userdashboard.js");
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
       

    }
コード例 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         int StoreID, PortalID;
         string UserName, CultureName;
         GetPortalCommonInfo(out StoreID, out PortalID, out UserName, out CultureName);
         AspxCommonInfo aspxCommonObj = new AspxCommonInfo(StoreID, PortalID, UserName, CultureName); 
         if (!IsPostBack)
         {
             string templateName = TemplateName;
             IncludeJs("MegaCategoryView", "/js/jquery.cookie.js", "/Modules/AspxCommerce/AspxMegaCategory/js/hoverIntent.js", 
                 "/Modules/AspxCommerce/AspxMegaCategory/js/jquery.dcverticalmegamenu.1.3.js", 
                 "/Modules/AspxCommerce/AspxMegaCategory/js/jquery.dcmegamenu.1.3.3.js",
                 "/Modules/AspxCommerce/AspxMegaCategory/js/jquery.dcjqaccordion.2.7.js");
             IncludeCss("MegaCategoryView", "/Templates/" + templateName + "/css/MegaMenu/dcverticalmegamenu.css",
                 "/Templates/" + templateName + "/css/MegaMenu/dcmegamenu.css", "/Modules/AspxCommerce/AspxMegaCategory/css/module.css");
             StoreSettingConfig ssc = new StoreSettingConfig();
             ssc.GetStoreSettingParamTwo(StoreSetting.DefaultProductImageURL, StoreSetting.NewCategoryRss, out NoImageCategoryDetailPath,
                 out CategoryRss, StoreID, PortalID, CultureName);
             if (CategoryRss.ToLower() == "true")
             {
                 RssFeedUrl = ssc.GetStoreSettingsByKey(StoreSetting.RssFeedURL, StoreID, PortalID, CultureName);
             }
         }
         GetMegaCategorySetting(aspxCommonObj);
         GetCategoryMenuList(aspxCommonObj);
         IncludeLanguageJS();
     }
     catch (Exception ex)
     {
         ProcessException(ex);
     }
 }
コード例 #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        int StoreID, PortalID;
        int CustomerID;
        string UserName, CultureName, SessionCode;
        SetCustomerID();
        GetPortalCommonInfo(out StoreID, out PortalID, out CustomerID, out UserName, 
            out CultureName, out SessionCode);
        AspxCommonInfo aspxCommonObj = new AspxCommonInfo(StoreID, PortalID, UserName, 
            CultureName, CustomerID, SessionCode);

        StoreSettingConfig ssc = new StoreSettingConfig();
        string timeToDeleteCartItems, timeToAbandonCart;
        ssc.GetStoreSettingParamTwo(StoreSetting.TimeToDeleteAbandonedCart, StoreSetting.CartAbandonedTime,
            out timeToDeleteCartItems, out timeToAbandonCart,
            StoreID, PortalID, CultureName);

        ctl.DeleteAbandonedCartItems(StoreID, PortalID, decimal.Parse(timeToDeleteCartItems), 
            decimal.Parse(timeToAbandonCart));

        StoreAccessDetailsInfo storeAccessTracker = new StoreAccessDetailsInfo();
        storeAccessTracker.PortalID = PortalID;
        storeAccessTracker.StoreID =StoreID;
        storeAccessTracker.Username = UserName;

        StartUpInfoCollection objStartInfo = new StartUpInfoCollection();
        AspxCommonController objCommonCont = new AspxCommonController();
        objStartInfo = objCommonCont.GetStartUpInformation("AspxKPI", "AspxABTesting", storeAccessTracker);

        CheckStoreAccessible(aspxCommonObj, objStartInfo.IsStoreAccess,objStartInfo.IsStoreClosed);
        CreateGlobalVariables(aspxCommonObj,objStartInfo.IsKPIInstalled,objStartInfo.IsABTestInstalled);
        IncludeCoreLanguageJS();
        IncludeTemplateLanguageJS();
        IncludeRssFeedLanguageJS();
        if (HttpContext.Current.Session["IsLoginClick" + UserName] != null)
        {
            if (bool.Parse(HttpContext.Current.Session["IsLoginClick" + UserName].ToString()))
            {

                objCommonCont.UpdateCartAnonymoususertoRegistered(StoreID, PortalID, CustomerID, SessionCode);
                HttpContext.Current.Session["IsLoginClick" + UserName] = false;
            }
        }

        List<CurrrencyRateInfo> ratelist = GetCountryCodeRates(aspxCommonObj);
        JavaScriptSerializer json_serializer = new JavaScriptSerializer();
        string jsonRates = json_serializer.Serialize(ratelist);
        ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "ratelist", " var currencyRate='" + jsonRates + "';", true);

    }
コード例 #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     int StoreID, PortalID;
     string CultureName, AllowRealTimeNotifications, UserName = string.Empty;
     ModuleRedirectPath = ResolveUrl(this.aspxRedirectPath);
     GetPortalCommonInfo(out StoreID, out PortalID, out UserName, out CultureName);
     StoreSettingConfig ssc = new StoreSettingConfig();
     ssc.GetStoreSettingParamTwo(StoreSetting.AllowRealTimeNotifications, StoreSetting.MainCurrency, out AllowRealTimeNotifications, out StoreDefaultCurrency, StoreID, PortalID, CultureName);
     if (AllowRealTimeNotifications.ToLower() == "true")
     {
         Page.ClientScript.RegisterClientScriptInclude("SignlaR1", ResolveUrl("~/js/SignalR/jquery.signalR-2.2.0.min.js"));
         Page.ClientScript.RegisterClientScriptInclude("SignlaR2", ResolveUrl("~/signalr/hubs"));
         Page.ClientScript.RegisterClientScriptInclude("SignlaR3", ResolveUrl("~/Modules/AspxCommerce/AspxStartUpEvents/js/RealTimeAspxMgmt.js"));
     }
 }