Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         StoreID     = GetStoreID;
         PortalID    = GetPortalID;
         CultureName = GetCurrentCultureName;
         StoreSettingConfig ssc = new StoreSettingConfig();
     }
     catch (Exception ex)
     {
         ProcessException(ex);
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!IsPostBack)
            {
                IncludeCss("CategoryManage", "/Templates/" + TemplateName + "/css/GridView/tablesort.css",
                           "/Templates/" + TemplateName + "/css/TreeView/ui.tree.css",
                           "/Templates/" + TemplateName + "/css/MessageBox/style.css",
                           "/Templates/" + TemplateName + "/css/JQueryUI/jquery.ui.all.css",
                           "/Templates/" + TemplateName + "/css/DateTime/jquery.ptTimeSelect.css",
                           "/Templates/" + TemplateName + "/css/jCrop/jCrop.css");
                IncludeJs("CategoryManage", "/js/JQueryUI/jquery-ui-1.8.10.custom.js", "/js/GridView/jquery.grid.js",
                          "/js/GridView/SagePaging.js",
                          "/js/GridView/jquery.global.js", "/js/GridView/jquery.dateFormat.js",
                          "/js/TreeView/jquery.tree.ui.core.js", "/js/TreeView/ui.tree.js",
                          "/js/TreeView/jquery.json-2.2.js", "/js/DateTime/date.js",
                          "/js/MessageBox/jquery.easing.1.3.js", "/js/MessageBox/alertbox.js",
                          "/js/AjaxFileUploader/ajaxupload.js", "/js/FormValidation/jquery.ui.datepicker.validation.js",
                          "/js/FormValidation/jquery.validate.js",
                          "/Modules/AspxCommerce/AspxCategoryManagement/js/CategoryManage.js",
                          "/js/CurrencyFormat/jquery.formatCurrency-1.4.0.js",
                          "/js/PopUp/custom.js", "/js/CurrencyFormat/jquery.formatCurrency.all.js",
                          "/js/DateTime/jquery.ptTimeSelect.js", "/js/jCrop/jquery.Jcrop.js");

                StoreID     = GetStoreID;
                PortalID    = GetPortalID;
                UserName    = GetUsername;
                CultureName = GetCurrentCultureName;
                StoreSettingConfig ssc = new StoreSettingConfig();
                CategoryLargeThumbImage =
                    int.Parse(ssc.GetStoreSettingsByKey(StoreSetting.CategoryLargeThumbnailImageSize, StoreID, PortalID,
                                                        CultureName));
                CategoryMediumThumbImage =
                    int.Parse(ssc.GetStoreSettingsByKey(StoreSetting.CategoryMediumThumbnailImageSize, StoreID, PortalID,
                                                        CultureName));
                CategorySmallThumbImage =
                    int.Parse(ssc.GetStoreSettingsByKey(StoreSetting.CategorySmallThumbnailImageSize, StoreID, PortalID,
                                                        CultureName));

                BannerWidth  = int.Parse(ssc.GetStoreSettingsByKey(StoreSetting.CategoryBannerImageWidth, StoreID, PortalID, CultureName));
                BannerHeight = int.Parse(ssc.GetStoreSettingsByKey(StoreSetting.CategoryBannerImageHeight, StoreID, PortalID, CultureName));
            }
            IncludeLanguageJS();
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }
Beispiel #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!IsPostBack)
            {
                IncludeCss("LatestItems", "/Templates/" + TemplateName + "/css/MessageBox/style.css",
                           "/Templates/" + TemplateName + "/css/Slider/style.css");
                IncludeJs("LatestItems", "/js/DateTime/date.js", "/js/MessageBox/jquery.easing.1.3.js",
                          "/js/MessageBox/alertbox.js", "/js/CurrencyFormat/jquery.formatCurrency-1.4.0.js",
                          "/js/CurrencyFormat/jquery.formatCurrency.all.js",
                          "/Modules/AspxCommerce/AspxLatestItems/js/jquery.ItembxSlider.js",
                          "/Modules/AspxCommerce/AspxLatestItems/js/LatestItemsCarousel.js",
                          "/js/jquery.tipsy.js");

                StoreID     = GetStoreID;
                PortalID    = GetPortalID;
                CustomerID  = GetCustomerID;
                UserName    = GetUsername;
                CultureName = GetCurrentCultureName;
                if (HttpContext.Current.Session.SessionID != null)
                {
                    SessionCode = HttpContext.Current.Session.SessionID.ToString();
                }
                UserIp = HttpContext.Current.Request.UserHostAddress;
                IPAddressToCountryResolver ipToCountry = new IPAddressToCountryResolver();
                ipToCountry.GetCountry(UserIp, out CountryName);

                StoreSettingConfig ssc = new StoreSettingConfig();
                DefaultImagePath = ssc.GetStoreSettingsByKey(StoreSetting.DefaultProductImageURL, StoreID, PortalID,
                                                             CultureName);
                NoOfLatestItems =
                    int.Parse(ssc.GetStoreSettingsByKey(StoreSetting.NoOfLatestItemsDisplay, StoreID, PortalID,
                                                        CultureName));
                EnableLatestItems = ssc.GetStoreSettingsByKey(StoreSetting.EnableLatestItems, StoreID, PortalID,
                                                              CultureName);
                AllowOutStockPurchase = ssc.GetStoreSettingsByKey(StoreSetting.AllowOutStockPurchase, StoreID, PortalID,
                                                                  CultureName);
                NoOfLatestItemsInARow =
                    int.Parse(ssc.GetStoreSettingsByKey(StoreSetting.NoOfLatestItemsInARow, StoreID, PortalID,
                                                        CultureName));
            }
            IncludeLanguageJS();
            BindLatestItemCarousel();
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }
Beispiel #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            StoreID      = GetStoreID;
            PortalID     = GetPortalID;
            CustomerID   = GetCustomerID;
            UserName     = GetUsername;
            CultureName  = GetCurrentCultureName;
            aspxfilePath = ResolveUrl("~") + "Modules/AspxCommerce/AspxItemsManagement/";
            IncludeCss("GirdCardAll", "/Templates/" + TemplateName + "/css/ToolTip/tooltip.css");
            IncludeJs("GirdCardAll", "/js/Paging/jquery.pagination.js", "/js/jquery.tipsy.js");
            if (HttpContext.Current.Session.SessionID != null)
            {
                SessionCode = HttpContext.Current.Session.SessionID.ToString();
            }
            if (HttpContext.Current.Session.SessionID != null)
            {
                SessionCode = HttpContext.Current.Session.SessionID.ToString();
            }
            if (SageUserModuleID != "")
            {
                UserModuleID = int.Parse(SageUserModuleID);
            }
            else
            {
                UserModuleID = 0;
            }
            UserIp = HttpContext.Current.Request.UserHostAddress;
            IPAddressToCountryResolver ipToCountry = new IPAddressToCountryResolver();
            ipToCountry.GetCountry(UserIp, out CountryName);
            StoreSettingConfig ssc = new StoreSettingConfig();
            AllowAddToCart   = ssc.GetStoreSettingsByKey(StoreSetting.ShowAddToCartButton, StoreID, PortalID, CultureName);
            DefaultImagePath = ssc.GetStoreSettingsByKey(StoreSetting.DefaultProductImageURL, StoreID, PortalID,
                                                         CultureName);
            AllowOutStockPurchase = ssc.GetStoreSettingsByKey(StoreSetting.AllowOutStockPurchase, StoreID, PortalID,
                                                              CultureName);
            MaxCompareItemCount =
                int.Parse(ssc.GetStoreSettingsByKey(StoreSetting.MaxNoOfItemsToCompare, StoreID, PortalID, CultureName));
            NoOfItemsInARow = int.Parse(ssc.GetStoreSettingsByKey(StoreSetting.NoOfDisplayItems, StoreID, PortalID, CultureName));

            GetAllGiftCards();
            IncludeLanguageJS();
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }
Beispiel #5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            StoreID     = GetStoreID;
            PortalID    = GetPortalID;
            CustomerID  = GetCustomerID;
            UserName    = GetUsername;
            CultureName = GetCurrentCultureName;
            if (!IsPostBack)
            {
                IncludeCss("categoryWiseItemList", "/Templates/" + TemplateName + "/css/MessageBox/style.css", "/Templates/" + TemplateName + "/css/ToolTip/tooltip.css");
                IncludeJs("categoryWiseItemList", "/js/jquery.tipsy.js", "/js/encoder.js");
                if (HttpContext.Current.Session.SessionID != null)
                {
                    SessionCode = HttpContext.Current.Session.SessionID.ToString();
                }

                //StoreSettingInfo DefaultStoreSettings = (StoreSettingInfo)Session["DefaultStoreSettings"];
                //DefaultStoreSettings.AllowAnonymousCheckOut
                modulePath = ResolveUrl(this.AppRelativeTemplateSourceDirectory);
                UserIp     = HttpContext.Current.Request.UserHostAddress;
                IPAddressToCountryResolver ipToCountry = new IPAddressToCountryResolver();
                ipToCountry.GetCountry(UserIp, out CountryName);

                StoreSettingConfig ssc = new StoreSettingConfig();
                DefaultImagePath = ssc.GetStoreSettingsByKey(StoreSetting.DefaultProductImageURL, StoreID, PortalID,
                                                             CultureName);
                AllowOutStockPurchase = ssc.GetStoreSettingsByKey(StoreSetting.AllowOutStockPurchase, StoreID, PortalID,
                                                                  CultureName);
                MaxCompareItemCount =
                    int.Parse(ssc.GetStoreSettingsByKey(StoreSetting.MaxNoOfItemsToCompare, StoreID, PortalID,
                                                        CultureName));
                NoOfItemsDisplayInARow =
                    int.Parse(ssc.GetStoreSettingsByKey(StoreSetting.NoOfDisplayItems, StoreID, PortalID,
                                                        CultureName));
                AllowWishListLatestItem = ssc.GetStoreSettingsByKey(StoreSetting.EnableWishList, StoreID, PortalID,
                                                                    CultureName);
                AllowAddToCompareLatest = ssc.GetStoreSettingsByKey(StoreSetting.EnableCompareItems, StoreID, PortalID,
                                                                    CultureName);
            }
            IncludeLanguageJS();
            GetCategoryWiseItemSetting();
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            StoreID      = GetStoreID;
            PortalID     = GetPortalID;
            userName     = GetUsername;
            UserModuleId = SageUserModuleID;
            CultureName  = GetCurrentCultureName;
            IncludeCss("CustomersManagement", "/Templates/" + TemplateName + "/css/GridView/tablesort.css", "/Templates/" + TemplateName + "/css/MessageBox/style.css");

            if (!IsPostBack)
            {
                Session["customerRefresh"] = Server.UrlEncode(System.DateTime.Now.ToString());
                IncludeJs("CustomersManagement", "/js/GridView/jquery.grid.js", "/js/GridView/SagePaging.js", "/js/GridView/jquery.global.js", "/js/GridView/jquery.dateFormat.js",
                          "/js/MessageBox/jquery.easing.1.3.js", "/js/MessageBox/alertbox.js", "/Modules/AspxCommerce/AspxCustomerManagement/js/CustomerManage.js");

                MessageManagementController  msgController = new MessageManagementController();
                List <MessageManagementInfo> template      = msgController.GetMessageTemplateTypeTokenListByMessageTemplateType(SystemSetting.USER_REGISTRATION_HELP, GetPortalID);
                foreach (MessageManagementInfo messageToken in template)
                {
                    if (template != null)
                    {
                        headerTemplate = "<div>" + messageToken.Body + "</div>";
                    }

                    //if (_member.EnableCaptcha)
                    //{
                    //    InitializeCaptcha();
                    //}
                    //else { HideCaptcha(); }
                }

                SetValidatorErrorMessage();

                var ssc = new StoreSettingConfig();
                NewCustomerRss = ssc.GetStoreSettingsByKey(StoreSetting.NewCustomerRss, StoreID, PortalID, CultureName);
                if (NewCustomerRss.ToLower() == "true")
                {
                    RssFeedUrl = ssc.GetStoreSettingsByKey(StoreSetting.RssFeedURL, StoreID, PortalID, CultureName);
                }
            }
            IncludeLanguageJS();
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }
Beispiel #7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         AspxCommonInfo aspxCommonObj = new AspxCommonInfo();
         aspxCommonObj.StoreID     = GetStoreID;
         aspxCommonObj.PortalID    = GetPortalID;
         aspxCommonObj.UserName    = GetUsername;
         aspxCommonObj.CultureName = GetCurrentCultureName;
         if (!IsPostBack)
         {
             StoreSettingConfig ssc = new StoreSettingConfig();
             if (Session["CurrencyCode"] != null && Session["CurrencyCode"] != "")
             {
                 SelectedCurrency = Session["CurrencyCode"].ToString();
             }
             else
             {
                 SelectedCurrency = ssc.GetStoreSettingsByKey(StoreSetting.MainCurrency, GetStoreID, GetPortalID, GetCurrentCultureName);
             }
             IncludeJs("Currencyconversion", "/js/FancyDropDown/fancyDropDown.js");//
             IncludeCss("Currencyconversion", "/Templates/" + TemplateName + "/css/FancyDropDown/fancy.css", "/Modules/AspxCommerce/AspxCurrencyConverter/css/module.css");
             StoreID      = GetStoreID;
             PortalID     = GetPortalID;
             CultureName  = GetCurrentCultureName;
             MainCurrency = ssc.GetStoreSettingsByKey(StoreSetting.MainCurrency, StoreID, PortalID, CultureName);
             if (Session["Region"] != null && Session["Region"] != "")
             {
                 Region = Session["Region"].ToString();
             }
             else
             {
                 Region = StoreSetting.GetRegionFromCurrencyCode(SelectedCurrency, StoreID, PortalID);
             }
             AspxCoreController acc = new AspxCoreController();
             acc.GetCurrencyRateOnChange(aspxCommonObj, MainCurrency, SelectedCurrency, Region);
             if (Session["CurrencyRate"] != null && Session["CurrencyRate"] != "")
             {
                 currencyRate = Math.Round(double.Parse(Session["CurrencyRate"].ToString()), 4);
             }
         }
         IncludeLanguageJS();
         BindCurrencyList();
     }
     catch (Exception ex)
     {
         ProcessException(ex);
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            var ssc = new StoreSettingConfig();
            MainCurrency = ssc.GetStoreSettingsByKey(StoreSetting.MainCurrency, GetStoreID, GetPortalID, GetCurrentCultureName);

            if (Session["CouponApplied"] != null)
            {
                couponApplied = Session["CouponApplied"].ToString();
            }

            IncludeLanguageJS();
        }
    }
