public override void Uninstall()
        {
            _settingService.DeleteSetting <NewProductsSettings>();

            _localizationService.DeletePluginLocaleResource("Plugins.Misc.NewProducts.Fields.NumberOfDaysAsNew");
            _localizationService.DeletePluginLocaleResource("Plugins.Misc.NewProducts.Fields.NumberOfDaysAsNew.Hint");

            _localizationService.DeletePluginLocaleResource("Plugins.Misc.NewProducts.Fields.Disable");
            _localizationService.DeletePluginLocaleResource("Plugins.Misc.NewProducts.Fields.Disable.Hint");

            base.Uninstall();
        }
Example #2
0
        /// <summary>
        /// Uninstall the plugin
        /// </summary>
        public override void Uninstall()
        {
            //settings
            _settingService.DeleteSetting <ConsignacionBancariaPaymentSettings>();

            //locales
            _localizationService.DeletePluginLocaleResource("Plugins.Payment.ConsignacionBancaria.DescriptionText");
            _localizationService.DeletePluginLocaleResource("Plugins.Payment.ConsignacionBancaria.DescriptionText.Hint");
            _localizationService.DeletePluginLocaleResource("Plugins.Payment.ConsignacionBancaria.PaymentMethodDescription");

            base.Uninstall();
        }
        /// <summary>
        /// Uninstall the plugin
        /// </summary>
        public override void Uninstall()
        {
            //settings
            _settingService.DeleteSetting <MOLPayPaymentSettings>();

            //locales
            this.DeletePluginLocaleResource("Plugins.Payments.MOLPay.Fields.MerchantId");
            this.DeletePluginLocaleResource("Plugins.Payments.MOLPay.Fields.MerchantId.Hint");

            this.DeletePluginLocaleResource("Plugins.Payments.MOLPay.Fields.Vkey");
            this.DeletePluginLocaleResource("Plugins.Payments.MOLPay.Fields.Vkey.Hint");

            this.DeletePluginLocaleResource("Plugins.Payments.MOLPay.Fields.UseSandbox");
            this.DeletePluginLocaleResource("Plugins.Payments.MOLPay.Fields.UseSandbox.Hint");

            this.DeletePluginLocaleResource("Plugins.Payments.MOLPay.Fields.Skey");
            this.DeletePluginLocaleResource("Plugins.Payments.MOLPay.Fields.Skey.Hint");

            this.DeletePluginLocaleResource("Plugins.Payments.MOLPay.Fields.CapturedMode");
            this.DeletePluginLocaleResource("Plugins.Payments.MOLPay.Fields.CapturedMode.Hint");

            this.DeletePluginLocaleResource("Plugins.Payments.MOLPay.Fields.PendingMode");
            this.DeletePluginLocaleResource("Plugins.Payments.MOLPay.Fields.PendingMode.Hint");

            this.DeletePluginLocaleResource("Plugins.Payments.MOLPay.Fields.FailedMode");
            this.DeletePluginLocaleResource("Plugins.Payments.MOLPay.Fields.FailedMode.Hint");

            this.DeletePluginLocaleResource("Enum.Grand.Core.Domain.Payments.PaymentStatus.Pending");
            this.DeletePluginLocaleResource("Enum.Grand.Core.Domain.Payments.PaymentStatus.Authorized");
            this.DeletePluginLocaleResource("Enum.Grand.Core.Domain.Payments.PaymentStatus.Paid");
            this.DeletePluginLocaleResource("Enum.Grand.Core.Domain.Payments.PaymentStatus.PartiallyRefunded");
            this.DeletePluginLocaleResource("Enum.Grand.Core.Domain.Payments.PaymentStatus.Refunded");
            this.DeletePluginLocaleResource("Enum.Grand.Core.Domain.Payments.PaymentStatus.Voided");

            //this.DeletePluginLocaleResource("Plugins.Payments.MOLPay.Fields.PaymentStatusId");

            this.DeletePluginLocaleResource("Plugins.Payments.MOLPay.Fields.AdditionalFee");
            this.DeletePluginLocaleResource("Plugins.Payments.MOLPay.Fields.AdditionalFee.Hint");

            this.DeletePluginLocaleResource("Plugins.Payments.MOLPay.Fields.AdditionalFeePercentage");
            this.DeletePluginLocaleResource("Plugins.Payments.MOLPay.Fields.AdditionalFeePercentage.Hint");

            this.DeletePluginLocaleResource("Plugins.Payments.MOLPay.Fields.PassProductNamesAndTotals");
            this.DeletePluginLocaleResource("Plugins.Payments.MOLPay.Fields.PassProductNamesAndTotals.Hint");

            this.DeletePluginLocaleResource("Plugins.Payments.MOLPay.Fields.RedirectionTip");

            this.DeletePluginLocaleResource("Plugins.Payments.MOLPay.Instructions");
            this.DeletePluginLocaleResource("Plugins.Payments.MOLPay.PaymentMethodDescription");
            this.DeletePluginLocaleResource("Plugins.Payments.MOLPay.RoundingWarning");

            base.Uninstall();
        }
        /// <summary>
        /// 卸载插件
        /// </summary>
        public override void Uninstall()
        {
            // settings
            _settingService.DeleteSetting <QQExternalAuthSettings>();

            this.DeletePluginLocaleResource("Plugins.ExternalAuth.QQ.Login");
            this.DeletePluginLocaleResource("Plugins.ExternalAuth.QQ.AppId");
            this.DeletePluginLocaleResource("Plugins.ExternalAuth.QQ.AppSecret");
            this.DeletePluginLocaleResource("Plugins.FriendlyName.ExternalAuth.QQ");

            base.Uninstall();
        }
        /// <summary>
        /// Uninstall plugin
        /// </summary>
        public override void Uninstall()
        {
            //settings
            _settingService.DeleteSetting <CustomCSSSettings>();

            //locales
            _localizationService.DeletePluginLocaleResource("Plugins.Widgets.CustomCSS.CSS");
            _localizationService.DeletePluginLocaleResource("Plugins.Widgets.CustomCSS.CSS.Hint");


            base.Uninstall();
        }
