Пример #1
0
 public override void Uninstall()
 {
     //locales
     _localizationService.DeleteLocaleStringResources(this.PluginDescriptor.ResourceRootKey);
     _localizationService.DeleteLocaleStringResources("Plugins.FriendlyName.DiscountRequirement.HasAllProducts", false);
     base.Uninstall();
 }
Пример #2
0
 public override void Uninstall()
 {
     //locales
     _localizationService.DeleteLocaleStringResources(this.PluginDescriptor.ResourceRootKey);
     _localizationService.DeleteLocaleStringResources("Plugins.FriendlyName.CurrencyExchange.ECB", false);
     base.Uninstall();
 }
        public override void Uninstall()
        {
            //locales
            _localizationService.DeleteLocaleStringResources(this.PluginDescriptor.ResourceRootKey);
            _localizationService.DeleteLocaleStringResources("Plugins.FriendlyName.ExternalAuth.Facebook", false);

            base.Uninstall();
        }
Пример #4
0
        public override void Uninstall()
        {
            _localizationService.DeleteLocaleStringResources(this.PluginDescriptor.ResourceRootKey);
            _localizationService.DeleteLocaleStringResources("Plugins.DiscountRules.PurchasedOneProduct");
            _localizationService.DeleteLocaleStringResources("Plugins.DiscountRules.PurchasedAllProducts");

            base.Uninstall();
        }
        /// <summary>
        /// Uninstall plugin
        /// </summary>
        public override void Uninstall()
        {
            //locales
            _localizationService.DeleteLocaleStringResources(this.PluginDescriptor.ResourceRootKey);
            _localizationService.DeleteLocaleStringResources("Plugins.FriendlyName.Mobile.SMS.Clickatell", false);

            base.Uninstall();
        }
Пример #6
0
        /// <summary>
        /// Uninstall plugin
        /// </summary>
        public override void Uninstall()
        {
            //locales
            _localizationService.DeleteLocaleStringResources(this.PluginDescriptor.ResourceRootKey);
            _localizationService.DeleteLocaleStringResources("Plugins.FriendlyName.Shipping.FixedRateShipping", false);

            base.Uninstall();
        }
Пример #7
0
        public override void Uninstall()
        {
            _localizationService.DeleteLocaleStringResources(PluginDescriptor.ResourceRootKey);
            _localizationService.DeleteLocaleStringResources("Plugins.FriendlyName.Widgets.GoogleAnalytics", false);
            _settingService.DeleteSetting <GoogleAnalyticsSettings>();

            base.Uninstall();
        }
        public override void Uninstall()
        {
            //locales
            _localizationService.DeleteLocaleStringResources(this.PluginDescriptor.ResourceRootKey);
            _localizationService.DeleteLocaleStringResources("Plugins.FriendlyName.DiscountRequirement.MustBeAssignedToCustomerRole", false);
            _settingService.DeleteSettings("DiscountRequirement.MustBeAssignedToCustomerRole");

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

            _localizationService.DeleteLocaleStringResources(this.PluginDescriptor.ResourceRootKey);
            _localizationService.DeleteLocaleStringResources("Plugins.FriendlyName.Payments.PayPalStandard", false);

            base.Uninstall();
        }