Beispiel #9
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         StoreSettingConfig ssc = new StoreSettingConfig();
         AllowRealTimeNotifications = ssc.GetStoreSettingsByKey(StoreSetting.AllowRealTimeNotifications, GetStoreID, GetPortalID, GetCurrentCultureName);
     }
     try
     {
     }
     catch (Exception ex)
     {
         ProcessException(ex);
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            AspxCommonInfo aspxCommonObj = new AspxCommonInfo();
            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();
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }
Beispiel #11
0
    public void BindItemQuantityDiscountByUserName(string sku)
    {
        decimal            rate           = 1;
        StoreSettingConfig ssc            = new StoreSettingConfig();
        decimal            additionalCCVR = decimal.Parse(ssc.GetStoreSettingsByKey(StoreSetting.AdditionalCVR, aspxCommonObj.StoreID, aspxCommonObj.PortalID, aspxCommonObj.CultureName));
        string             MainCurrency   = ssc.GetStoreSettingsByKey(StoreSetting.MainCurrency, aspxCommonObj.StoreID, aspxCommonObj.PortalID, aspxCommonObj.CultureName);

        if (HttpContext.Current.Session["CurrencyRate"] != null)
        {
            if (Session["CurrencyCode"].ToString() != MainCurrency)
            {
                decimal rate1 = decimal.Parse(Session["CurrencyRate"].ToString());
                rate = Math.Round(rate1 + (rate1 * additionalCCVR / 100), 4);
            }
            else
            {
                rate = decimal.Parse(Session["CurrencyRate"].ToString());
            }
        }

        List <ItemQuantityDiscountInfo> lstIQtyDiscount =
            AspxQtyDiscountMgntController.GetItemQuantityDiscountByUserName(aspxCommonObj, itemSKU);
        StringBuilder QtyDiscount = new StringBuilder();

        if (lstIQtyDiscount != null && lstIQtyDiscount.Count > 0)
        {
            QtyDiscount.Append("<div class=\"cssClassCommonGrid\">");
            QtyDiscount.Append("<p class=\"sfLocale\">Item Quantity Discount:</p>");
            QtyDiscount.Append("<table id=\"itemQtyDiscount\">");
            QtyDiscount.Append("<thead>");
            QtyDiscount.Append(
                "<tr class=\"cssClassHeadeTitle\"><th class=\"sfLocale\">Quantity (more than)</th><th class=\"sfLocale\">Price Per Unit</th></tr>");
            QtyDiscount.Append("</thead><tbody>");
            foreach (ItemQuantityDiscountInfo item in lstIQtyDiscount)
            {
                QtyDiscount.Append("<tr><td>" + Convert.ToInt32(item.Quantity) + "</td><td><span class='cssClassFormatCurrency'>" +
                                   (item.Price * rate) + "</span></td></tr>");
            }
            QtyDiscount.Append("</tbody></table>");
            QtyDiscount.Append("</div>");
            litQtyDiscount.Text = QtyDiscount.ToString();
        }
        else
        {
            string script = GetScriptRun("$('#bulkDiscount,#divQtyDiscount').hide();");
            litQtyDiscount.Text = script;
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!IsPostBack)
            {
                Page.ClientScript.RegisterClientScriptInclude("JQueryFormValidated", ResolveUrl("~/js/FormValidation/jquery.validate.js"));
                IncludeCss("ItemsManage", "/Templates/" + TemplateName + "/css/GridView/tablesort.css", "/Templates/" + TemplateName + "/css/MessageBox/style.css", "/Templates/" + TemplateName + "/css/AjaxUploader/fileuploader.css",
                           "/Administrator/Templates/Default/css/Tabs/slidingtabs-vertical.css");

                IncludeJs("ItemsManage", "/js/JQueryUI/jquery-ui-1.8.10.custom.js", "/js/GridView/jquery.grid.js",
                          "/js/GridView/SagePaging.js", "/js/GridView/jquery.global.js",
                          "/js/GridView/jquery.dateFormat.js", "/js/DateTime/date.js",
                          "/js/ImageGallery/jquery.mousewheel.js",
                          "/js/MessageBox/jquery.easing.1.3.js", "/js/MessageBox/alertbox.js",

                          "/js/Tabs/jquery.slidingtabs.js",
                          "/js/AjaxFileUploader/ajaxupload.js", "/js/PopUp/custom.js",
                          "/Modules/AspxCommerce/AspxUserDashBoard/js/ItemManagement.js", "/js/PopUp/popbox.js",
                          "/js/CurrencyFormat/jquery.formatCurrency-1.4.0.js",
                          "/js/CurrencyFormat/jquery.formatCurrency.all.js", "/js/AjaxFileUploader/fileuploader.js");

                StoreID     = GetStoreID;
                PortalID    = GetPortalID;
                UserName    = GetUsername;
                CultureName = GetCurrentCultureName;
                FormsAuthenticationTicket ticket = SecurityPolicy.GetUserTicket(GetPortalID);
                if (ticket != null && ticket.Name != ApplicationKeys.anonymousUser)
                {
                    MembershipController member     = new MembershipController();
                    UserInfo             userDetail = member.GetUserDetails(GetPortalID, GetUsername);
                    userEmail = userDetail.Email;
                }
                StoreSettingConfig ssc = new StoreSettingConfig();
                MaximumFileSize     = int.Parse(ssc.GetStoreSettingsByKey(StoreSetting.MaximumImageSize, StoreID, PortalID, CultureName));
                MaxDownloadFileSize = int.Parse(ssc.GetStoreSettingsByKey(StoreSetting.MaxDownloadFileSize, StoreID, PortalID, CultureName));
                PriceUnit           = ssc.GetStoreSettingsByKey(StoreSetting.MainCurrency, StoreID, PortalID, CultureName);
                WeightUnit          = ssc.GetStoreSettingsByKey(StoreSetting.WeightUnit, StoreID, PortalID, CultureName);
                DimensionUnit       = ssc.GetStoreSettingsByKey(StoreSetting.DimensionUnit, StoreID, PortalID, CultureName);
                CurrencyCodeSlected = ssc.GetStoreSettingsByKey(StoreSetting.MainCurrency, StoreID, PortalID, CultureName);
            }
            IncludeLanguageJS();
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        SetCustomerID();
        GetStoreSettings();
        LoadGlobalVariables();
        IncludeCoreLanguageJS();
        IncludeRssFeedLanguageJS();
        StoreSettingConfig ssc = new StoreSettingConfig();

        AllowRealTimeNotifications = ssc.GetStoreSettingsByKey(StoreSetting.AllowRealTimeNotifications, GetStoreID, GetPortalID, GetCurrentCultureName);
        if (AllowRealTimeNotifications.ToLower() == "true")
        {
            IncludeJs("SignalR", "/js/SignalR/jquery.signalR-2.2.0.min.js", "/signalr/hubs", "/Modules/AspxCommerce/AspxStartUpEvents/js/RealTimeAspxMgmt.js");
        }
        ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "ratelist", " var currencyRate='[]';", true);
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         StoreID     = GetStoreID;
         PortalID    = GetPortalID;
         CultureName = GetCurrentCultureName;
         StoreSettingConfig ssc = new StoreSettingConfig();
         AllowAddToCompare = ssc.GetStoreSettingsByKey(StoreSetting.EnableCompareItems, StoreID, PortalID, CultureName);
         //IncludeLanguageJS();
     }
     catch (Exception ex)
     {
         ProcessException(ex);
     }
 }