Example #6
0
        /// <summary>
        /// Uninstall plugin
        /// </summary>
        public override void Uninstall()
        {
            _settingService.DeleteSetting <HomePageNewProductsPluginSettings>();

            this.DeletePluginLocaleResource("Plugins.Widgets.HomePageNewProductsPlugin.WidgetZone");
            this.DeletePluginLocaleResource("Plugins.Widgets.HomePageNewProductsPlugin.WidgetZone.Hint");
            this.DeletePluginLocaleResource("Plugins.Widgets.HomePageNewProductsPlugin.NumberOfProductsToDisplay");
            this.DeletePluginLocaleResource("Plugins.Widgets.HomePageNewProductsPlugin.NumberOfProductsToDisplay.Hint");
            this.DeletePluginLocaleResource("Plugins.Widgets.HomePageNewProductsPlugin.LatestProducts");

            base.Uninstall();
        }
Example #7
0
        /// <summary>
        /// Uninstall plugin
        /// </summary>
        public override void Uninstall()
        {
            //settings
            _settingService.DeleteSetting <UPSSettings>();

            //locales
            _localizationService.DeletePluginLocaleResource("Enums.QNet.Plugin.Shipping.UPS.PackingType.PackByDimensions");
            _localizationService.DeletePluginLocaleResource("Enums.QNet.Plugin.Shipping.UPS.PackingType.PackByOneItemPerPackage");
            _localizationService.DeletePluginLocaleResource("Enums.QNet.Plugin.Shipping.UPS.PackingType.PackByVolume");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.AccessKey");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.AccessKey.Hint");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.AccountNumber");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.AccountNumber.Hint");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.AdditionalHandlingCharge");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.AdditionalHandlingCharge.Hint");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.AvailableCarrierServices");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.AvailableCarrierServices.Hint");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.CustomerClassification");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.CustomerClassification.Hint");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.InsurePackage");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.InsurePackage.Hint");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.PackagingType");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.PackagingType.Hint");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.PackingPackageVolume");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.PackingPackageVolume.Hint");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.PackingType");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.PackingType.Hint");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.PassDimensions");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.PassDimensions.Hint");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.Password");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.Password.Hint");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.PickupType");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.PickupType.Hint");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.SaturdayDeliveryEnabled");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.SaturdayDeliveryEnabled.Hint");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.Tracing");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.Tracing.Hint");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.Username");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.Username.Hint");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.UseSandbox");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Fields.UseSandbox.Hint");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Tracker.Arrived");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Tracker.Booked");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Tracker.Delivered");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Tracker.Departed");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Tracker.ExportScanned");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Tracker.NotDelivered");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Tracker.OriginScanned");
            _localizationService.DeletePluginLocaleResource("Plugins.Shipping.UPS.Tracker.Pickup");

            base.Uninstall();
        }
        /// <summary>
        /// Uninstall plugin
        /// </summary>
        public override void Uninstall()
        {
            //settings
            _settingService.DeleteSetting <ClearCustomerListSettings>();
            //locales
            _localizationService.DeletePluginLocaleResource("Admin.ClearCustomerList.DeleteSelectedCustomers");
            _localizationService.DeletePluginLocaleResource("Admin.ClearCustomerList.DeleteAdministrator");


            CreateMessage(false);

            base.Uninstall();
        }
        public override void Uninstall()
        {
            //settings
            _settingService.DeleteSetting <PayInStorePaymentSettings>();

            //locales
            this.DeletePluginLocaleResource("Plugins.Payment.PayInStore.DescriptionText");
            this.DeletePluginLocaleResource("Plugins.Payment.PayInStore.DescriptionText.Hint");
            this.DeletePluginLocaleResource("Plugins.Payment.PayInStore.AdditionalFee");
            this.DeletePluginLocaleResource("Plugins.Payment.PayInStore.AdditionalFee.Hint");

            base.Uninstall();
        }