Пример #10
0
        /// <summary>
        /// Uninstall plugin
        /// </summary>
        public override void Uninstall()
        {
            //locales
            _localizationService.DeleteLocaleStringResources(this.PluginDescriptor.ResourceRootKey);
            _localizationService.DeleteLocaleStringResources("Plugins.FriendlyName.Developer.Glimpse", false);

            _settingService.DeleteSetting <GlimpseSettings>();

            base.Uninstall();
        }
        /// <summary>
        /// Uninstall plugin
        /// </summary>
        public override void Uninstall()
        {
            //locales
            _localizationService.DeleteLocaleStringResources(this.PluginDescriptor.ResourceRootKey);
            _localizationService.DeleteLocaleStringResources("Plugins.FriendlyName.Widgets.LivePersonChat", false);

            _settingService.DeleteSetting <LivePersonChatSettings>();

            base.Uninstall();
        }
        /// <summary>
        /// Uninstall plugin
        /// </summary>
        public override void Uninstall()
        {
            _localizationService.DeleteLocaleStringResources(this.PluginDescriptor.ResourceRootKey);
            _localizationService.DeleteLocaleStringResources("Plugins.FriendlyName.Tax.CountryStateZip", false);

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

            migrator.Update(DbMigrator.InitialDatabase);

            base.Uninstall();
        }
        /// <summary>
        /// Uninstall plugin
        /// </summary>
        public override void Uninstall()
        {
            var migrator = new DbMigrator(new Configuration());

            migrator.Update(DbMigrator.InitialDatabase);

            //locales
            _localizationService.DeleteLocaleStringResources(this.PluginDescriptor.ResourceRootKey);
            _localizationService.DeleteLocaleStringResources("Plugins.FriendlyName.Shipping.ByWeight", false);

            base.Uninstall();
        }
Пример #14
0
        public override void Uninstall()
        {
            WebApiCaching.Remove(WebApiControllingCacheData.Key);
            WebApiCaching.Remove(WebApiUserCacheData.Key);

            _settingService.DeleteSetting <WebApiSettings>();

            _permissionService.UninstallPermissions(new WebApiPermissionProvider());

            _localizationService.DeleteLocaleStringResources(this.PluginDescriptor.ResourceRootKey);
            _localizationService.DeleteLocaleStringResources("Plugins.FriendlyName.Api.WebApi", false);

            base.Uninstall();
        }
Пример #15
0
        /// <summary>
        /// Uninstall the plugin
        /// </summary>
        public override void Uninstall()
        {
            _settingService.DeleteSetting <ShippingByTotalSettings>();

            _localizationService.DeleteLocaleStringResources(PluginDescriptor.ResourceRootKey);

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

            migrator.Update(DbMigrator.InitialDatabase);

            _localizationService.DeleteLocaleStringResources("Plugins.FriendlyName.Shipping.FixedRateShipping", false);

            base.Uninstall();
        }
Пример #16
0
        public override void Uninstall()
        {
            try
            {
                var settings = _settingService.LoadSetting <PayPalPlusPaymentSettings>();
                if (settings.WebhookId.HasValue())
                {
                    var session = new PayPalSessionData();
                    var result  = _payPalService.Value.EnsureAccessToken(session, settings);

                    if (result.Success)
                    {
                        result = _payPalService.Value.DeleteWebhook(settings, session);
                    }

                    if (!result.Success)
                    {
                        Logger.Log(LogLevel.Error, null, result.ErrorMessage, null);
                    }
                }
            }
            catch (Exception exception)
            {
                Logger.Log(LogLevel.Error, exception, null, null);
            }

            _settingService.DeleteSetting <PayPalExpressPaymentSettings>();
            _settingService.DeleteSetting <PayPalDirectPaymentSettings>();
            _settingService.DeleteSetting <PayPalStandardPaymentSettings>();
            _settingService.DeleteSetting <PayPalPlusPaymentSettings>();

            _localizationService.DeleteLocaleStringResources(PluginDescriptor.ResourceRootKey);

            base.Uninstall();
        }
Пример #17
0
        public override void Uninstall()
        {
            //locales
            _localizationService.DeleteLocaleStringResources(this.PluginDescriptor.ResourceRootKey);

            base.Uninstall();
        }
Пример #18
0
        /// <summary>
        /// Uninstalls this instance.
        /// </summary>
        /// <param name="plugin">The plugin.</param>
        public virtual void Uninstall(BasePlugin plugin)
        {
            //locales
            _localizationService.DeleteLocaleStringResources(plugin.PluginDescriptor.ResourceRootKey);
            _localizationService.DeleteLocaleStringResources("Plugins.FriendlyName.Misc.MailChimp", false);

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

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

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

            migrator.Update(DbMigrator.InitialDatabase);
        }