Beispiel #15
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!IsPostBack)
            {
                IncludeCss("ViewTagsItems", "/Templates/" + TemplateName + "/css/MessageBox/style.css", "/Templates/" + TemplateName + "/css/ToolTip/tooltip.css", "/Templates/" + TemplateName + "/css/FancyDropDown/fancy.css");
                IncludeJs("ViewTagsItems", "/js/Templating/tmpl.js",
                          "/js/encoder.js", "/js/Paging/jquery.pagination.js",
                          "/js/Templating/AspxTemplate.js",
                          "/js/MessageBox/jquery.easing.1.3.js",
                          "/js/MessageBox/alertbox.js", "/js/jquery.tipsy.js",
                          "/js/FancyDropDown/itemFancyDropdown.js",
                          "/js/SageFrameCorejs/itemTemplateView.js",
                          "/Modules/AspxCommerce/AspxPopularTags/js/ViewTaggedItem.js");
                StoreID               = GetStoreID;
                PortalID              = GetPortalID;
                CustomerID            = GetCustomerID;
                UserName              = GetUsername;
                CultureName           = GetCurrentCultureName;
                PopularTagsModulePath = ResolveUrl((this.AppRelativeTemplateSourceDirectory));
                if (HttpContext.Current.Session.SessionID != null)
                {
                    SessionCode = HttpContext.Current.Session.SessionID.ToString();
                }

                UserIP = HttpContext.Current.Request.UserHostAddress;
                IPAddressToCountryResolver ipToCountry = new IPAddressToCountryResolver();
                ipToCountry.GetCountry(UserIP, out CountryName);

                TagsIDs = Request.QueryString["tagsId"];

                StoreSettingConfig ssc = new StoreSettingConfig();
                NoImageTagItemsPath   = ssc.GetStoreSettingsByKey(StoreSetting.DefaultProductImageURL, StoreID, PortalID, CultureName);
                AllowAddToCart        = ssc.GetStoreSettingsByKey(StoreSetting.ShowAddToCartButton, StoreID, PortalID, CultureName);
                AllowOutStockPurchase = ssc.GetStoreSettingsByKey(StoreSetting.AllowOutStockPurchase, StoreID, PortalID, CultureName);
                ItemDisplayMode       = ssc.GetStoreSettingsByKey(StoreSetting.ItemDisplayMode, StoreID, PortalID, CultureName);
                IncludeLanguageJS();
                GetAspxTemplates();
            }
            IncludeLanguageJS();
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }
Beispiel #16
0
        public void LoadGlobalVariables()
        {
            IsUseFriendlyUrls = sfConfig.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls);
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "globalServicePath", " var aspxservicePath='" + ResolveUrl("~/") + "Modules/AspxCommerce/AspxCommerceServices/" + "';", true);
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "globalRootPath", " var aspxRootPath='" + ResolveUrl("~/") + "';", true);
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "globalTemplateFolderPath", " var aspxTemplateFolderPath='" + ResolveUrl("~/") + "Templates/" + TemplateName + "';", true);
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "storeID", " var storeID='" + GetStoreID + "';", true);
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "portalID", " var portalID='" + GetPortalID + "';", true);
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "culturename", " var cultureName='" + GetCurrentCultureName + "';", true);
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "templatename", " var templateName='" + TemplateName + "';", true);
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "customerid", " var customerID='" + GetCustomerID + "';", true);
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "username", " var userName='******';", true);
            //  ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "noimagepath", " var aspxTemplateFolderPath='" + ResolveUrl("~/") + "Templates/" + TemplateName + "';", true);
            //  ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "defaultlogourl", " var aspxTemplateFolderPath='" + ResolveUrl("~/") + "Templates/" + TemplateName + "';", true);
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "isfriendlyurl", " var IsUseFriendlyUrls='" + IsUseFriendlyUrls + "';", true);
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "sessioncode", " var sessionCode='" + HttpContext.Current.Session.SessionID.ToString() + "';", true);
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "clientIPAddress", " var clientIPAddress='" + HttpContext.Current.Request.UserHostAddress + "';", true);
            string userIP      = HttpContext.Current.Request.UserHostAddress;
            string countryName = "";
            IPAddressToCountryResolver ipToCountry = new IPAddressToCountryResolver();

            ipToCountry.GetCountry(userIP, out countryName);
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "clientCountry", " var aspxCountryName='" + countryName + "';", true);
            StoreSettingConfig ssc          = new StoreSettingConfig();
            string             currencyCode = ssc.GetStoreSettingsByKey(StoreSetting.MainCurrency, GetStoreID, GetPortalID, GetCurrentCultureName);

            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "region", " var region='" + StoreSetting.GetRegionFromCurrencyCode(currencyCode, GetStoreID, GetPortalID) + "';", true);
            if (IsUseFriendlyUrls)
            {
                if (GetPortalID > 1)
                {
                    sageRedirectPath = ResolveUrl("~/portal/" + GetPortalSEOName + "/");
                    sageNavigateUrl  = ResolveUrl("~/portal/" + GetPortalSEOName + "/" + sfConfig.GetSettingsByKey(SageFrameSettingKeys.PortalDefaultPage) + ".aspx");
                }
                else
                {
                    sageRedirectPath = ResolveUrl("~/");
                    sageNavigateUrl  = ResolveUrl("~/" + sfConfig.GetSettingsByKey(SageFrameSettingKeys.PortalDefaultPage) + ".aspx");
                }
            }
            else
            {
                sageRedirectPath = ResolveUrl("{~/Default.aspx?ptlid=" + GetPortalID + "&ptSEO=" + GetPortalSEOName + "&pgnm=");
                sageNavigateUrl  = ResolveUrl("~/Default.aspx?ptlid=" + GetPortalID + "&ptSEO=" + GetPortalSEOName + "&pgnm=" + sfConfig.GetSettingsByKey(SageFrameSettingKeys.PortalDefaultPage));
            }
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "globalRedirectPath", " var aspxRedirectPath='" + sageRedirectPath + "';", true);
        }