Example #10
0
        public override void Uninstall()
        {
            //settings
            _settingService.DeleteSetting <ManualPaymentSettings>();

            //locales
            this.DeletePluginLocaleResource("Plugins.Payments.Manual.Fields.AdditionalFee");
            this.DeletePluginLocaleResource("Plugins.Payments.Manual.Fields.AdditionalFee.Hint");
            this.DeletePluginLocaleResource("Plugins.Payments.Manual.Fields.TransactMode");
            this.DeletePluginLocaleResource("Plugins.Payments.Manual.Fields.TransactMode.Hint");

            base.Uninstall();
        }
        /// <summary>
        /// Uninstall plugin
        /// </summary>
        public override void Uninstall()
        {
            //settings
            _settingService.DeleteSetting <HomePageNewProductsSettings>();

            //locales

            this.DeletePluginLocaleResource("Plugins.Widgets.HomePageNewProducts.NumberOfProducts");
            this.DeletePluginLocaleResource("Plugins.Widgets.HomePageNewProducts.NumberOfProducts.Hint");


            base.Uninstall();
        }
        public ActionResult Configure(ConfigurationModel model)
        {
            if (!ModelState.IsValid)
            {
                return(Configure());
            }

            //load settings for a chosen store scope
            var storeScope = this.GetActiveStoreScopeConfiguration(_storeService, _workContext);
            var settings   = _settingService.LoadSetting <ExtendedVendorSettings>(storeScope);

            //save settings
            settings.DefaultShippingCharge       = model.DefaultShippingCharge;
            settings.DefaultCommissionPercentage = model.DefaultCommissionPercentage;


            if (model.DefaultCommissionPercentage_OverrideForStore || storeScope == 0)
            {
                _settingService.SaveSetting(settings, x => x.DefaultCommissionPercentage, storeScope, false);
            }
            else if (storeScope > 0)
            {
                _settingService.DeleteSetting(settings, x => x.DefaultCommissionPercentage, storeScope);
            }

            if (model.DefaultShippingCharge_OverrideForStore || storeScope == 0)
            {
                _settingService.SaveSetting(settings, x => x.DefaultShippingCharge, storeScope, false);
            }
            else if (storeScope > 0)
            {
                _settingService.DeleteSetting(settings, x => x.DefaultShippingCharge, storeScope);
            }

            //now clear settings cache
            _settingService.ClearCache();

            return(Configure());
        }
        /// <summary>
        /// Uninstall the plugin
        /// </summary>
        public override void Uninstall()
        {
            _settingService.DeleteSetting <ShippingByTotalSettings>();

            _localizationService.DeleteLocaleStringResources(this.PluginDescriptor.ResourceRootKey);
            _localizationService.DeleteLocaleStringResources("Plugins.FriendlyName.Shipping.ByTotal", false);

            var migrator = new DbMigrator(new Configuration());

            migrator.Update(DbMigrator.InitialDatabase);

            base.Uninstall();
        }
        /// <summary>
        /// Uninstall plugin
        /// </summary>
        public override void Uninstall()
        {
            //settings
            _settingService.DeleteSetting <FilePluginSettings>();

            this.DeletePluginLocaleResource("Plugins.ProductFiles.Blockheading");
            this.DeletePluginLocaleResource("Plugins.ProductFiles.Tabheadingr");

            //Uninstall, rename the database tables
            _productFileObjectContext.Uninstall();

            base.Uninstall();
        }
        /// <summary>
        /// Uninstall plugin
        /// </summary>
        public override void Uninstall()
        {
            //settings
            _settingService.DeleteSetting <FroogleSettings>();

            //data
            _objectContext.Uninstall();

            //locales
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.ClickHere");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.Currency");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.Currency.Hint");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.DefaultGoogleCategory");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.DefaultGoogleCategory.Hint");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.FtpHostname");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.FtpHostname.Hint");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.FtpFilename");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.FtpFilename.Hint");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.FtpUsername");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.FtpUsername.Hint");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.FtpPassword");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.FtpPassword.Hint");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.FtpUploadStatus");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.General");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.Generate");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.Override");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.ProductPictureSize");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.ProductPictureSize.Hint");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.Products.ProductName");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.Products.GoogleCategory");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.SuccessResult");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.Upload");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.TaskEnabled");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.TaskEnabled.Hint");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.GenerateStaticFileEachMinutes");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.GenerateStaticFileEachMinutes.Hint");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.TaskRestart");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.StaticFilePath");
            this.DeletePluginLocaleResource("Plugins.Feed.Froogle.StaticFilePath.Hint");


            //Remove scheduled task
            var task = FindScheduledTask();

            if (task != null)
            {
                _scheduleTaskService.DeleteTask(task);
            }

            base.Uninstall();
        }
		public void UpdateSettings(object settings, FormCollection form, int storeId, ISettingService settingService)
		{
			var settingName = settings.GetType().Name;
			var properties = settings.GetType().GetProperties();

			foreach (var prop in properties)
			{
				var name = prop.Name;
				var key = settingName + "." + name;

				if (storeId == 0 || IsOverrideChecked(key, form))
				{
					dynamic value = settings.TryGetPropertyValue(name);
					settingService.SetSetting(key, value == null ? "" : value, storeId, false);
				}
				else if (storeId > 0)
				{
					settingService.DeleteSetting(key, storeId);
				}
			}
		}