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


C# StoreSettingConfig.GetStoreSettingParamSeven方法代码示例

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


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

示例1: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            GetPortalCommonInfo(out StoreID, out PortalID, out CustomerID, out UserName, out CultureName, out SessionCode);
            AspxCommonInfo aspxCommonObj = new AspxCommonInfo(StoreID, PortalID, UserName, CultureName, CustomerID, SessionCode);

            SageFrameConfig sfConfig = new SageFrameConfig();
            LogInURL = sfConfig.GetSettingsByKey(SageFrameSettingKeys.PortalLoginpage);

            HeaderSettingInfo objHeaderSetting = new HeaderSettingInfo();
            objHeaderSetting = AspxHeaderController.GetHeaderSetting(aspxCommonObj);
            HeaderType = objHeaderSetting.HeaderType;

            HeaderItemsCount objHeaderCount = new HeaderItemsCount();
            AspxHeaderController objHeader = new AspxHeaderController();
            objHeaderCount = objHeader.GetHeaderItemsCount(aspxCommonObj);
            WishCount = objHeaderCount.WishCount;
            CartCount = objHeaderCount.CartCount;

            hst = AppLocalized.getLocale(this.AppRelativeTemplateSourceDirectory);//

            StoreSettingConfig ssc = new StoreSettingConfig();
            ssc.GetStoreSettingParamSeven(StoreSetting.MyAccountURL, StoreSetting.ShoppingCartURL,
                StoreSetting.ShowAddToCartButton, StoreSetting.AllowAnonymousCheckOut, StoreSetting.AllowMultipleShippingAddress,
                StoreSetting.MinimumCartSubTotalAmount, StoreSetting.SingleCheckOutURL, out MyAccountURL, out ShoppingCartURL,
                out AllowAddToCart, out AllowAnonymousCheckOut, out AllowMultipleShipping, out MinCartSubTotalAmount,
                out SingleAddressChkOutURL, StoreID, PortalID, CultureName);

            string templateName = TemplateName;

            if (HttpContext.Current.Session.SessionID != null)
            {
                SessionCode = HttpContext.Current.Session.SessionID.ToString();
            }
            if (!IsPostBack)
            {
                IncludeCss("AspxHeaderControl", "/Templates/" + templateName + "/css/MessageBox/style.css", "/Templates/" + templateName + "/css/PopUp/style.css",
                     "/Modules/AspxCommerce/AspxHeaderControl/css/module.css");
                IncludeJs("AspxHeaderControl", "/js/PopUp/custom.js", "/js/MessageBox/alertbox.js", "/Modules/AspxCommerce/AspxHeaderControl/js/HeaderControl.js");//"/js/jquery.easing.1.3.js",
                if (HttpContext.Current.Request.UrlReferrer != null)
                {
                    string urlContent = HttpContext.Current.Request.UrlReferrer.AbsolutePath;
                    if (urlContent.Contains(LogInURL) && UserName.ToLower() != "anonymoususer")
                    {
                        FrmLogin = true;
                        if (HttpContext.Current.Session["LoginMessageInfo"] == null)
                        {
                            HttpContext.Current.Session["LoginMessageInfo"] = true;
                        }
                        int x = Convert.ToInt32(HttpContext.Current.Session["LoginMessageInfoCount"]);
                        HttpContext.Current.Session["LoginMessageInfoCount"] = x + 1;
                    }
                    else if (HttpContext.Current.Session["LoginMessageInfo"] != null)
                    {
                        HttpContext.Current.Session.Remove("LoginMessageInfo");
                        HttpContext.Current.Session.Remove("LoginMessageInfoCount");
                    }
                }

            }
            IncludeLanguageJS();
            WishListURL = objHeaderSetting.WishListPageName;
            CountWishItems(aspxCommonObj);

        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:71,代码来源:HeaderControl.ascx.cs