Beispiel #17
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!IsPostBack)
            {
                IncludeCss("ItemLists", "/Templates/" + TemplateName + "/css/MessageBox/style.css",
                           "/Templates/" + TemplateName + "/css/ToolTip/tooltip.css", "/Templates/" + TemplateName + "/css/FancyDropDown/fancy.css");
                IncludeJs("ItemLists", "/js/Templating/tmpl.js", "/js/encoder.js", "/js/Paging/jquery.pagination.js",
                          "/js/Templating/AspxTemplate.js");
                IncludeJs("ItemLists", "/js/MessageBox/jquery.easing.1.3.js", "/js/MessageBox/alertbox.js",
                          "/js/jquery.tipsy.js", "/js/FancyDropDown/itemFancyDropdown.js", "/js/SageFrameCorejs/itemTemplateView.js");

                StoreID     = GetStoreID;
                PortalID    = GetPortalID;
                CustomerID  = GetCustomerID;
                UserName    = GetUsername;
                CultureName = GetCurrentCultureName;
                if (HttpContext.Current.Session.SessionID != null)
                {
                    SessionCode = HttpContext.Current.Session.SessionID.ToString();
                }

                UserIP = HttpContext.Current.Request.UserHostAddress;
                IPAddressToCountryResolver ipToCountry = new IPAddressToCountryResolver();
                ipToCountry.GetCountry(UserIP, out CountryName);

                CategoryID      = Int32.Parse(Request.QueryString["cid"]);
                SearchText      = Request.QueryString["q"];
                IsGiftCard      = bool.Parse(Request.QueryString["isgiftcard"]);
                hst             = AppLocalized.getLocale(this.AppRelativeTemplateSourceDirectory);
                this.Page.Title = getLocale("Search") + " - " + SearchText;
                StoreSettingConfig ssc = new StoreSettingConfig();
                NoImageItemListPath   = ssc.GetStoreSettingsByKey(StoreSetting.DefaultProductImageURL, StoreID, PortalID, CultureName);
                AllowAddToCart        = ssc.GetStoreSettingsByKey(StoreSetting.ShowAddToCartButton, StoreID, PortalID, CultureName);
                AllowOutStockPurchase = ssc.GetStoreSettingsByKey(StoreSetting.AllowOutStockPurchase, StoreID, PortalID, CultureName);
                NoOfItemsInARow       = int.Parse(ssc.GetStoreSettingsByKey(StoreSetting.NoOfDisplayItems, StoreID, PortalID, CultureName));
                ItemDisplayMode       = ssc.GetStoreSettingsByKey(StoreSetting.ItemDisplayMode, StoreID, PortalID, CultureName);
            }
            GetAspxTemplates();
            IncludeLanguageJS();
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }
Beispiel #18
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            SageFrameConfig pagebase = new SageFrameConfig();
            IsUseFriendlyUrls = pagebase.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls);
            if (!IsPostBack)
            {
                IncludeCss("ShoppingBagHeader", "/Templates/" + TemplateName + "/css/PopUp/style.css", "/Templates/" + TemplateName + "/css/MessageBox/style.css",
                           "/Modules/AspxCommerce/AspxShoppingBagHeader/css/module.css");
                IncludeJs("ShoppingBagHeader", "/js/PopUp/custom.js", "/js/MessageBox/jquery.easing.1.3.js", "/js/MessageBox/alertbox.js",
                          "/Modules/AspxCommerce/AspxShoppingBagHeader/js/ShoppingBag.js");
                StoreID      = GetStoreID;
                PortalID     = GetPortalID;
                CustomerID   = GetCustomerID;
                UserName     = GetUsername;
                CultureName  = GetCurrentCultureName;
                UserModuleID = SageUserModuleID;

                if (HttpContext.Current.Session.SessionID != null)
                {
                    SessionCode = HttpContext.Current.Session.SessionID.ToString();
                }

                StoreSettingConfig ssc = new StoreSettingConfig();
                ShowMiniShopCart           = ssc.GetStoreSettingsByKey(StoreSetting.ShowMiniShoppingCart, StoreID, PortalID, CultureName);
                AllowAddToCart             = ssc.GetStoreSettingsByKey(StoreSetting.ShowAddToCartButton, StoreID, PortalID, CultureName);
                AllowMultipleAddChkOut     = ssc.GetStoreSettingsByKey(StoreSetting.AllowMultipleShippingAddress, StoreID, PortalID, CultureName);
                MinCartSubTotalAmount      = ssc.GetStoreSettingsByKey(StoreSetting.MinimumCartSubTotalAmount, StoreID, PortalID, CultureName);
                AllowAnonymousCheckOut     = ssc.GetStoreSettingsByKey(StoreSetting.AllowAnonymousCheckOut, StoreID, PortalID, CultureName);
                ShoppingCartURL            = ssc.GetStoreSettingsByKey(StoreSetting.ShoppingCartURL, StoreID, PortalID, CultureName);
                SingleAddressChkOutURL     = ssc.GetStoreSettingsByKey(StoreSetting.SingleCheckOutURL, StoreID, PortalID, CultureName);
                AllowRealTimeNotifications = ssc.GetStoreSettingsByKey(StoreSetting.AllowRealTimeNotifications, StoreID, PortalID, CultureName);
                AspxCommonInfo aspxCommonObj = new AspxCommonInfo();
                aspxCommonObj.StoreID     = GetStoreID;
                aspxCommonObj.PortalID    = GetPortalID;
                aspxCommonObj.CultureName = GetCurrentCultureName;
                BagType = AspxShoppingBagController.GetShoppingBagSetting(aspxCommonObj);
            }
            IncludeLanguageJS();
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }
Beispiel #19
0
    private void LoadGlobalVariables()
    {
        StoreSettingConfig ssc          = new StoreSettingConfig();
        string             currencyCode = ssc.GetStoreSettingsByKey(StoreSetting.MainCurrency, GetStoreID, GetPortalID, GetCurrentCultureName);

        if (currencyCode != null)
        {
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "region",
                                                    " var region='" +
                                                    StoreSetting.GetRegionFromCurrencyCode(currencyCode, GetStoreID,
                                                                                           GetPortalID) + "';", true);
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "curSymbol",
                                                    " var curSymbol='" +
                                                    StoreSetting.GetSymbolFromCurrencyCode(currencyCode, GetStoreID,
                                                                                           GetPortalID) + "';", true);
        }
    }
    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"));
        }
    }
