/// <summary> /// Set the initial value /// </summary> private void InitializePageContent() { string locale = Localization.GetDefaultLocale(); // for multilocale if(ddlLocale.SelectedValue != null) { locale = ddlLocale.SelectedValue; } AspDotNetStorefrontCore.AppConfig allowLocalPickup = AppLogic.GetAppConfigRouted("RTShipping.AllowLocalPickup"); if(allowLocalPickup != null) imgAllowLocalPickup.ToolTip = allowLocalPickup.Description; AspDotNetStorefrontCore.AppConfig localPickupCost = AppLogic.GetAppConfigRouted("RTShipping.LocalPickupCost"); if(localPickupCost != null) imgRTShippingLocalPickupHandlingFee.ToolTip = localPickupCost.Description; AspDotNetStorefrontCore.AppConfig localPickupRestrictionType = AppLogic.GetAppConfigRouted("RTShipping.LocalPickupRestrictionType"); if(localPickupRestrictionType != null) imgRestrictionType.ToolTip = localPickupRestrictionType.Description; AspDotNetStorefrontCore.AppConfig localPickupRestrictionStates = AppLogic.GetAppConfigRouted("RTShipping.LocalPickupRestrictionStates"); if(localPickupRestrictionStates != null) imgRestrictionAllowedStates.ToolTip = localPickupRestrictionStates.Description; AspDotNetStorefrontCore.AppConfig localPickupRestrictionZips = AppLogic.GetAppConfigRouted("RTShipping.LocalPickupRestrictionZips"); if(localPickupRestrictionZips != null) imgRestrictionAllowedZips.ToolTip = localPickupRestrictionZips.Description; AspDotNetStorefrontCore.AppConfig localPickupRestrictionZones = AppLogic.GetAppConfigRouted("RTShipping.LocalPickupRestrictionZones"); if(localPickupRestrictionZones != null) imgRestrictionAllowedZones.ToolTip = localPickupRestrictionZones.Description; //Set initial value, this is from stringresource lblrtshippinglocalpickupbreadcrumb.Text = AppLogic.GetString("RTShipping.LocalPickup.Breadcrumb", SkinID, locale); lblAllowLocalPickup.Text = AppLogic.GetString("RTShipping.CheckBox.AllowLocalPickup", SkinID, locale); lblrestrictiontype.Text = AppLogic.GetString("RTShipping.LocalPickup.RestrictionTypeLabel", SkinID, locale); liUnrestricted.Text = AppLogic.GetString("RTShipping.LocalPickup.RestrictionType.Unrestricted", SkinID, locale); liState.Text = AppLogic.GetString("RTShipping.LocalPickup.RestrictionType.State", SkinID, locale); liZip.Text = AppLogic.GetString("RTShipping.LocalPickup.RestrictionType.Zip", SkinID, locale); liZone.Text = AppLogic.GetString("RTShipping.LocalPickup.RestrictionType.Zone", SkinID, locale); lblRTShippingLocalPickupHandlingFee.Text = AppLogic.GetString("RTShipping.LocalPickup.HandlingFeeLabel", SkinID, locale); txtRTShippingLocalPickupHandlingFee.Text = AppLogic.AppConfig("RTShipping.LocalPickupCost"); btnUpdate.Text = AppLogic.GetString("admin.common.save", SkinID, locale); btnUpdateTop.Text = AppLogic.GetString("admin.common.save", SkinID, locale); lblTitle.Text = AppLogic.GetString("RTShipping.LocalPickup.TitleMessage", SkinID, locale); lblRestrictionsTitle.Text = AppLogic.GetString("RTShipping.LocalPickup.RestrictionsMessage", SkinID, locale); lblRestrictionAllowedZones.Text = AppLogic.GetString("RTShipping.LocalPickup.Restriction.Zones", SkinID, LocaleSetting); lblRestrictionAllowedZips.Text = AppLogic.GetString("RTShipping.LocalPickup.Restriction.Zips", SkinID, LocaleSetting); lblRestrictionAllowedStates.Text = AppLogic.GetString("RTShipping.LocalPickup.Restriction.States", SkinID, LocaleSetting); InitializeSelectedValue(); }