示例2: CreateGlobalVariables

    private void CreateGlobalVariables(AspxCommonInfo aspxCommonObj,bool isKPIInstalled,bool isABTestInstalled)
    {
        
        Page.ClientScript.RegisterClientScriptInclude("AspxCommereCore",
            ResolveUrl("~/js/SageFrameCorejs/aspxcommercecormin.js"));
        if (isABTestInstalled)
        {
            IncludeJs("AspxABTesting", "/Modules/AspxCommerce/AspxABTesting/js/ABTest.js", 
                "/Modules/AspxCommerce/AspxABTesting/Language/AspxABTesting.js");
        }
        if (isKPIInstalled)
        {
            IncludeJs("AspxKPI", "/Modules/AspxCommerce/AspxKPI/js/KPICommon.js", 
                "/Modules/AspxCommerce/AspxKPI/Language/AspxKPILanguage.js");
        }
        IncludeJs("StartUpJs", "/js/CurrencyFormat/jquery.currencies.js", "/js/jquery.masonry.js", 
            "/js/Templating/tmpl.js");

        IncludeCss("ui", "/js/jquery-ui-1.8.14.custom/css/redmond/jquery-ui-1.8.16.custom.css");
        PageExtension = SageFrameSettingKeys.PageExtension;

        string userIP = HttpContext.Current.Request.UserHostAddress;
        string countryName = "";
        IPAddressToCountryResolver ipToCountry = new IPAddressToCountryResolver();
        ipToCountry.GetCountry(userIP, out countryName);
        StoreSettingConfig ssc = new StoreSettingConfig();
        string myCartURL, currencyCode, sortByOptions, 
            sortByOptionsDefault, viewAsOptions, viewAsOptionsDefault;

        ssc.GetStoreSettingParamSeven(StoreSetting.ShoppingCartURL, StoreSetting.MainCurrency, StoreSetting.SendEcommerceEmailsFrom, 
            StoreSetting.SortByOptions, StoreSetting.SortByOptionsDefault,
            StoreSetting.ViewAsOptions, StoreSetting.ViewAsOptionsDefault, 
            out myCartURL, out currencyCode, out SendEcommerceEmailsFrom, 
            out sortByOptions, out sortByOptionsDefault,
          out viewAsOptions, out viewAsOptionsDefault, aspxCommonObj.StoreID,
          aspxCommonObj.PortalID, aspxCommonObj.CultureName);

        Session["SendEcommerceEmailsFrom"] = SendEcommerceEmailsFrom;
        
        string resolveUrl = ResolveUrl("~/");
        if (!IsParent)
        {
            sageRedirectPath = ResolveUrl(GetParentURL + "/portal/" + GetPortalSEOName + "/");
            sageNavigateUrl = ResolveUrl(GetParentURL + "/portal/" + GetPortalSEOName + "/" + PortalAPI.DefaultPageURL + PageExtension);
        }
        else
        {
            sageRedirectPath = resolveUrl;
            sageNavigateUrl = ResolveUrl("~/" + PortalAPI.DefaultPageURL + PageExtension);
        }


        StringBuilder strGlobalVar = new StringBuilder();
        
        strGlobalVar.Append("var aspxservicePath='");
        strGlobalVar.Append(resolveUrl);
        strGlobalVar.Append("Modules/AspxCommerce/AspxCommerceServices/");
        strGlobalVar.Append("';");
        strGlobalVar.Append("var aspxRootPath='");
        strGlobalVar.Append(resolveUrl);
        strGlobalVar.Append("';");
        strGlobalVar.Append("var aspxTemplateFolderPath='");
        strGlobalVar.Append(resolveUrl);
        strGlobalVar.Append("Templates/");
        strGlobalVar.Append(TemplateName);
        strGlobalVar.Append("';");
        strGlobalVar.Append("var pageExtension='");
        strGlobalVar.Append(PageExtension);
        strGlobalVar.Append("';");
        strGlobalVar.Append("var templateName='");
        strGlobalVar.Append(TemplateName);
        strGlobalVar.Append("';");
        strGlobalVar.Append("var customerID='");
        strGlobalVar.Append(aspxCommonObj.CustomerID);
        strGlobalVar.Append("';");
        strGlobalVar.Append("var IsUseFriendlyUrls='");
        strGlobalVar.Append(true);
        strGlobalVar.Append("';");
        strGlobalVar.Append("var sessionCode='");
        strGlobalVar.Append(aspxCommonObj.SessionCode);
        strGlobalVar.Append("';");
        strGlobalVar.Append("var clientIPAddress='");
        strGlobalVar.Append(HttpContext.Current.Request.UserHostAddress);
        strGlobalVar.Append("';");
        strGlobalVar.Append("var sortByOptions='");
        strGlobalVar.Append(sortByOptions);
        strGlobalVar.Append("';");
        strGlobalVar.Append("var sortByOptionsDefault='");
        strGlobalVar.Append(sortByOptionsDefault);
        strGlobalVar.Append("';");
        strGlobalVar.Append("var viewAsOptions='");
        strGlobalVar.Append(viewAsOptions);
        strGlobalVar.Append("';");
        strGlobalVar.Append("var viewAsOptionsDefault='");
        strGlobalVar.Append(viewAsOptionsDefault);
        strGlobalVar.Append("';");
        strGlobalVar.Append("var BaseCurrency='");
        strGlobalVar.Append(currencyCode);
        strGlobalVar.Append("';");
        strGlobalVar.Append("var myCartURL='");
//.........这里部分代码省略.........
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:101,代码来源:AspxStartUpEvent.ascx.cs


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