private void LoadAddresses()
        {
            using (SqlConnection con = DB.NewSqlConnection())
            {
                con.Open();
                using (IDataReader reader = DB.GetRSFormat(con, string.Format("exec EcommerceGetAddressList @CustomerCode = {0}, @AddressType = {1}, @ContactCode = {2} ", DB.SQuote(ThisCustomer.CustomerCode), (int)AddressType, DB.SQuote(ThisCustomer.ContactCode))))
                {
                    AddressList.DataSource = reader;
                    AddressList.DataBind();
                    reader.Close();
                    btnReturn.Text          = AppLogic.GetString("account.aspx.25", SkinID, ThisCustomer.LocaleSetting, true);
                    btnReturn.OnClientClick = "self.location='account.aspx?checkout=" + checkOutMode.ToString() + "';return false";
                    btnCheckOut.Visible     = checkOutMode;
                    btnCheckOut.Text        = AppLogic.GetString("account.aspx.24", SkinID, ThisCustomer.LocaleSetting);

                    string redirecTo = (checkOutMode && ReturnURL.IsNullOrEmpty()) ? "checkoutshipping.aspx" : ReturnURL;
                    if (checkOutMode && AppLogic.AppConfigBool("Checkout.UseOnePageCheckout"))
                    {
                        redirecTo = "checkout1.aspx";
                    }

                    btnCheckOut.OnClientClick = String.Format("self.location='{0}';return false;", redirecTo);

                    if (ThisCustomer.IsInEditingMode())
                    {
                        AppLogic.EnableButtonCaptionEditing(btnReturn, "account.aspx.25");
                        AppLogic.EnableButtonCaptionEditing(btnCheckOut, "account.aspx.24");
                    }
                }
            }
        }
示例#2
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            // Check for paypal
            _isFromPayPal = (CommonLogic.QueryStringCanBeDangerousContent("PayPal") == bool.TrueString && CommonLogic.QueryStringCanBeDangerousContent("token") != null);
            ctrlShippingMethod.ThisCustomer = ThisCustomer;

            if (ThisCustomer.IsInEditingMode())
            {
                PageNoCache();
            }
            else
            {
                SetCacheability();
            }

            RequireSecurePage();
            RequireCustomerRecord();

            InitializeShoppingCart();
            PerformPageAccessLogic();
            CheckWhetherToRequireShipping();
            DisplayCheckOutStepsImage();
            InitializeShippingMethodCaptions();
            InitializeShippingMethodControlValues();
            DisplayOrderSummary();
            ShowFreeshippingInfo();
            AssignCheckOutButtonCaption();

            RegisterPageScript();
        }
示例#3
0
        private void InitHeaderText()
        {
            string saveKey = String.Empty;

            var registryID = DomainConstants.GIFTREGISTRYPARAMCHAR.ToQueryStringDecode().TryParseGuid();

            if (!registryID.HasValue)
            {
                litRegistryHeader.Text = AppLogic.GetString("editgiftregistry.aspx.1", SkinID, ThisCustomer.LocaleSetting);
                btnSave.Text           = AppLogic.GetString("editgiftregistry.aspx.13", SkinID, ThisCustomer.LocaleSetting, true);
                saveKey = "editgiftregistry.aspx.13";
            }
            else
            {
                litRegistryHeader.Text = AppLogic.GetString("editgiftregistry.aspx.2", SkinID, ThisCustomer.LocaleSetting);
                btnSave.Text           = AppLogic.GetString("editgiftregistry.aspx.14", SkinID, ThisCustomer.LocaleSetting, true);
                saveKey = "editgiftregistry.aspx.14";
            }

            btnShare.Text           = AppLogic.GetString("editgiftregistry.aspx.18", SkinID, ThisCustomer.LocaleSetting, true);
            btnShowAllRegistry.Text = AppLogic.GetString("editgiftregistry.aspx.22", SkinID, ThisCustomer.LocaleSetting, true);

            if (ThisCustomer.IsInEditingMode())
            {
                AppLogic.EnableButtonCaptionEditing(btnSave, saveKey);
                AppLogic.EnableButtonCaptionEditing(btnShare, "editgiftregistry.aspx.18");
                AppLogic.EnableButtonCaptionEditing(btnShowAllRegistry, "editgiftregistry.aspx.22");
            }
        }