Beispiel #21
0
    private void SortByList()
    {
        StoreSettingConfig ssc           = new StoreSettingConfig();
        string             sortByOptions = ssc.GetStoreSettingsByKey(StoreSetting.SortByOptions, StoreID, PortalID, CultureName);

        string[]      sortByOption      = sortByOptions.Substring(0, sortByOptions.LastIndexOf(',')).Split(',');
        StringBuilder wishListSortByBdl = new StringBuilder();

        wishListSortByBdl.Append("<span class=\"sfLocale\">Sort by:</span><select id=\"ddlWishListSortBy\" class=\"sfListmenu\">");
        foreach (string sortByOption1 in sortByOption)
        {
            string[] sortByOptionsplit = sortByOption1.Split('#');
            wishListSortByBdl.Append("<option data-html-text=\"" + sortByOptionsplit[1] + "\" value=" + sortByOptionsplit[0] + ">" + sortByOptionsplit[1] + "</option>");
        }
        wishListSortByBdl.Append("</select>");
        ltrWishListSortBy.Text = wishListSortByBdl.ToString();
    }
Beispiel #22
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!IsPostBack)
            {
                StoreID     = GetStoreID;
                PortalID    = GetPortalID;
                UserName    = GetUsername;
                CultureName = GetCurrentCultureName;
                CustomerID  = GetCustomerID;
                basePath    = ResolveUrl("~/");
                IncludeJs("BestSellersCarousel",
                          "/Modules/AspxCommerce/AspxBestSellers/js/BestSellersCarousel.js",
                          "/js/Sliderjs/jquery.bxSlider.js");
                IncludeCss("BxSlider", "/Templates/" + TemplateName + "/css/Slider/style.css");

                StoreSettingConfig ssc = new StoreSettingConfig();
                CountBestSeller =
                    int.Parse(ssc.GetStoreSettingsByKey(StoreSetting.NoOfBestSellersItemDisplay, StoreID, PortalID,
                                                        CultureName));
                EnableBestSellerItems = ssc.GetStoreSettingsByKey(StoreSetting.EnableBestSellerItems, StoreID, PortalID,
                                                                  CultureName);
                DefaultImagePath = ssc.GetStoreSettingsByKey(StoreSetting.DefaultProductImageURL, StoreID, PortalID,
                                                             CultureName);
                AllowOutStockPurchase = ssc.GetStoreSettingsByKey(StoreSetting.AllowOutStockPurchase, StoreID, PortalID,
                                                                  CultureName);
                MaxCompareItemCount =
                    int.Parse(ssc.GetStoreSettingsByKey(StoreSetting.MaxNoOfItemsToCompare, StoreID, PortalID,
                                                        CultureName));
                AllowWishListLatestItem = ssc.GetStoreSettingsByKey(StoreSetting.EnableWishList, StoreID, PortalID,
                                                                    CultureName);
                AllowAddToCompareLatest = ssc.GetStoreSettingsByKey(StoreSetting.EnableCompareItems, StoreID, PortalID,
                                                                    CultureName);
            }
            IncludeLanguageJS();
            if (EnableBestSellerItems.ToLower() == "true")
            {
                GetBestSellerCasrousel();
            }
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!IsPostBack)
            {
                var sfConfig = new SageFrameConfig();
                _isUseFriendlyUrls = sfConfig.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls);

                if (_isUseFriendlyUrls)
                {
                    if (GetPortalID > 1)
                    {
                        _sageRedirectPath = ResolveUrl("~/portal/" + GetPortalSEOName + "/" + sfConfig.GetSettingsByKey(SageFrameSettingKeys.PortalDefaultPage) + ".aspx");
                        _addressPath      = HttpContext.Current.Request.ServerVariables["SERVER_NAME"] + "/portal/" + GetPortalSEOName + "/";
                    }
                    else
                    {
                        _sageRedirectPath = ResolveUrl("~/" + sfConfig.GetSettingsByKey(SageFrameSettingKeys.PortalDefaultPage) + ".aspx");
                        _addressPath      = HttpContext.Current.Request.ServerVariables["SERVER_NAME"] + "/";
                    }
                }
                else
                {
                    _sageRedirectPath = ResolveUrl("{~/Default.aspx?ptlid=" + GetPortalID + "&ptSEO=" + GetPortalSEOName + "&pgnm=" + sfConfig.GetSettingsByKey(SageFrameSettingKeys.PortalDefaultPage));
                }

                var imgProgress = (Image)UpdateProgress1.FindControl("imgPrgress");
                if (imgProgress != null)
                {
                    imgProgress.ImageUrl = GetTemplateImageUrl("ajax-loader.gif", true);
                }
                hlnkHomePage.NavigateUrl = _sageRedirectPath;

                var ssc = new StoreSettingConfig();
                SendEmailFrom   = ssc.GetStoreSettingsByKey(StoreSetting.SendEcommerceEmailsFrom, GetStoreID, GetPortalID, GetCurrentCultureName);
                SendOrderNotice = ssc.GetStoreSettingsByKey(StoreSetting.SendOrderNotification, GetStoreID, GetPortalID, GetCurrentCultureName);

                SendConfrimMessage();
            }
            IncludeLanguageJS();
        }
        catch
        {
        }
    }
