private void PopulateControls() { uxCurrencySelector.RefreshDropDownList(); IList <PaymentOption> sourcePayments = DataAccessContext.PaymentOptionRepository.GetShownPaymentList( AdminUtilities.CurrentCulture, BoolFilter.ShowAll); if (DataAccessContext.Configurations.GetBoolValue("VevoPayPADSSMode") && KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { uxPaymentListGrid.DataSource = sourcePayments; } else { IList <PaymentOption> integratedPayments = new List <PaymentOption>(); foreach (PaymentOption payment in sourcePayments) { if (!string.IsNullOrEmpty(payment.IntegratedProviderClassName) || (payment.Name == "Custom") || (payment.Name == "Bank Transfer") || (payment.Name == "No Payment") || (payment.Name == "Purchase Order")) { integratedPayments.Add(payment); } } uxPaymentListGrid.DataSource = integratedPayments; } uxPaymentListGrid.DataBind(); uxButtonListGrid.DataSource = DataAccessContext.PaymentOptionRepository.GetButtonList( AdminUtilities.CurrentCulture, BoolFilter.ShowAll); uxButtonListGrid.DataBind(); }
private void PopulateControls() { if (!MainContext.IsPostBack) { RefreshGrid(); } if (uxGridProduct.Rows.Count > 0) { DeleteVisible(true); uxPagingControl.Visible = true; } else { DeleteVisible(false); uxPagingControl.Visible = false; } if (!IsAdminModifiable()) { uxAddButton.Visible = false; uxeBayListing.Visible = false; DeleteVisible(false); } uxSortButton.Visible = IsAdminViewable(_sortPage); if (!KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { uxeBayListing.Visible = false; } }
private void PopulateAddToGiftRegistryButton() { MembershipUser user = Membership.GetUser(); if (!StoreContext.CheckoutDetails.ContainsGiftRegistry() && user != null && DataAccessContext.Configurations.GetBoolValue("GiftRegistryModuleDisplay") && KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName) ) { if (Roles.GetRolesForUser(user.UserName)[0].ToLower() == "customers" && HasGiftRegistryByUser(user.UserName)) { uxAddToGiftRegistryImageButton.Visible = true; } else { uxAddToGiftRegistryImageButton.Visible = false; } } else { uxAddToGiftRegistryImageButton.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { if (!KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { ThubLogEnabledTR.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { RegisterJavaScript(); uxNewsMenu.Visible = DataAccessContext.Configurations.GetBoolValue("NewsModuleDisplay"); uxBlogMenu.Visible = DataAccessContext.Configurations.GetBoolValue("BlogEnabled"); uxAffiliateMenu.Visible = DataAccessContext.Configurations.GetBoolValue("AffiliateEnabled") && (KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)); uxSitemapMenu.Visible = DataAccessContext.Configurations.GetBoolValue("SiteMapEnabled"); uxWishListMenu.Visible = DataAccessContext.Configurations.GetBoolValue("WishListEnabled"); uxGiftCertificateMenu.Visible = DataAccessContext.Configurations.GetBoolValue("GiftCertificateEnabled"); uxRewardPointMenu.Visible = DataAccessContext.Configurations.GetBoolValue("PointSystemEnabled") && (KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)); uxComparisonMenu.Visible = DataAccessContext.Configurations.GetBoolValue("CompareListEnabled"); uxRmaMenu.Visible = DataAccessContext.Configurations.GetBoolValue("EnableRMA"); uxSubscription.Visible = KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName); uxAboutUsMenu.Visible = IsContentMenuEnable(GetLanguageText("AboutUs").Replace(" ", "")); uxFaqsMenu.Visible = IsContentMenuEnable(GetLanguageText("Faqs").Replace(" ", "")); uxPolicyMenu.Visible = IsContentMenuEnable(GetLanguageText("Policies").Replace(" ", "")); uxBlogShareLink.Visible = DataAccessContext.Configurations.GetBoolValue("BlogEnabled"); uxGoogleLink.NavigateUrl = "https://plus.google.com/share?url=" + UrlPath.StorefrontUrl; if (!String.IsNullOrEmpty(GetFanpageURL())) { uxFacebookLink.NavigateUrl = GetFanpageURL(); uxFacebookLink.Visible = true; } BlogCategory blogCategoryNews = DataAccessContext.BlogCategoryRepository.GetOne(StoreContext.Culture, _blogCategoryNewsID); uxNewsLink.NavigateUrl = UrlManager.GetBlogCategoryUrl(blogCategoryNews.UrlName); }
protected void Page_Load(object sender, EventArgs e) { if (!KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { MainContext.RedirectMainControl("Default.ascx", String.Empty); } }
protected void Page_Load(object sender, EventArgs e) { if (!KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { this.Visible = false; return; } if (AdminConfig.CurrentTestMode == AdminConfig.TestMode.Test) { uxEventDateCalendarPopup.SelectedDate = DateTime.Today.AddMonths(1); } if (IsEditMode()) { if (!IsPostBack) { ShowHideShippingResidential(); PopulateControls(); uxAddLinkButton.Visible = false; uxEditLinkButton.Visible = true; } } else { if (!IsPostBack) { PopulateUserAddress(); uxHideEventCheck.Checked = true; uxNotifyNewOrderCheck.Checked = true; } uxAddLinkButton.Visible = true; uxEditLinkButton.Visible = false; } }
private void PopulateControls() { uxTaxConfig.PopulateControls(); uxProductImageSizeConfig.PopulateControls(); uxDisplay.PopulateControls(); uxRatingReview.PopulateControls(); uxGiftCertificate.PopulateControls(); uxWholesale.PopulateControls(); uxEmailNotification.PopulateControls(); uxUploadConfig.PopulateControls(); uxSeo.PopulateControls(); uxSystemConfig.PopulateControls(); uxAffiliateConfig.PopulateControls(); uxShippingTracking.PopulateControls(); uxDownloadCount.PopulateControls(); /*-------- Original Code -------------*/ PopulateStoreConfig(); PopulateCustomTimeZone(); PopulateWebServiceConfig(); if (!KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { uxAffiliateTab.Visible = false; uxeBayConfigTab.Visible = false; uxWebServiceSettingLabel.Visible = false; uxWebServiceSettingTR.Visible = false; } }
private void PopulateControls() { if (!MainContext.IsPostBack) { RefreshGrid(); } if (uxGridCustomer.Rows.Count > 0) { DeleteVisible(true); uxPagingControl.Visible = true; } else { DeleteVisible(false); uxPagingControl.Visible = false; } if (!IsAdminModifiable()) { uxAddButton.Visible = false; DeleteVisible(false); } if (!KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { uxGridCustomer.Columns[7].Visible = false; uxGridCustomer.Columns[8].Visible = false; } }
private void PopulateControls() { PopulateLanguageSection(); if (ConvertUtilities.ToInt32(CurrentID) > 0) { Product product = DataAccessContext.ProductRepository.GetOne(uxLanguageControl.CurrentCulture, CurrentID, new StoreRetriever().GetCurrentStoreID()); uxProductAttributes.PopulateControls(product, "0"); uxGiftCertificate.PopulateControls(product); if (product.IsGiftCertificate) { uxGiftCertificate.PopulateGiftData((GiftCertificateProduct)product); uxGiftCertificate.SetGiftCertificateControlsVisibility(IsEditMode()); } uxRecurring.PopulateControls(product); if (KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { uxProductSubscription.PopulateControls(product); } uxProductAttributes.IsFixPrice( uxGiftCertificate.IsFixedPrice, uxGiftCertificate.IsGiftCertificate, uxRecurring.IsRecurring, uxProductAttributes.IsCallForPrice); uxProductKit.PopulateControls(product); } }
protected void Page_Load(object sender, EventArgs e) { uxPaymentHyperLink.NavigateUrl = PaymentAppGateway.GetPaymentAppUrl("/", UrlPath.StorefrontUrl); if (!WebConfiguration.AdminSSLDisabled && DataAccessContext.Configurations.GetBoolValue("EnableAdminSSL") == true) { SSLVerifyAndRediect(); } UpdateAdminAdvancedFolder(); uxScriptManager.Scripts.Add(new ScriptReference("~/ClientScripts/JQuery/jquery-1.8.1.min.js")); uxScriptManager.Scripts.Add(new ScriptReference("ClientScripts/jquery.simplemodal-1.3.3.min.js")); uxScriptManager.Scripts.Add(new ScriptReference("ClientScripts/jquery.simpletip-1.3.1.pack.js")); uxScriptManager.Scripts.Add(new ScriptReference("~/ClientScripts/JqueryUI/jquery-ui-1.9.1.custom.min.js")); uxScriptManager.Scripts.Add(new ScriptReference("ClientScripts/Report.js")); uxScriptManager.Scripts.Add(new ScriptReference("ClientScripts/OpenFlashChart/swfobject.js")); uxScriptManager.Scripts.Add(new ScriptReference("ClientScripts/AdvanceAdminScript.js")); uxScriptManager.Scripts.Add(new ScriptReference("ClientScripts/print.js")); uxScriptManager.Scripts.Add(new ScriptReference("~/Components/Upload/Script/handlers.js")); uxScriptManager.Scripts.Add(new ScriptReference("~/Components/Upload/Script/fileprogress.js")); uxScriptManager.Scripts.Add(new ScriptReference("~/Components/Upload/Script/swfupload.queue.js")); uxScriptManager.Scripts.Add(new ScriptReference("~/Components/Upload/swfupload/swfupload.js")); uxScriptManager.Scripts.Add(new ScriptReference("~/ClientScripts/controls.js")); LoadUserControl(); ConfigAjaxAsyncPostBackError(); if (KeyUtilities.IsTrialLicense()) { uxTrialWarningPlaceHolder.Visible = true; } else { uxTrialWarningPlaceHolder.Visible = false; } if (!MainContext.IsPostBack) { EBayOrderUpdater ebayOrderUpdater = new EBayOrderUpdater(); ebayOrderUpdater.CreateUpdateOrdersFromEBayOrder(); uxPaymentLink.Visible = DataAccessContext.Configurations.GetBoolValue("VevoPayPADSSMode"); uxUpgradeLink.Visible = !KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName); } }
private bool IsDisabledMenu(string MenuKey, string[] excludeMenus) { if (!KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { foreach (string key in excludeMenus) { if (MenuKey == key) { return(true); } } } return(false); }
private void PopulateControls() { if (!KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { uxPointSystemTab.Visible = false; } uxDisplay.PopulateControls(); uxStoreLayoutConfig.PopulateControls(); uxStoreProfileConfig.PopulateControls(); uxEmailSetup.PopulateControls(); uxFacebook.PopulateControls(); uxBlogConfig.PopulateControls(); uxPointSystemConfig.PopulateControls(); uxSeoConfig.PopulateControls(); }
protected void Page_Load(object sender, EventArgs e) { if (!KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { MainContext.RedirectMainControl("Default.ascx", String.Empty); } uxSearchFilter.BubbleEvent += new EventHandler(uxGrid_ResetPageHandler); uxPagingControl.BubbleEvent += new EventHandler(uxGrid_RefreshHandler); if (!MainContext.IsPostBack) { uxPagingControl.ItemsPerPages = AdminConfig.AffiliatePerPage; SetUpSearchFilter(); } }
protected void Page_Load(object sender, EventArgs e) { TiesTextBoxesWithButtons(); uxGiftCertificateTable.Visible = DataAccessContext.Configurations.GetBoolValue("GiftCertificateEnabled"); uxCouponDiv.Visible = DataAccessContext.Configurations.GetBoolValue("CouponEnabled"); if (DataAccessContext.Configurations.GetBoolValue("PointSystemEnabled", StoreContext.CurrentStore) && Membership.GetUser() != null && KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { StoreContext.CheckoutDetails.StoreID = StoreContext.CurrentStore.StoreID; uxRewardPointDiv.Visible = true; } else { uxRewardPointDiv.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { if (!KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { MainContext.RedirectMainControl("Default.ascx", String.Empty); } uxSearchFilter.BubbleEvent += new EventHandler(uxGrid_ResetPageHandler); uxPagingControl.BubbleEvent += new EventHandler(uxGrid_RefreshHandler); if (!MainContext.IsPostBack) { uxPagingControl.ItemsPerPages = AdminConfig.AffiliatePaymentPerPage; SetUpSearchFilter(); uxNoteLiteral.Text = uxNoteLiteral.Text + " " + StoreContext.Currency.FormatPrice( DataAccessContext.Configurations.GetDecimalValue("AffiliateDefaultPaidBalance")); } }
protected void Page_Load(object sender, EventArgs e) { if (!KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { MainContext.RedirectMainControl("Default.ascx", String.Empty); } if (IsAdminModifiable()) { uxSendButton.Visible = true; } else { uxSendButton.Visible = false; } if (!MainContext.IsPostBack) { SetEmailBody(); } }
protected void Page_PreRender(object sender, EventArgs e) { if (!KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { ucContentSubscriptionTR.Visible = false; } if (IsEditMode()) { if (!MainContext.IsPostBack) { PopulateControls(); } if (IsAdminModifiable()) { uxEditButton.Visible = true; } else { uxEditButton.Visible = false; } uxAddButton.Visible = false; } else { if (IsAdminModifiable()) { uxAddButton.Visible = true; uxEditButton.Visible = false; } else { MainContext.RedirectMainControl("ContentList.ascx", ""); } } }
private void PopulateControls() { if (Page.User.Identity.IsAuthenticated) { HtmlTableRow rmaDiv = (HtmlTableRow)uxLoginView.FindControl("uxRmaDiv"); HtmlTableRow rewardPointDiv = (HtmlTableRow)uxLoginView.FindControl("uxRewardPointDiv"); HtmlTableRow comparisionListDiv = (HtmlTableRow)uxLoginView.FindControl("uxComparisionListDiv"); HtmlTableRow giftCertificateDiv = (HtmlTableRow)uxLoginView.FindControl("uxGiftCertificateDiv"); HtmlTableRow giftRegistryDiv = (HtmlTableRow)uxLoginView.FindControl("uxGiftRegistryDiv"); HtmlTableRow wishlistDiv = (HtmlTableRow)uxLoginView.FindControl("uxWishlistDiv"); HtmlTableRow subscriptionDiv = (HtmlTableRow)uxLoginView.FindControl("uxSubscriptionDiv"); rmaDiv.Visible = DataAccessContext.Configurations.GetBoolValue("EnableRMA"); rewardPointDiv.Visible = DataAccessContext.Configurations.GetBoolValue("PointSystemEnabled", StoreContext.CurrentStore) && KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName); comparisionListDiv.Visible = DataAccessContext.Configurations.GetBoolValue("CompareListEnabled"); giftRegistryDiv.Visible = DataAccessContext.Configurations.GetBoolValue("GiftRegistryModuleDisplay") && KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName); giftCertificateDiv.Visible = DataAccessContext.Configurations.GetBoolValue("GiftCertificateEnabled"); wishlistDiv.Visible = true; subscriptionDiv.Visible = KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName); } }
protected void Page_Load(object sender, EventArgs e) { if (!KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { MainContext.RedirectMainControl("Default.ascx", String.Empty); } uxLanguageControl.BubbleEvent += new EventHandler(Details_RefreshHandler); if (!MainContext.IsPostBack) { PopulateControl(); } RegisterJavaScript(); if (!IsAdminModifiable()) { uxSortByNameButton.Visible = false; uxSortByIDButton.Visible = false; uxSaveButton.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { if ((!DataAccessContext.Configurations.GetBoolValue("ShippingAddressMode")) || (!StoreContext.CheckoutDetails.ShowShippingAddress)) { uxShippingForm.Visible = false; } else { PopulateShippingForm(); uxShippingForm.Visible = true; } CheckoutDetails details = StoreContext.CheckoutDetails; uxOrderCommentLabel.Text = WebUtilities.ReplaceNewLine(details.CustomerComments); if (string.IsNullOrEmpty(uxOrderCommentLabel.Text)) { uxOrderSummaryCommentTD.Visible = false; } if (details.RedeemPoint > 0 && details.RedeemPrice > 0) { uxPointEarnedTD.Visible = false; } else { uxPointEarnedTD.Visible = DataAccessContext.Configurations.GetBoolValue("PointSystemEnabled", StoreContext.CurrentStore) && KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName); uxPointEarnedValueLabel.Text = GetRewardPoint().ToString(); } }
protected void Page_PreRender(object sender, EventArgs e) { if (!KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { ucProductSubscriptionTR.Visible = false; } if (Action == "copy" && !MainContext.IsPostBack) { uxMessage.DisplayMessage(Resources.ProductMessages.CopySuccess); } if (!MainContext.IsPostBack) { uxProductAttributes.SetOptionList(); } if (IsEditMode()) { if (!MainContext.IsPostBack) { uxAddButton.Visible = false; PopulateControls(); if (CurrentID != null && int.Parse(CurrentID) >= 0) { Product product = DataAccessContext.ProductRepository.GetOne( uxLanguageControl.CurrentCulture, CurrentID, new StoreRetriever().GetCurrentStoreID()); uxProductAttributes.SelectOptionList(product); uxProductAttributes.PopulateStockOptionControl(); } } } else { if (!MainContext.IsPostBack) { uxEditButton.Visible = false; CopyVisible(false); PopulateControls(); uxProductAttributes.HideStockOption(); uxProductIDTR.Visible = false; uxProductAttributes.PopulateStockVisibility(); uxGiftCertificate.IsGiftCertificateEnabled(true); //Add code for Recurring. uxRecurring.HideRecurring(); } } uxProductAttributes.RestoreSessionData(); uxProductAttributes.SetWholesaleVisible(uxGiftCertificate.IsFixedPrice, uxGiftCertificate.IsGiftCertificate, uxRecurring.IsRecurring); uxProductAttributes.SetRetailPriceVisible(uxGiftCertificate.IsFixedPrice, uxGiftCertificate.IsGiftCertificate, uxRecurring.IsRecurring); uxProductAttributes.SetProductRatingVisible(uxGiftCertificate.IsGiftCertificate); uxGiftCertificate.SetGiftCertificateControlsVisibility(IsEditMode()); ProductSubscriptionCondition(); RecurringCondition(); ProductKitCondition(); GiftCertificateCondition(); ShowHideGiftCertifiateControl(); ShowHideQuantityDiscount(); ShowHideDownloadable(); ShowHideMinMaxQTY(); uxProductAttributes.SetFixedShippingCostVisibility(uxGiftCertificate.IsGiftCertificate); uxProductAttributes.SetVisibleSpecificationControls(); DisplayControlsByVersion(); EnforcePermission(); }
protected void Page_Load(object sender, EventArgs e) { if (DataAccessContext.Configurations.GetBoolValue("PointSystemEnabled", StoreContext.CurrentStore) && KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { uxRewardPointDiv.Visible = true; uxRewardPointDescriptionLabel.Text = GetRewardPointText(); } else { uxRewardPointDiv.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { uxNewsMenu.Visible = DataAccessContext.Configurations.GetBoolValue("NewsModuleDisplay"); uxBlogMenu.Visible = DataAccessContext.Configurations.GetBoolValue("BlogEnabled"); uxAffiliateMenu.Visible = DataAccessContext.Configurations.GetBoolValue("AffiliateEnabled") && (KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)); uxSitemapMenu.Visible = DataAccessContext.Configurations.GetBoolValue("SiteMapEnabled"); uxWishListMenu.Visible = DataAccessContext.Configurations.GetBoolValue("WishListEnabled"); uxGiftCertificateMenu.Visible = DataAccessContext.Configurations.GetBoolValue("GiftCertificateEnabled"); uxRewardPointMenu.Visible = DataAccessContext.Configurations.GetBoolValue("PointSystemEnabled") && (KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)); uxComparisonMenu.Visible = DataAccessContext.Configurations.GetBoolValue("CompareListEnabled"); uxRmaMenu.Visible = DataAccessContext.Configurations.GetBoolValue("EnableRMA"); uxAboutUsMenu.Visible = IsContentMenuEnable(GetLanguageText("AboutUs").Replace(" ", "")); uxFaqsMenu.Visible = IsContentMenuEnable(GetLanguageText("Faqs").Replace(" ", "")); uxPolicyMenu.Visible = IsContentMenuEnable(GetLanguageText("Policies").Replace(" ", "")); }
private bool IsGiftRegistryDisplay() { return(DataAccessContext.Configurations.GetBoolValue("GiftRegistryModuleDisplay") && KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)); }
public void PopulateControls() { uxSiteName.CultureID = LanguageID; uxSiteName.PopulateControl(); uxLogoImage.PopulateControls(); uxDefaultwebsiteLanguage.PopulateControls(); uxStoreDefaultCountryDropDown.CurrentSelected = DataAccessContext.Configurations.GetValue("StoreDefaultCountry", CurrentStore).ToString(); uxSearchModeDrop.SelectedValue = DataAccessContext.Configurations.GetValue("SearchMode", CurrentStore).ToString(); if (!KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { uxBundlePromotionShowTR.Visible = false; uxBundlePromotionShowText.Text = "0"; uxBundlePromotionShowText.Enabled = false; } else { uxBundlePromotionShowText.Text = DataAccessContext.Configurations.GetValue("BundlePromotionShow", CurrentStore).ToString(); } uxRandomNumberText.Text = DataAccessContext.Configurations.GetValue("RandomProductShow", CurrentStore); uxNumberBestSelling.Text = DataAccessContext.Configurations.GetValue("ProductBestSellingShow", CurrentStore); SetUpRootCategoryDropDown(); SetUpRootDepartmentDropDown(); uxCategoryMenuTypeDrop.SelectedValue = DataAccessContext.Configurations.GetValue("CategoryMenuType", CurrentStore).ToString(); uxDepartmentMenuTypeDrop.SelectedValue = DataAccessContext.Configurations.GetValue("DepartmentMenuType", CurrentStore).ToString(); uxCategoryMenuLevelText.Text = DataAccessContext.Configurations.GetValue("CategoryMenuLevel", CurrentStore); uxDepartmentMenuLevelText.Text = DataAccessContext.Configurations.GetValue("DepartmentMenuLevel", CurrentStore); uxCategoryDynamicDropDownDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetValue("CategoryDynamicDropDownDisplay", CurrentStore); uxDepartmentDynamicDropDownDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetValue("DepartmentDynamicDropDownDisplay", CurrentStore); uxManufacturerDynamicDropDownDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetValue("ManufacturerDynamicDropDownDisplay", CurrentStore); uxCategoryDynamicDropDownLevelText.Text = DataAccessContext.Configurations.GetValue("CategoryDynamicDropDownLevel", CurrentStore); uxDepartmentDynamicDropDownLevelText.Text = DataAccessContext.Configurations.GetValue("DepartmentDynamicDropDownLevel", CurrentStore); uxCategoryShowProductListDrop.SelectedValue = DataAccessContext.Configurations.GetValue("CategoryShowProductList", CurrentStore).ToString(); uxDepartmentShowProductListDrop.SelectedValue = DataAccessContext.Configurations.GetValue("DepartmentShowProductList", CurrentStore).ToString(); uxThemeSelect.PopulateControls(CurrentStore); uxMobileThemeSelect.PopulateControls(CurrentStore); uxCategorySelect.PopulateControls(CurrentStore); uxDepartmentSelect.PopulateControls(CurrentStore); uxProductListSelect.PopulateControls(CurrentStore); uxProductDetailsSelect.PopulateControls(CurrentStore); //uxDefaultMobileThemeSelect.PopulateControls( CurrentStore ); uxNumberOfProduct.Text = DataAccessContext.Configurations.GetValue("ProductItemsPerPage", CurrentStore); uxNumberOfCategory.Text = DataAccessContext.Configurations.GetValue("CategoryItemsPerPage", CurrentStore); uxNumberOfDepartment.Text = DataAccessContext.Configurations.GetValue("DepartmentItemsPerPage", CurrentStore); if (!KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { uxBundlePromotionDisplayTR.Visible = false; uxBundlePromotionDisplayText.Text = "0"; uxBundlePromotionDisplayText.Enabled = false; } else { uxBundlePromotionDisplayText.Text = DataAccessContext.Configurations.GetValue("BundlePromotionDisplay", CurrentStore); } uxNumberOfProductColumnText.Text = DataAccessContext.Configurations.GetValue("NumberOfProductColumn", CurrentStore); uxNumberOfCategoryColumnText.Text = DataAccessContext.Configurations.GetValue("NumberOfCategoryColumn", CurrentStore); uxNumberOfDepartmentColumnText.Text = DataAccessContext.Configurations.GetValue("NumberOfDepartmentColumn", CurrentStore); if (!KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { uxBundlePromotionColumnTR.Visible = false; uxBundlePromotionColumnText.Text = "0"; uxBundlePromotionColumnText.Enabled = false; } else { uxBundlePromotionColumnText.Text = DataAccessContext.Configurations.GetValue("BundlePromotionColumn", CurrentStore); } uxNumberRecentlyViewed.Text = DataAccessContext.Configurations.GetValue("RecentlyViewedProductShow", CurrentStore); uxNumberCompareProduct.Text = DataAccessContext.Configurations.GetValue("CompareProductShow", CurrentStore); uxTopCategoryMenuColumnText.Text = DataAccessContext.Configurations.GetValue("NumberOfSubCategoryMenuColumn", CurrentStore); uxTopCategoryMenuItemText.Text = DataAccessContext.Configurations.GetValue("NumberOfSubCategoryMenuItem", CurrentStore); uxNumberOfManufacturer.Text = DataAccessContext.Configurations.GetValue("ManufacturerItemsPerPage", CurrentStore); uxRestrictAccessToShopDrop.SelectedValue = DataAccessContext.Configurations.GetValue("RestrictAccessToShop", CurrentStore); uxPriceRequireLoginDrop.SelectedValue = DataAccessContext.Configurations.GetValue("PriceRequireLogin", CurrentStore); uxRmaDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("EnableRMA", CurrentStore).ToString(); uxSSLDrop.SelectedValue = DataAccessContext.Configurations.GetValue("EnableSSL", CurrentStore); uxAddToCartDrop.SelectedValue = DataAccessContext.Configurations.GetValue("EnableAddToCartNotification", CurrentStore); uxQuickViewDrop.SelectedValue = DataAccessContext.Configurations.GetValue("EnableQuickView", CurrentStore); uxSaleTaxExemptDrop.SelectedValue = DataAccessContext.Configurations.GetValue("SaleTaxExempt", CurrentStore); uxMobileViewDrop.SelectedValue = DataAccessContext.Configurations.GetValue("MobileView", CurrentStore); uxManufacturerMenuTypeDrop.SelectedValue = DataAccessContext.Configurations.GetValue("ManufacturerMenuType", CurrentStore); uxAdvancedSearchModeDrop.SelectedValue = DataAccessContext.Configurations.GetValue("AdvancedSearchMode", CurrentStore); uxReviewPerCultureDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("EnableReviewPerCulture", CurrentStore).ToString(); uxCheckoutModeDrop.SelectedValue = DataAccessContext.Configurations.GetValue("CheckoutMode", CurrentStore); if (!KeyUtilities.IsMultistoreLicense()) { uxRootCategorySettingPanel.Visible = false; uxRootDepartmentSettiongPanel.Visible = false; } uxWidgetAddThisConfig.PopulateControls(CurrentStore); uxWidgetLivePersonConfig.PopulateControls(CurrentStore); uxGoogleAnalyticsConfig.PopulateControls(CurrentStore); }
protected void Page_Load(object sender, EventArgs e) { string applicationPath = HttpContext.Current.Request.ApplicationPath; string localPath = HttpContext.Current.Request.Url.LocalPath; string uri = HttpContext.Current.Request.Url.AbsoluteUri; int storefrontPath = uri.Length - (localPath.Length - applicationPath.Length); uxPromotionLink.NavigateUrl = "~/" + Vevo.UrlManager.MobileFolder + "/Promotion.aspx"; liPromotionLink.Visible = Vevo.Domain.DataAccessContext.Configurations.GetBoolValue("EnableBundlePromo", Vevo.WebUI.StoreContext.CurrentStore) && KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName); }
private void PopulateControls() { uxGiftRegistryDiv.Visible = DataAccessContext.Configurations.GetBoolValue("GiftRegistryModuleDisplay") && KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName); uxGiftCertificateDiv.Visible = DataAccessContext.Configurations.GetBoolValue("GiftCertificateEnabled"); uxRmaDiv.Visible = DataAccessContext.Configurations.GetBoolValue("EnableRMA"); uxRewardPointLink.Visible = DataAccessContext.Configurations.GetBoolValue("PointSystemEnabled", StoreContext.CurrentStore) && KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName); uxGiftPanel.Visible = IsGiftVisibility();; uxWishlistPanel.Visible = true; }
private void PopulateControls() { uxSearchTitle.Text = "Configuration result from keyword : " + CurrentSearch; uxPlaceHolder.Controls.Clear(); IList <Configuration> list = DataAccessContext.ConfigurationRepository.SearchConfiguration( AdminConfig.CurrentCulture, "Configuration.ConfigID", CurrentSearch, StringUtilities.SplitString(ConfigurationDescription.ConfigurationSearchBy, ',')); if (list.Count > 0) { int countConfig = 0; foreach (Configuration item in list) { if (IsExcludeConfigInFree(item.Name) && !KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { continue; } if ((!Store.CanUseMultiStoreConfig(item.Name) && CurrentStore.Equals("0")) || (Store.CanUseMultiStoreConfig(item.Name) && !CurrentStore.Equals("0"))) { if (ConfigurationControlBuilder.IsSpecialType(item.Name)) { Panel panel = CreateNewConfigPanel(item); AdminAdvanced_Components_Common_HelpIcon helpIcon = LoadControl("../Components/Common/HelpIcon.ascx") as AdminAdvanced_Components_Common_HelpIcon; helpIcon.ID = item.Name + "Help"; helpIcon.ConfigName = item.Name; panel.Controls.Add(helpIcon); panel.Controls.Add(ConfigurationControlBuilder.CreateLabel( item.Descriptions[0].DisplayName, "Label")); panel.Controls.Add(ConfigurationControlBuilder.GetControl(item, CurrentStore)); uxPlaceHolder.Controls.Add(panel); } else if (item.ConfigType == Configuration.ConfigurationType.UserControl) { Panel panel = CreateNewConfigPanel(item); UserControl control = (UserControl)LoadControl("../" + item.DisplayUserControl); control.ID = item.Name; //"WidgetAddThisIsEnabled","WidgetLivePersonIsEnabled" //This control need to set some property before populate control if (ConfigurationControlBuilder.IsSpecialUserControl(item.Name)) { Admin_Components_SiteConfig_WidgetDetails widgetDetailsControl = (Admin_Components_SiteConfig_WidgetDetails)control; string name = String.Empty; if (item.Name.Contains("AddThis")) { widgetDetailsControl.ParameterName = "AddThis Username"; widgetDetailsControl.WidgetStyle = "AddThis"; } else if (item.Name.Contains("LivePerson")) { widgetDetailsControl.ParameterName = "LivePerson Account"; widgetDetailsControl.WidgetStyle = "LivePerson"; } else if (item.Name.Contains("LikeBox")) { widgetDetailsControl.ParameterName = "Fanpage URL"; widgetDetailsControl.WidgetStyle = "LikeBox"; } } panel.Controls.Add(control); uxPlaceHolder.Controls.Add(panel); // Need to add dynamic controls after adding parent controls to place holder. // Otherwise, the dynamic controls' ClientID may not be correct // (e.g. Parent_uxDynmaic instead of uxFront_uxDiv_Parent_uxDynamic). // If this happens, view state for the dynamic control will not be restored correctly. ((IConfigUserControl)control).Populate(item); } else { // Normal configurations (non-special, non-user-control) AddNormalConfigPanel(uxPlaceHolder, item); } countConfig++; } } if (countConfig == 0) { uxUpdateButton.Visible = false; } } else { uxUpdateButton.Visible = false; } }
public void PopulateControls() { PopulateCouponDisPlay(); PopulateCurrencyDropdown(); PopulateBannerEffectDropdown(); uxStoreBannerModuleDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("StoreBannerModuleDisplay", CurrentStore).ToString(); uxStoreBannerEffectModeDrop.SelectedValue = DataAccessContext.Configurations.GetValue("StoreBannerEffectMode", CurrentStore); uxStoreBannerSlideSpeedText.Text = DataAccessContext.Configurations.GetValue("StoreBannerSlideSpeed", CurrentStore); uxStoreBannerEffectPeriodText.Text = DataAccessContext.Configurations.GetValue("StoreBannerEffectPeriod", CurrentStore); SetupStoreBannerModuleDisplayDrop(); SetupStoreBannerEffectModeDrop(); uxCategoryListModuleDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("CategoryListModuleDisplay", CurrentStore).ToString(); uxDepartmentListModuleDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("DepartmentListModuleDisplay", CurrentStore).ToString(); uxDepartmentHeaderMenuDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("DepartmentHeaderMenuDisplay", CurrentStore).ToString(); uxEnableManufacturerDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("EnableManufacturer", CurrentStore).ToString(); uxManufacturerHeaderMenuDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("ManufacturerHeaderMenuDisplay", CurrentStore).ToString(); uxHeaderMenuStyleDrop.SelectedValue = DataAccessContext.Configurations.GetValue("HeaderMenuStyle", CurrentStore).ToString(); uxTodaySpecialModuleDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("TodaySpecialModuleDisplay", CurrentStore).ToString(); uxTodaySpecialModuleEffectDrop.SelectedValue = DataAccessContext.Configurations.GetValue("ProductSpecialEffectMode", CurrentStore); uxTodaySpecialModuleSpeedText.Text = DataAccessContext.Configurations.GetValue("ProductSpecialTransitionSpeed", CurrentStore); uxTodaySpecialModuleWaitText.Text = DataAccessContext.Configurations.GetValue("ProductSpecialEffectWaitTime", CurrentStore); uxCurrencyModuleDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("CurrencyModuleDisplay", CurrentStore).ToString(); uxNewsletterModuleDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("NewsletterModuleDisplay", CurrentStore).ToString(); uxSpecialOfferModuleDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("SpecialOfferModuleDisplay", CurrentStore).ToString(); uxSpecialOfferImageText.Text = DataAccessContext.Configurations.GetValue("SpecialOfferImage", CurrentStore); uxPaymentLogoModuleDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("PaymentLogoModuleDisplay", CurrentStore).ToString(); uxPaymentLogoImageText.Text = DataAccessContext.Configurations.GetValue("PaymentLogoImage", CurrentStore); uxSearchModuleDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("SearchModuleDisplay", CurrentStore).ToString(); uxDisplayCategoryInQuickSearchDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("DisplayCategoryInQuickSearch", CurrentStore).ToString(); uxMiniCartModuleDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("MiniCartModuleDisplay", CurrentStore).ToString(); if (!KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { uxGiftRegistryTR.Visible = false; uxGiftRegistryDisplayDrop.SelectedValue = "False"; uxGiftRegistryDisplayDrop.Enabled = false; } if (!MainContext.IsPostBack) { uxGiftRegistryDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetValue("GiftRegistryModuleDisplay", CurrentStore).ToString(); } uxFeaturedMerchantModuleDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("FeaturedMerchantModuleDisplay", CurrentStore).ToString(); uxFeaturedMerchantCountDrop.SelectedValue = DataAccessContext.Configurations.GetValue("FeaturedMerchantCount", CurrentStore); uxFeaturedMerchantImage1Text.Text = DataAccessContext.Configurations.GetValue("FeaturedMerchantImage1", CurrentStore); uxFeaturedMerchantImage2Text.Text = DataAccessContext.Configurations.GetValue("FeaturedMerchantImage2", CurrentStore); uxFeaturedMerchantImage3Text.Text = DataAccessContext.Configurations.GetValue("FeaturedMerchantImage3", CurrentStore); uxFeaturedMerchantUrl1Text.Text = DataAccessContext.Configurations.GetValue("FeaturedMerchantUrl1", CurrentStore); uxFeaturedMerchantUrl2Text.Text = DataAccessContext.Configurations.GetValue("FeaturedMerchantUrl2", CurrentStore); uxFeaturedMerchantUrl3Text.Text = DataAccessContext.Configurations.GetValue("FeaturedMerchantUrl3", CurrentStore); uxFreeShippingModuleDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("FreeShippingModuleDisplay", CurrentStore).ToString(); uxFreeShippingImageText.Text = DataAccessContext.Configurations.GetValue("FreeShippingImage", CurrentStore); uxSecureModuleDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("SecureModuleDisplay", CurrentStore).ToString(); uxSecureImageText.Text = DataAccessContext.Configurations.GetValue("SecureImage", CurrentStore); if (!KeyUtilities.IsDeluxeLicense(DataAccessHelper.DomainRegistrationkey, DataAccessHelper.DomainName)) { uxBundlePromotionDisplayTR.Visible = false; uxBundlePromotionDisplayDrop.SelectedValue = "False"; uxBundlePromotionDisplayDrop.Enabled = false; } else { uxBundlePromotionDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("EnableBundlePromo", CurrentStore).ToString(); } uxBestsellersModuleDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("BestsellersModuleDisplay", CurrentStore).ToString(); uxFeaturedProductModuleDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("FeaturedProductModuleDisplay", CurrentStore).ToString(); uxNewsModuleDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("NewsModuleDisplay", CurrentStore).ToString(); uxWishListDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetValue("WishListEnabled", CurrentStore); uxTellAFriendDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetValue("TellAFriendEnabled", CurrentStore); SetUpTodaySpecialModuleDisplayDrop(); uxRecentlyViewedProductDrop.SelectedValue = DataAccessContext.Configurations.GetValue("RecentlyViewedProductDisplay", CurrentStore); uxCompareListDisplayDrop.SelectedValue = DataAccessContext.Configurations.GetValue("CompareListEnabled", CurrentStore); uxFacetedSearchEnabledDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("FacetedSearchEnabled", CurrentStore).ToString(); uxPriceNavigationStepTextbox.Text = DataAccessContext.Configurations.GetValue("PriceNavigationStep", CurrentStore); uxMaximunIntervalTextbox.Text = DataAccessContext.Configurations.GetValue("MaximunInterval", CurrentStore); uxEnableNewArrivalProductDrop.SelectedValue = DataAccessContext.Configurations.GetBoolValue("EnableNewArrivalProduct", CurrentStore).ToString(); uxProductNewArrivalNumberText.Text = DataAccessContext.Configurations.GetValue("ProductNewArrivalNumber", CurrentStore); uxMaximumDisplayProductNewArrivalText.Text = DataAccessContext.Configurations.GetValue("MaximumDisplayProductNewArrival", CurrentStore); SetupEnableNewArrivalProductDrop(); }