示例#4
0
        private void InitializeShippingMethodCaptions()
        {
            if (!_cart.CartAllowsShippingMethodSelection)
            {
                return;
            }

            if (_cartHasCouponAndIncludesFreeShipping)
            {
                lblSelectShippingMethod.Text = AppLogic.GetString("checkoutshipping.aspx.5", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
            }
            else
            {
                if (ThisCustomer.IsRegistered && Shipping.MultiShipEnabled() && _cart.TotalQuantity() > 1 && !_isFromPayPal)
                {
                    lblSelectShippingMethod.Text = String.Format(AppLogic.GetString("checkoutshipping.aspx.7", SkinID, ThisCustomer.LocaleSetting, true), "checkoutshippingmult.aspx");
                    if (ThisCustomer.IsInEditingMode())
                    {
                        lblSelectShippingMethod.Attributes.Add("data-contentKey", "checkoutshipping.aspx.7");
                        lblSelectShippingMethod.Attributes.Add("data-contentValue", AppLogic.GetString("checkoutshipping.aspx.7", SkinID, ThisCustomer.LocaleSetting, true));
                        lblSelectShippingMethod.Attributes.Add("data-contentType", "string resource");
                    }
                }
                else
                {
                    lblSelectShippingMethod.Text = AppLogic.GetString("checkout1.aspx.4", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
                }
            }
        }
        private void InitControlText()
        {
            btnCompletePurchase.Text = AppLogic.GetString("checkoutshippingmult.aspx.6", ThisCustomer.SkinID, ThisCustomer.LocaleSetting, true);

            if (ThisCustomer.IsInEditingMode())
            {
                AppLogic.EnableButtonCaptionEditing(btnCompletePurchase, "checkoutshippingmult.aspx.6");
            }
        }
示例#6
0
        private void InitializePageContent()
        {
            CheckoutMap.ImageUrl = AppLogic.LocateImageURL("skins/skin_" + SkinID.ToString() + "/images/step_2.gif");

            btnSignInAndCheckout.Text      = AppLogic.GetString("checkoutanon.aspx.12", ThisCustomer.SkinID, ThisCustomer.LocaleSetting, true);
            RegisterAndCheckoutButton.Text = AppLogic.GetString("checkoutanon.aspx.13", ThisCustomer.SkinID, ThisCustomer.LocaleSetting, true);
            Skipregistration.Text          = AppLogic.GetString("checkoutanon.aspx.14", ThisCustomer.SkinID, ThisCustomer.LocaleSetting, true);

            if (ThisCustomer.IsInEditingMode())
            {
                AppLogic.EnableButtonCaptionEditing(btnSignInAndCheckout, "checkoutanon.aspx.12");
                AppLogic.EnableButtonCaptionEditing(RegisterAndCheckoutButton, "checkoutanon.aspx.13");
                AppLogic.EnableButtonCaptionEditing(Skipregistration, "checkoutanon.aspx.14");
            }
        }
示例#7
0
        /// <summary>
        /// Checks if the inheriting page requires a script manager declared and creates the necessary scripts
        /// </summary>
        private void CheckIfRequireScriptManager()
        {
            if (!this.RequireScriptManager)
            {
                return;
            }

            HtmlForm frm = ThisForm;

            if (frm != null && frm.FindControl("ScriptManager") == null)
            {
                var pnlScriptManager = new Panel {
                    ID = "pnlScriptManager"
                };
                var manager = new ScriptManager
                {
                    ID = "ScriptManager",
                    EnablePartialRendering    = this.EnablePartialRendering,
                    EnableScriptGlobalization = this.EnableScriptGlobalization,
                    LoadScriptsBeforeUI       = false,
                    ScriptMode = ScriptMode.Release
                };

                if (CurrentContext.IsRequestingFromMobileMode(ThisCustomer))
                {
                    manager.Scripts.Add(new ScriptReference("~/mobile/js/base_ajax.js"));
                    manager.Scripts.Add(new ScriptReference("~/mobile/js/system/config-loader.js"));
                }
                else
                {
                    manager.Scripts.Add(new ScriptReference("~/jscripts/base_ajax.js"));
                    manager.Scripts.Add(new ScriptReference("~/jscripts/system/config-loader.js"));

                    //load here the tiny mce when editing mode for the topic
                    //since it cannot be loaded using getscript of jquery

                    if (ThisCustomer.IsInEditingMode() && Security.IsAdminCurrentlyLoggedIn())
                    {
                        manager.Scripts.Add(new ScriptReference("~/jscripts/tiny_mce/tiny_mce.js"));
                    }
                }

                frm.Controls.AddAt(0, manager);

                // allow page to register scripts and web services
                RegisterScriptsAndServices(manager);
            }
        }
        protected void InitPageContent()
        {
            SectionTitle        = AppLogic.GetString("contactus.aspx.1", ThisCustomer.SkinID, ThisCustomer.LocaleSetting, true);
            btnSendMessage.Text = AppLogic.GetString("contactus.aspx.11", ThisCustomer.SkinID, ThisCustomer.LocaleSetting, true);

            if (!AppLogic.AppConfigBool("SecurityCodeRequiredOnContactUs"))
            {
                pnlSecurityCode.Visible = false;
            }

            if (ThisCustomer.IsInEditingMode())
            {
                AppLogic.EnableButtonCaptionEditing(btnSendMessage, "contactus.aspx.11");
            }

            ContactUsFormHelpFulTipsTopic.SetContext = this;
        }
示例#9
0
        private void AssignCheckOutButtonCaption()
        {
            string contentKey = String.Empty;

            if (_cartHasCouponAndIncludesFreeShipping)
            {
                btnCompletePurchase.Text = AppLogic.GetString("checkoutshipping.aspx.8", ThisCustomer.SkinID, ThisCustomer.LocaleSetting, true);
                contentKey = "checkoutshipping.aspx.8";
            }
            else
            {
                btnCompletePurchase.Text = AppLogic.GetString("checkoutshipping.aspx.6", ThisCustomer.SkinID, ThisCustomer.LocaleSetting, true);
                contentKey = "checkoutshipping.aspx.6";
            }

            if (ThisCustomer.IsInEditingMode())
            {
                AppLogic.EnableButtonCaptionEditing(btnCompletePurchase, contentKey);
            }
        }
示例#10
0
        private void InitializePageContent()
        {
            RenderAddressDetails();

            pnlCheckoutImage.Visible = _checkOutMode;
            CheckoutImage.ImageUrl   = AppLogic.LocateImageURL("skins/skin_" + SkinID.ToString() + "/images/step_2.gif");

            btnReturn.Text = AppLogic.GetString("account.aspx.27", SkinID, ThisCustomer.LocaleSetting, true);

            string returnTo = (_checkOutMode && !_returnURL.IsNullOrEmptyTrimmed()) ? String.Format("&ReturnUrl={0}", _returnURL) : String.Empty;

            btnReturn.OnClientClick = String.Format("self.location='selectaddress.aspx?checkout={0}&&AddressType={1}{2}';return false;", _checkOutMode.ToStringLower(), _addressTypeString, returnTo);

            if (ThisCustomer.IsInEditingMode())
            {
                AppLogic.EnableButtonCaptionEditing(btnReturn, "account.aspx.27");
            }

            AddressControl.showResidenceTypes = (CommonLogic.QueryStringCanBeDangerousContent("AddressType").ToLowerInvariant() == "shipping");
        }
示例#11
0
        private void UpdatePreview()
        {
            string giftRegistryviewerRoot = CurrentContext.FullyQualifiedApplicationPath() + "viewregistry.aspx?" + DomainConstants.GIFTREGISTRYPARAMCHAR + "=";

            ctrlGiftRegistryForm.PrimaryURLText = giftRegistryviewerRoot;

            string customURL = GiftRegistryDA.GetCustomURLByRegistryID(ctrlGiftRegistryForm.RegistryID.Value);

            ctrlGiftRegistryForm.LinkPreview.Visible   = true;
            ctrlGiftRegistryForm.LinkPreview.HRef      = giftRegistryviewerRoot + customURL;
            ctrlGiftRegistryForm.LinkPreview.InnerText = AppLogic.GetString("editgiftregistry.aspx.16", ThisCustomer.SkinID, ThisCustomer.LocaleSetting, true);

            if (ThisCustomer.IsInEditingMode())
            {
                ctrlGiftRegistryForm.LinkPreview.Attributes.Add("data-contentKey", "editgiftregistry.aspx.16");
                ctrlGiftRegistryForm.LinkPreview.Attributes.Add("data-contentValue", AppLogic.GetString("editgiftregistry.aspx.16", ThisCustomer.SkinID, ThisCustomer.LocaleSetting, true));
                ctrlGiftRegistryForm.LinkPreview.Attributes.Add("data-contentType", "string resource");
            }

            ctrlGiftRegistryForm.CustomURL = customURL;
        }
        private void InitializePageContent()
        {
            bool   exists      = false;
            string ImgFilename = string.Empty;
            bool   existing    = false;

            AppLogic.LogEvent(ThisCustomer.CustomerCode, 10, ItemCode);

            pnlRequireReg.Visible         = (RequiresReg && ThisCustomer.IsNotRegistered);
            this.pnlEmailToFriend.Visible = !(RequiresReg && ThisCustomer.IsNotRegistered);

            emailproduct_aspx_1.Text = "<br><br><br><br><b>" + AppLogic.GetString("emailproduct.aspx.1", SkinID, ThisCustomer.LocaleSetting) + "</b><br><br><br><a href=\"signin.aspx?returnurl=showproduct.aspx?" + Server.HtmlEncode(Server.UrlEncode(CommonLogic.ServerVariables("QUERY_STRING"))) + "\">" + AppLogic.GetString("emailproduct.aspx.2", SkinID, ThisCustomer.LocaleSetting) + "</a> " + AppLogic.GetString("emailproduct.aspx.3", SkinID, ThisCustomer.LocaleSetting);

            String ProdPic = String.Empty;

            using (SqlConnection con = DB.NewSqlConnection())
            {
                con.Open();
                using (IDataReader reader = DB.GetRSFormat(con, "SELECT Filename FROM InventoryOverrideImage with (NOLOCK) WHERE ItemCode = {0} AND WebSiteCode = {1} AND IsDefaultIcon = 1", DB.SQuote(InterpriseHelper.GetInventoryItemCode(productID)), DB.SQuote(InterpriseHelper.ConfigInstance.WebSiteCode)))
                {
                    existing = reader.Read();
                    if (existing)
                    {
                        ImgFilename = (DB.RSField(reader, "Filename"));
                    }
                }
            }
            ProdPic             = AppLogic.LocateImageFilenameUrl("Product", InterpriseHelper.GetInventoryItemCode(productID), "medium", ImgFilename, AppLogic.AppConfigBool("Watermark.Enabled"), out exists);
            imgProduct.ImageUrl = ProdPic;

            string imgAltText = "";

            using (SqlConnection con = DB.NewSqlConnection())
            {
                con.Open();
                using (IDataReader reader = DB.GetRSFormat(con, "exec EcommerceDefaultMediumImage @ItemCode={0}, @WebSiteCode={1}, @LanguageCode={2} ", DB.SQuote(InterpriseHelper.GetInventoryItemCode(productID)), DB.SQuote(InterpriseHelper.ConfigInstance.WebSiteCode), DB.SQuote(Customer.Current.LanguageCode)))
                {
                    existing = reader.Read();
                    if (existing)
                    {
                        imgAltText = (DB.RSField(reader, "SEAltTextMedium"));
                    }
                }
            }

            imgProduct.AlternateText = imgAltText;

            ProductNavLink.NavigateUrl = InterpriseHelper.MakeItemLink(ItemCode);
            ProductNavLink.Text        = AppLogic.GetString("emailproduct.aspx.23", SkinID, ThisCustomer.LocaleSetting);
            emailproduct_aspx_4.Text   = AppLogic.GetString("emailproduct.aspx.4", SkinID, ThisCustomer.LocaleSetting) + " " + Security.HtmlEncode(ProductName) + CommonLogic.IIF(VariantName.Length > 0, " - " + Security.HtmlEncode(VariantName), "");
            emailproduct_aspx_11.Text  = AppLogic.GetString("emailproduct.aspx.11", SkinID, ThisCustomer.LocaleSetting);
            emailproduct_aspx_12.Text  = AppLogic.GetString("emailproduct.aspx.12", SkinID, ThisCustomer.LocaleSetting);
            emailproduct_aspx_22.Text  = AppLogic.GetString("emailproduct.aspx.21", SkinID, ThisCustomer.LocaleSetting);
            emailproduct_aspx_15.Text  = AppLogic.GetString("emailproduct.aspx.15", SkinID, ThisCustomer.LocaleSetting);
            emailproduct_aspx_18.Text  = AppLogic.GetString("emailproduct.aspx.18", SkinID, ThisCustomer.LocaleSetting);
            emailproduct_aspx_19.Text  = AppLogic.GetString("emailproduct.aspx.19", SkinID, ThisCustomer.LocaleSetting);
            txtMessage.Text            = AppLogic.GetString("emailproduct.aspx.22", SkinID, ThisCustomer.LocaleSetting, true);
            btnSubmit.Text             = AppLogic.GetString("emailproduct.aspx.20", SkinID, ThisCustomer.LocaleSetting, true);

            if (ThisCustomer.IsInEditingMode())
            {
                AppLogic.EnableButtonCaptionEditing(btnSubmit, "emailproduct.aspx.20");
            }
        }
示例#13
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            LoginButton.Text     = AppLogic.GetString("signin.aspx.16", ThisCustomer.SkinID, ThisCustomer.LocaleSetting, true);
            RequestPassword.Text = AppLogic.GetString("signin.aspx.15", ThisCustomer.SkinID, ThisCustomer.LocaleSetting, true);

            if (ThisCustomer.IsInEditingMode())
            {
                AppLogic.EnableButtonCaptionEditing(LoginButton, "signin.aspx.16");
                AppLogic.EnableButtonCaptionEditing(RequestPassword, "signin.aspx.15");
            }

            ReturnURL.Text = CommonLogic.QueryStringCanBeDangerousContent("ReturnURL");

            //
            if (ReturnURL.Text.IndexOf("<script>", StringComparison.InvariantCultureIgnoreCase) != -1)
            {
                throw new ArgumentException("SECURITY EXCEPTION");
            }

            if (HttpContext.Current.Request.Browser.Browser.Equals("Firefox", StringComparison.InvariantCultureIgnoreCase))
            {
                ErrorMsgLabel.Text = string.Empty;
            }

            string errorMsg = CommonLogic.QueryStringCanBeDangerousContent("ErrorMsg");

            if (errorMsg.Trim().Length != 0)
            {
                ErrorMsgLabel.Text = errorMsg;
                ErrorPanel.Visible = true;
            }

            RequireSecurePage();
            SectionTitle = AppLogic.GetString("signin.aspx.1", SkinID, ThisCustomer.LocaleSetting, true);
            if (!Page.IsPostBack)
            {
                DoingCheckout.Checked = CommonLogic.QueryStringBool("checkout");
                if (ReturnURL.Text.Length == 0)
                {
                    if (CommonLogic.QueryStringBool("checkout"))
                    {
                        ReturnURL.Text = "shoppingcart.aspx?checkout=true";
                    }
                    else
                    {
                        ReturnURL.Text = "default.aspx";
                    }
                }

                if (Request.Cookies[REMEMBERME_COOKIE_NAME] != null)
                {
                    try
                    {
                        HttpCookie cookie = Request.Cookies[REMEMBERME_COOKIE_NAME];
                        if (cookie != null)
                        {
                            if (CommonLogic.IsValidGuid(cookie.Value))
                            {
                                Guid     customerGuid       = new Guid(cookie.Value);
                                Customer rememberMeCustomer = Customer.Find(customerGuid);
                                EMail.Text = rememberMeCustomer.EMail;
                                this.Password.Attributes.Add("value", rememberMeCustomer.GetPassword());

                                this.PersistLogin.Checked = true;
                            }
                        }
                    }
                    catch
                    {
                        EMail.Text    = string.Empty;
                        Password.Text = string.Empty;
                    }
                }
                SignUpLink.NavigateUrl = "createaccount.aspx?checkout=" + DoingCheckout.Checked.ToString();
                CheckoutPanel.Visible  = DoingCheckout.Checked;
                CheckoutMap.HotSpots[0].AlternateText = AppLogic.GetString("checkoutanon.aspx.2", SkinID, ThisCustomer.LocaleSetting, true);
            }

            if (AppLogic.AppConfigBool("SecurityCodeRequiredOnStoreLogin"))
            {
                // Create a random code and store it in the Session object.
                SecurityImage.Visible           = true;
                SecurityCode.Visible            = true;
                RequiredFieldValidator4.Enabled = true;
                Label1.Visible         = true;
                SecurityImage.ImageUrl = "Captcha.ashx?id=1";
            }
            HeaderMsg.SetContext = this;
        }
示例#14
0
        private void InitializePageContent()
        {
            int AgeWishListDays = AppLogic.AppConfigUSInt("AgeWishListDays");

            if (AgeWishListDays == 0)
            {
                AgeWishListDays = 7;
            }

            ShoppingCart.Age(ThisCustomer.CustomerID, AgeWishListDays, CartTypeEnum.WishCart);

            if (cart == null)
            {
                cart = new InterpriseShoppingCart(base.EntityHelpers, SkinID, ThisCustomer, CartTypeEnum.WishCart, string.Empty, false, true);
            }

            string XmlPackageName = AppLogic.AppConfig("XmlPackage.WishListPageHeader");

            if (XmlPackageName.Length != 0)
            {
                throw new NotImplementedException("Not yet ported");
            }

            string CartTopControlLinesXmlPackage = AppLogic.AppConfig("XmlPackage.WishListPageTopControlLines");

            if (CartTopControlLinesXmlPackage.Length != 0)
            {
                XmlPackage_WishListPageTopControlLines.Text    = AppLogic.RunXmlPackage(CartTopControlLinesXmlPackage, base.GetParser, ThisCustomer, SkinID, string.Empty, null, true, true);
                XmlPackage_WishListPageTopControlLines.Visible = true;
            }
            else
            {
                pnlTopControlLines.Visible = true;
                btnContinueShopping1.Text  = AppLogic.GetString("shoppingcart.cs.12", ThisCustomer.SkinID, ThisCustomer.LocaleSetting, true);
                btnContinueShopping1.Attributes.Add("onclick", "self.location='" + BACKURL + "'");
                if (!cart.IsEmpty())
                {
                    btnUpateWishList1.Text = AppLogic.GetString("shoppingcart.cs.32", ThisCustomer.SkinID, ThisCustomer.LocaleSetting, true);
                }
                else
                {
                    btnUpateWishList1.Visible = false;
                }
            }


            tblWishList.Attributes.Add("style", "border-style: solid; border-width: 0px; border-color: #" + AppLogic.AppConfig("HeaderBGColor"));
            tblWishListBox.Attributes.Add("style", AppLogic.AppConfig("BoxFrameStyle"));
            wishlist_gif.ImageUrl = AppLogic.LocateImageURL("skins/Skin_" + SkinID.ToString() + "/images/wishlist.gif");

            string CartItemsXmlPackage = AppLogic.AppConfig("XmlPackage.WishListPageItems");

            if (CartItemsXmlPackage.Length != 0)
            {
                CartItems.Text = AppLogic.RunXmlPackage(CartItemsXmlPackage, base.GetParser, ThisCustomer, SkinID, string.Empty, null, true, true);
            }
            else
            {
                CartItems.Text = cart.RenderHTMLLiteral(new WishListPageLiteralRenderer());
            }

            string CartBottomControlLinesXmlPackage = AppLogic.AppConfig("XmlPackage.WishListPageBottomControlLines");

            if (CartBottomControlLinesXmlPackage.Length != 0)
            {
                Xml_WishListPageBottomControlLines.Text    = AppLogic.RunXmlPackage(CartBottomControlLinesXmlPackage, base.GetParser, ThisCustomer, SkinID, string.Empty, null, true, true);
                Xml_WishListPageBottomControlLines.Visible = true;
            }
            else
            {
                pnlBottomControlLines.Visible = true;
                btnContinueShopping2.Text     = AppLogic.GetString("shoppingcart.cs.12", ThisCustomer.SkinID, ThisCustomer.LocaleSetting, true);
                btnContinueShopping2.Attributes.Add("onclick", "self.location='" + BACKURL + "'");
                if (!cart.IsEmpty())
                {
                    btnUpateWishList2.Text = AppLogic.GetString("shoppingcart.cs.32", ThisCustomer.SkinID, ThisCustomer.LocaleSetting, true);
                }
                else
                {
                    btnUpateWishList2.Visible = false;
                }
            }

            if (ThisCustomer.IsInEditingMode())
            {
                AppLogic.EnableButtonCaptionEditing(btnContinueShopping1, "shoppingcart.cs.12");
                AppLogic.EnableButtonCaptionEditing(btnContinueShopping2, "shoppingcart.cs.12");
                AppLogic.EnableButtonCaptionEditing(btnUpateWishList1, "shoppingcart.cs.32");
                AppLogic.EnableButtonCaptionEditing(btnUpateWishList2, "shoppingcart.cs.32");
            }

            string XmlPackageName2 = AppLogic.AppConfig("XmlPackage.WishListPageFooter");

            if (XmlPackageName2.Length != 0)
            {
                Xml_WishListPageFooter.Text = AppLogic.RunXmlPackage(XmlPackageName2, base.GetParser, ThisCustomer, SkinID, string.Empty, null, true, true);
            }


            GetJSFunctions();
        }