Beispiel #24
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!IsPostBack)
            {
                IncludeCss("OrderManagement", "/Templates/" + TemplateName + "/css/GridView/tablesort.css", "/Templates/" + TemplateName + "/css/MessageBox/style.css");
                IncludeJs("OrderManagement", "/js/GridView/jquery.grid.js", "/js/GridView/SagePaging.js", "/js/GridView/jquery.global.js", "/js/GridView/jquery.dateFormat.js",
                          "/js/MessageBox/jquery.easing.1.3.js", "/js/MessageBox/alertbox.js", "/js/ExportToCSV/table2CSV.js", "/js/CurrencyFormat/jquery.formatCurrency-1.4.0.js",
                          "/js/CurrencyFormat/jquery.formatCurrency.all.js", "/Modules/AspxCommerce/AspxOrderManagement/js/OrderManagement.js");
                UserModuleID = SageUserModuleID;
                StoreID      = GetStoreID;
                PortalID     = GetPortalID;
                UserName     = GetUsername;
                CultureName  = GetCurrentCultureName;

                MembershipController member = new MembershipController();
                UserInfo             user   = member.GetUserDetails(GetPortalID, GetUsername);
                SenderEmail  = user.Email;
                templateName = TemplateName;
                StoreSettingConfig ssc = new StoreSettingConfig();
                StoreName   = ssc.GetStoreSettingsByKey(StoreSetting.StoreName, StoreID, PortalID, CultureName);
                NewOrderRss = ssc.GetStoreSettingsByKey(StoreSetting.NewOrderRss, StoreID, PortalID, CultureName);
                AllowRealTimeNotifications = ssc.GetStoreSettingsByKey(StoreSetting.AllowRealTimeNotifications, StoreID, PortalID, CultureName);
                if (AllowRealTimeNotifications.ToLower() == "true")
                {
                    IncludeJs("SignalR", false, "/js/SignalR/jquery.signalR-2.2.0.min.js", "/signalr/hubs", "/Modules/AspxCommerce/AspxStartUpEvents/js/RealTimeAspxMgmt.js");
                }
                if (NewOrderRss.ToLower() == "true")
                {
                    RssFeedUrl = ssc.GetStoreSettingsByKey(StoreSetting.RssFeedURL, StoreID, PortalID, CultureName);
                }
                AspxCommerce.Core.WareHouseAddress wareHouseAddress = GetWareHouseAddress(StoreID, PortalID);
                if (wareHouseAddress == null)
                {
                    WareHouseAddress = "null";
                }
            }
            IncludeLanguageJS();
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            SageFrameConfig    pagebase = new SageFrameConfig();
            StoreSettingConfig ssc      = new StoreSettingConfig();
            IsUseFriendlyUrls = pagebase.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls);
            if (!IsPostBack)
            {
                IncludeCss("SimpleSearch", "/Templates/" + TemplateName + "/css/JQueryUIFront/jquery.ui.all.css");
                IncludeJs("SimpleSearch", "/js/JQueryUI/jquery-ui-1.8.10.custom.js", "/Modules/AspxCommerce/AspxGeneralSearch/js/SimpleSearch.js");
                StoreID     = GetStoreID;
                PortalID    = GetPortalID;
                UserName    = GetUsername;
                CultureName = GetCurrentCultureName;
                IncludeLanguageJS();
                AdvanceSearchURL = ssc.GetStoreSettingsByKey(StoreSetting.AdvanceSearchURL, StoreID, PortalID, CultureName);
                AspxCommonInfo aspxCommonObj = new AspxCommonInfo();
                aspxCommonObj.StoreID     = StoreID;
                aspxCommonObj.PortalID    = PortalID;
                aspxCommonObj.CultureName = CultureName;
                SearchSettingInfo objSettingInfo = AspxSearchController.GetSearchSetting(aspxCommonObj);
                ShowCategoryForSearch = objSettingInfo.ShowCategoryForSearch;
                EnableAdvanceSearch   = objSettingInfo.EnableAdvanceSearch;
                ShowSearchKeyWords    = objSettingInfo.ShowSearchKeyWord;

                ResultPage = ssc.GetStoreSettingsByKey(StoreSetting.DetailPageURL, StoreID, PortalID,
                                                       CultureName);
            }

            if (ShowCategoryForSearch.ToLower() == "true")
            {
                GetAllCategoryForSearch();
            }
            if (ShowSearchKeyWords.ToLower() == "true")
            {
                GetTopSearchTerms();
            }
            IncludeLanguageJS();
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }
Beispiel #26
0
    private void GetLatestItemRssFeed(string rssOption)
    {
        try
        {
            StoreSettingConfig ssc = new StoreSettingConfig();
            int count = 0;
            switch (rssOption)
            {
            case "category":
                count = Int32.Parse(ssc.GetStoreSettingsByKey(StoreSetting.NewCategoryRssCount, StoreID, PortalID, CultureName));
                break;

            case "neworders":
                count = Int32.Parse(ssc.GetStoreSettingsByKey(StoreSetting.NewOrderRssCount, StoreID, PortalID, CultureName));
                break;

            case "newcustomers":
                count = Int32.Parse(ssc.GetStoreSettingsByKey(StoreSetting.NewCustomerRssCount, StoreID, PortalID, CultureName));
                break;

            case "newitemreview":
                count = Int32.Parse(ssc.GetStoreSettingsByKey(StoreSetting.NewItemReviewRssCount, StoreID, PortalID, CultureName));
                break;

            case "newtags":
                count = Int32.Parse(ssc.GetStoreSettingsByKey(StoreSetting.NewItemTagRssCount, StoreID, PortalID, CultureName));
                break;

            case "lowstockitems":
                count = Int32.Parse(ssc.GetStoreSettingsByKey(StoreSetting.LowStockItemRssCount, StoreID, PortalID, CultureName));
                break;
            }
            AspxCommonInfo aspxCommonObj = new AspxCommonInfo();
            aspxCommonObj.StoreID     = GetStoreID;
            aspxCommonObj.PortalID    = GetPortalID;
            aspxCommonObj.UserName    = GetUsername;
            aspxCommonObj.CultureName = GetCurrentCulture();
            string pageURL = Request.Url.AbsoluteUri;
            GetRssFeedContens(aspxCommonObj, pageURL, rssOption, count);
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!IsPostBack)
            {
                IncludeCss("AdvanceSearch", "/Templates/" + TemplateName + "/css/MessageBox/style.css",
                           "/Templates/" + TemplateName + "/css/JQueryUI/jquery.ui.all.css",
                           "/Templates/" + TemplateName + "/css/PopUp/style.css",
                           "/Templates/" + TemplateName + "/css/ToolTip/tooltip.css",
                           "/Templates/" + TemplateName + "/css/FancyDropDown/fancy.css");
                IncludeJs("AdvanceSearch", "/js/JQueryUI/jquery-ui-1.8.10.custom.js", "/js/PopUp/custom.js",
                          "/js/jquery.tipsy.js", "/js/FancyDropDown/itemFancyDropdown.js",
                          "/js/SageFrameCorejs/itemTemplateView.js",
                          "/Modules/AspxCommerce/AspxGeneralSearch/js/AdvanceSearch.js");
                StoreID     = GetStoreID;
                PortalID    = GetPortalID;
                CustomerID  = GetCustomerID;
                UserName    = GetUsername;
                CultureName = GetCurrentCultureName;
                if (HttpContext.Current.Session.SessionID != null)
                {
                    SessionCode = HttpContext.Current.Session.SessionID.ToString();
                }

                UserIP = HttpContext.Current.Request.UserHostAddress;
                IPAddressToCountryResolver ipToCountry = new IPAddressToCountryResolver();
                ipToCountry.GetCountry(UserIP, out CountryName);

                StoreSettingConfig ssc = new StoreSettingConfig();
                NoImageAdSearchPath    = ssc.GetStoreSettingsByKey(StoreSetting.DefaultProductImageURL, StoreID, PortalID, CultureName);
                AllowOutStockPurchase  = ssc.GetStoreSettingsByKey(StoreSetting.AllowOutStockPurchase, StoreID, PortalID, CultureName);
                AllowWishListAdvSearch = ssc.GetStoreSettingsByKey(StoreSetting.EnableWishList, StoreID, PortalID, CultureName);
                NoOfItemsInARow        = int.Parse(ssc.GetStoreSettingsByKey(StoreSetting.NoOfDisplayItems, StoreID, PortalID, CultureName));
                ItemDisplayMode        = ssc.GetStoreSettingsByKey(StoreSetting.ItemDisplayMode, StoreID, PortalID, CultureName);
                IncludeLanguageJS();
            }
            GetAspxTemplates();
            IncludeLanguageJS();
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }
Beispiel #28
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            var ssc = new StoreSettingConfig();
            DimentionalUnit = ssc.GetStoreSettingsByKey(StoreSetting.DimensionUnit, GetStoreID, GetPortalID,
                                                        GetCurrentCultureName);
            WeightUnit = ssc.GetStoreSettingsByKey(StoreSetting.WeightUnit, GetStoreID, GetPortalID,
                                                   GetCurrentCultureName);
            ShowRateEstimate = ssc.GetStoreSettingsByKey(StoreSetting.EstimateShippingCostInCartPage, GetStoreID,
                                                         GetPortalID,
                                                         GetCurrentCultureName);

            IncludeJs("ValidationRate", "/js/FormValidation/jquery.validate.js");
            GetItemCount();
        }
        IncludeLanguageJS();
    }