Пример #19
0
        public override void Uninstall()
        {
            _settingService.DeleteSetting <PayPalExpressPaymentSettings>();
            _settingService.DeleteSetting <PayPalDirectPaymentSettings>();
            _settingService.DeleteSetting <PayPalStandardPaymentSettings>();

            _localizationService.DeleteLocaleStringResources(PluginDescriptor.ResourceRootKey);

            base.Uninstall();
        }
        /// <summary>
        /// Uninstall plugin
        /// </summary>
        public override void Uninstall()
        {
            var migrator = new DbMigrator(new Configuration());

            migrator.Update(DbMigrator.InitialDatabase);

            _localizationService.DeleteLocaleStringResources(PluginDescriptor.ResourceRootKey);

            base.Uninstall();
        }
        /// <summary>
        /// Uninstalls this instance.
        /// </summary>
        /// <param name="plugin">The plugin.</param>
        public virtual void Uninstall(BasePlugin plugin)
        {
            //locales
            _localizationService.DeleteLocaleStringResources(plugin.PluginDescriptor.ResourceRootKey);

            _scheduleTaskService.TryDeleteTask <MailChimpSynchronizationTask>();

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

            migrator.Update(DbMigrator.InitialDatabase);
        }
Пример #22
0
        public override void Uninstall()
        {
            _localizationService.DeleteLocaleStringResources(this.PluginDescriptor.ResourceRootKey);

            _localizationService.DeleteLocaleStringResources("Plugins.DiscountRequirement.MustBeAssignedToCustomerRole");
            _localizationService.DeleteLocaleStringResources("Plugins.DiscountRules.BillingCountry");
            _localizationService.DeleteLocaleStringResources("Plugins.DiscountRules.ShippingCountry");
            _localizationService.DeleteLocaleStringResources("Plugins.DiscountRules.Store");
            _localizationService.DeleteLocaleStringResources("Plugins.DiscountRules.HasOneProduct");
            _localizationService.DeleteLocaleStringResources("Plugins.DiscountRules.HasAllProducts");
            _localizationService.DeleteLocaleStringResources("Plugins.DiscountRules.HadSpentAmount");

            base.Uninstall();
        }
Пример #23
0
        /// <summary>
        /// Uninstall plugin
        /// </summary>
        public override void Uninstall()
        {
            _settingService.DeleteSetting <FroogleSettings>();

            _localizationService.DeleteLocaleStringResources(this.PluginDescriptor.ResourceRootKey);

            _googleService.Helper.ScheduleTaskDelete();

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

            migrator.Update(DbMigrator.InitialDatabase);

            base.Uninstall();
        }
Пример #24
0
        public override void Uninstall()
        {
            _settingService.DeleteSetting <GTPaySettings>();

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

            migrator.Update(DbMigrator.InitialDatabase);

            _localizationService.DeleteLocaleStringResources(PluginDescriptor.ResourceRootKey);

            base.Uninstall();

            _logger.Info(string.Format(_localizationService.GetResource("Plugins.SmartStore.GTPay.PluginUninstalled"), PluginDescriptor.SystemName, PluginDescriptor.Version, PluginDescriptor.FriendlyName));
        }
Пример #25
0
        public ActionResult UpdateAllStringResources()
        {
            if (!_permissionService.Authorize(StandardPermissionProvider.ManagePlugins))
            {
                return(AccessDeniedView());
            }

            var pluginDescriptors = _pluginFinder.GetPluginDescriptors(false);

            foreach (var plugin in pluginDescriptors)
            {
                if (plugin.Installed)
                {
                    _localizationService.ImportPluginResourcesFromXml(plugin, null, false);
                }
                else
                {
                    _localizationService.DeleteLocaleStringResources(plugin.ResourceRootKey);
                }
            }

            NotifySuccess(_localizationService.GetResource("Admin.Configuration.Plugins.Resources.UpdateSuccess"));
            return(RedirectToAction("List"));
        }