当前位置: 首页>>代码示例>>C#>>正文


C# StoreSettingConfig.GetStoreSettingParamTwo方法代码示例

本文整理汇总了C#中AspxCommerce.Core.StoreSettingConfig.GetStoreSettingParamTwo方法的典型用法代码示例。如果您正苦于以下问题:C# StoreSettingConfig.GetStoreSettingParamTwo方法的具体用法?C# StoreSettingConfig.GetStoreSettingParamTwo怎么用?C# StoreSettingConfig.GetStoreSettingParamTwo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AspxCommerce.Core.StoreSettingConfig的用法示例。


在下文中一共展示了StoreSettingConfig.GetStoreSettingParamTwo方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Page_Load

    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);
        }
       

    }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:31,代码来源:AccountDashboard.ascx.cs

示例2: Page_Load

 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);
     }
 }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:34,代码来源:MegaCategoryView.ascx.cs

示例3: Page_Load

    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);

    }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:50,代码来源:AspxStartUpEvent.ascx.cs

示例4: Page_Load

 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"));
     }
 }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:15,代码来源:AspxAPIEvent.ascx.cs


注:本文中的AspxCommerce.Core.StoreSettingConfig.GetStoreSettingParamTwo方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。