Beispiel #29
0
        public void sendEmail(int?custID, string newpassword, string portalName, string userEmail, string firstname, string lastname, string portalUrl)
        {
            StringBuilder emailbody = new StringBuilder();

            portalUrl = "http://" + portalUrl;
            emailbody.Append(
                "<table align=\"center\" width=\"700\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background-color: #f5f5f5;font: 12px Arial, Helvetica, sans-serif;color: #797979;text-shadow: 1px 1px 0px #fff;\"> <tbody> <tr> <td> <table width=\"700\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"margin:0px auto; background: #f5f5f5\"> <tbody> <tr> <td valign=\"top\" colspan=\"1\"> <table width=\"622\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"margin:0px auto; background=#f5f5f5\"> <tbody> <tr> <td width=\"473\"><a href=\"#\"><img width=\"148\" height=\"81\" style=\"border:none;\" alt=\"logo\" src=\"http://www.aspxcommerce.com/Upload/image/logo.png\" /></a></td> <td width=\"139\" style=\"text-align:right\">&nbsp;</td> </tr> <tr> <td colspan=\"2\">&nbsp;</td> </tr> <tr> <td colspan=\"2\"> <p style=\"margin:10px 0 10px 0; line-height:20px\">Dear <b>");

            emailbody.Append(firstname + " " + lastname + ",");
            emailbody.Append(
                "<br /></b></p></td></tr><tr><td valign=\"top\" colspan=\"2\">&nbsp;</td> </tr> <tr> <td valign=\"top\" colspan=\"2\"> <p style=\"margin:0 0 15px 0\"><a target=\"_blank\" href=\"http://www.aspxcommerce.com\" style=\"text-decoration: none;color: #226ab7;font-style: italic;\" title=\"AspxCommerce\"><span style=\"mso-bidi-font-family: Arial;color:black\">Congratulation, Your AspxCommerce Store has been created successfully.</span></a></p> </td> </tr> <tr> <td valign=\"top\" colspan=\"2\"> <p style=\"margin:0px\">&nbsp;</p> </td> </tr> <tr> <td height=\"15\" colspan=\"2\">To sign in to your account, please visit <a target='_blank' href='" + portalUrl + "'>" + portalUrl + "</a>");
            emailbody.Append(
                "</td></tr><tr><td height=\"15\" colspan=\"2\"><br /><strong>Your Store Login Information: </strong></td> </tr> <tr> <td height=\"15\" colspan=\"2\"> Your Store Url : ");
            emailbody.Append("<a target='_blank' href='" + portalUrl + "'>" + portalUrl + "</a>");
            emailbody.Append(
                "</td></tr><tr><td colspan=\"2\">&nbsp;</td></tr><tr><tr><td height=\"15\" colspan=\"2\"><strong> For Frontend Login: </strong></td></tr><td height=\"15\" colspan=\"2\">UserName: "******"customer_" + custID.ToString());
            emailbody.Append("</td></tr><tr><td height=\"15\" colspan=\"2\"> Password: "******"</td></tr><tr><td colspan=\"2\">&nbsp;</td></tr><tr><tr><td height=\"15\" colspan=\"2\"><strong> For Backend Login: </strong></td> </tr><td height=\"15\" colspan=\"2\"> Username: "******"storeadmin_" + custID.ToString());
            emailbody.Append("</td></tr><tr><td height=\"15\" colspan=\"2\"> Password: "******"</td></tr><tr><td colspan=\"2\">&nbsp;</td></tr><tr><td colspan=\"2\"><strong>If you have any questions regarding your account, click 'Reply' in your email client and we'll be only too happy to help. </strong></td></tr><tr><td colspan=\"2\">&nbsp;</td></tr><tr><td colspan=\"2\"><table width=\"661\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"> <tbody> <tr> <td width=\"217\">Best Regards,<br /> <strong style=\"color:#282929\">AspxCommerce Team</strong><br /> <a title=\"AspxCommerce\" style=\"text-decoration: none;color: #226ab7;font-style: italic;\" href=\"http://www.aspxcommerce.com\" target=\"_blank\">http://www.aspxcommerce.com</a></td> <td width=\"401\">&nbsp;</td> </tr> <tr> <td style=\"border-top:0px solid #cacaca; font: 10px Arial, Helvetica, sans-serif;\" colspan=\"2\">&nbsp;</td> </tr> <tr> <td style=\"border-top:1px solid #cacaca; font: 5px Arial, Helvetica, sans-serif;\" colspan=\"2\">&nbsp;</td> </tr> </tbody> </table> </td> </tr> <tr> <td colspan=\"1\"><span style=\"font: italic 11px Arial, Helvetica, sans-serif\">This message is confidential and intended for the recipient only. It is not allowed to copy this message, or to make it accessible for third parties. If you are not the intended recipient, please notify the sender by email.</span></td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table>");


            //emailbody.Append("<div style=\"width:600px;min-height:auto;background-color:#f2f2f2;color:#707070;font:13px/24px Verdana,Geneva,sans-serif;\"><div style=\"color:#49B8F4;font-size:20px;margin:auto 0;font-family:Verdana,Geneva,sans-serif\"> <label>");
            //emailbody.Append("Thank you for Subscribing AspxCommerce </label></div><p> <strong>Dear </strong> ");
            //emailbody.Append(" " + firstname + " " + lastname + "</p><div> Your <strong>AspxCommerce</strong> Login Information: <br/> Thank You for using <strong>Free 30 Days AspxCommerce Demo Store</strong>.<br/>Your Portal Url : <a href=\"" + portalUrl + "\" target=\"_blank\" style=\"color: rgb(39, 142, 230);\" >" + portalUrl + "</a>  <br /> <strong>Frontend Login </strong> <br/> UserName: customer_" + custID.ToString() + " <br/> Password: "******"<br /> <strong>For Backend Login </strong><br /> Username: storeadmin_" + custID.ToString() + " <br/> Password: "******"</div><div>If you are having any issues with login or any further inquiry then you can mail <a target=\"_blank\" href=\"mailto:[email protected]\" >[email protected]</a>.</div>");
            //emailbody.Append("<div> Please do not reply to this email. This mail is automatically generated after you subscribed.</div><div>Thank You <br/> AspxCommerce Team</div></div>");
            StoreSettingConfig ssc           = new StoreSettingConfig();
            string             sendEmailFrom = ssc.GetStoreSettingsByKey(StoreSetting.SendEcommerceEmailsFrom, GetStoreID, GetPortalID, GetCurrentCultureName);

            SageFrameConfig pagebase        = new SageFrameConfig();
            string          emailSuperAdmin = pagebase.GetSettingsByKey(SageFrameSettingKeys.SuperUserEmail);//[email protected]";
            string          emailSiteAdmin  = pagebase.GetSettingsByKey(SageFrameSettingKeys.SiteAdminEmailAddress);

            MailHelper.SendMailNoAttachment(sendEmailFrom, userEmail, "Thank You, for subscribing with AspxCommerce.", emailbody.ToString(), emailSuperAdmin, emailSiteAdmin);
        }
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            SageFrameConfig pagebase = new SageFrameConfig();
            IsUseFriendlyUrls = pagebase.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls);
            if (!IsPostBack)
            {
                IncludeCss("AspxHeaderControl", "/Templates/" + TemplateName + "/css/MessageBox/style.css", "/Templates/" + TemplateName + "/css/PopUp/style.css");
                IncludeJs("AspxHeaderControl", "/js/PopUp/custom.js", "/js/MessageBox/jquery.easing.1.3.js", "/js/MessageBox/alertbox.js", "/Modules/AspxCommerce/AspxHeaderControl/js/HeaderControl.js");
                StoreID     = GetStoreID;
                PortalID    = GetPortalID;
                CustomerID  = GetCustomerID;
                UserName    = GetUsername;
                CultureName = GetCurrentCultureName;

                if (HttpContext.Current.Session.SessionID != null)
                {
                    SessionCode = HttpContext.Current.Session.SessionID.ToString();
                }

                StoreSettingConfig ssc = new StoreSettingConfig();
                MyAccountURL           = ssc.GetStoreSettingsByKey(StoreSetting.MyAccountURL, StoreID, PortalID, CultureName);
                ShoppingCartURL        = ssc.GetStoreSettingsByKey(StoreSetting.ShoppingCartURL, StoreID, PortalID, CultureName);
                WishListURL            = ssc.GetStoreSettingsByKey(StoreSetting.WishListURL, StoreID, PortalID, CultureName);
                AllowAnonymousCheckOut = ssc.GetStoreSettingsByKey(StoreSetting.AllowAnonymousCheckOut, StoreID, PortalID, CultureName);
                AllowMultipleShipping  = ssc.GetStoreSettingsByKey(StoreSetting.AllowMultipleShippingAddress, StoreID, PortalID, CultureName);
                MinOrderAmount         = ssc.GetStoreSettingsByKey(StoreSetting.MinimumOrderAmount, StoreID, PortalID, CultureName);
                AllowWishList          = ssc.GetStoreSettingsByKey(StoreSetting.EnableWishList, StoreID, PortalID, CultureName);
                if (HttpContext.Current.Request.UrlReferrer != null)
                {
                    string urlContent = HttpContext.Current.Request.UrlReferrer.AbsolutePath;
                    if (urlContent.Contains(pagebase.GetSettingsByKey(SageFrameSettingKeys.PortalLoginpage)))
                    {
                        FrmLogin = true;
                    }
                }
            }
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }