protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         SageFrameConfig pagebase = new SageFrameConfig();
         GetPortalCommonInfo(out StoreID, out PortalID, out CustomerID, out UserName, out CultureName);
         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", "/js/Session.js");
             UserModuleID = SageUserModuleID;
             if (HttpContext.Current.Session.SessionID != null)
             {
                 SessionCode = HttpContext.Current.Session.SessionID.ToString();
             }
             StoreSettingConfig ssc = new StoreSettingConfig();
             ssc.GetStoreSettingParamEight(StoreSetting.ShowMiniShoppingCart, StoreSetting.ShowAddToCartButton,
                                           StoreSetting.AllowMultipleShippingAddress, StoreSetting.MinimumCartSubTotalAmount, StoreSetting.AllowAnonymousCheckOut,
                                           StoreSetting.ShoppingCartURL, StoreSetting.SingleCheckOutURL, StoreSetting.AllowRealTimeNotifications,
                                           out ShowMiniShopCart, out AllowAddToCart, out AllowMultipleAddChkOut, out MinCartSubTotalAmount, out AllowAnonymousCheckOut,
                                           out ShoppingCartURL, out SingleAddressChkOutURL, out AllowRealTimeNotifications, StoreID, PortalID, CultureName);
             AspxCommonInfo aspxCommonObj = new AspxCommonInfo(StoreID, PortalID, CultureName);
             BagType = AspxShoppingBagController.GetShoppingBagSetting(aspxCommonObj);
         }
         IncludeLanguageJS();
     }
     catch (Exception ex)
     {
         ProcessException(ex);
     }
 }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         ModuleServicePath         = ResolveUrl("~") + "Modules/AspxCommerce/AspxCommerceServices/";
         aspxCommonObj.StoreID     = GetStoreID;
         aspxCommonObj.PortalID    = GetPortalID;
         aspxCommonObj.CultureName = GetCurrentCultureName;
         BagType = AspxShoppingBagController.GetShoppingBagSetting(aspxCommonObj);
     }
     IncludeLanguageJS();
 }
Esempio n. 3
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");
                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;

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

                StoreSettingConfig ssc = new StoreSettingConfig();
                ShowMiniShopCart       = ssc.GetStoreSettingsByKey(StoreSetting.ShowMiniShoppingCart, 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);
                AspxCommonInfo aspxCommonObj = new AspxCommonInfo();
                aspxCommonObj.StoreID     = GetStoreID;
                aspxCommonObj.PortalID    = GetPortalID;
                aspxCommonObj.CultureName = GetCurrentCultureName;
                BagType = AspxShoppingBagController.GetShoppingBagSetting(aspxCommonObj);
            }
            IncludeLanguageJS();
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }