示例#1
0
        /// <summary>
        /// Uninstall plugin
        /// </summary>
        public override void Uninstall()
        {
            //settings
            _settingService.DeleteSetting <UPSSettings>();

            //locales
            _localizationService.DeleteLocaleResources("Enums.Nop.Plugin.Shipping.UPS");
            _localizationService.DeleteLocaleResources("Plugins.Shipping.UPS");

            base.Uninstall();
        }
示例#2
0
        /// <summary>
        /// Uninstall the plugin
        /// </summary>
        public override void Uninstall()
        {
            //locales
            _localizationService.DeleteLocaleResources("Plugins.Pickup.PickupInStore");

            base.Uninstall();
        }
示例#3
0
        /// <summary>
        /// Uninstall plugin
        /// </summary>
        public override void Uninstall()
        {
            _widgetSettings.ActiveWidgetSystemNames.Remove(FacebookPixelDefaults.SystemName);
            _settingService.SaveSetting(_widgetSettings);

            _localizationService.DeleteLocaleResources("Plugins.Widgets.FacebookPixel");

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

            //locales
            _localizationService.DeleteLocaleResources("Plugins.Widgets.NivoSlider");

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

            //locales
            _localizationService.DeleteLocaleResources("Plugins.Payments.PayPalStandard");

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

            //locales
            _localizationService.DeleteLocaleResources("Plugins.Payment.CheckMoneyOrder");

            base.Uninstall();
        }
示例#7
0
        /// <summary>
        /// Uninstall the plugin
        /// </summary>
        public override void Uninstall()
        {
            //settings
            _settingService.DeleteSetting <GoogleAuthenticatorSettings>();

            //locales
            _localizationService.DeleteLocaleResources("Plugins.MultiFactorAuth.GoogleAuthenticator");

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

            //locales
            _localizationService.DeleteLocaleResources("Plugins.Widgets.GoogleAnalytics");

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

            //locales
            _localizationService.DeleteLocaleResources("Plugins.ExternalAuth.Facebook");

            base.Uninstall();
        }
示例#10
0
        public override void Uninstall()
        {
            //Settings
            _settingService.DeleteSetting <TaskTwoSettings>();

            //Localization
            _localizationService.DeleteLocaleResources("Plugin.Widgets.TaskTwo");

            base.Uninstall();
        }
示例#11
0
        /// <summary>
        /// Uninstall the plugin
        /// </summary>
        public override void Uninstall()
        {
            //generic attributes
            _avalaraTaxManager.DeleteAttributes();

            //settings
            _taxSettings.ActiveTaxProviderSystemName = _taxPluginManager.LoadAllPlugins()
                                                       .FirstOrDefault(taxProvider => !taxProvider.PluginDescriptor.SystemName.Equals(AvalaraTaxDefaults.SystemName))
                                                       ?.PluginDescriptor.SystemName;
            _settingService.SaveSetting(_taxSettings);
            _widgetSettings.ActiveWidgetSystemNames.Remove(AvalaraTaxDefaults.SystemName);
            _settingService.SaveSetting(_widgetSettings);
            _settingService.DeleteSetting <AvalaraTaxSettings>();

            //locales
            _localizationService.DeleteLocaleResources("Enums.Nop.Plugin.Tax.Avalara.Domain");
            _localizationService.DeleteLocaleResources("Plugins.Tax.Avalara");

            base.Uninstall();
        }
        /// <summary>
        /// Uninstall the plugin
        /// </summary>
        public override void Uninstall()
        {
            //discount requirements
            var discountRequirements = _discountService.GetAllDiscountRequirements()
                                       .Where(discountRequirement => discountRequirement.DiscountRequirementRuleSystemName == DiscountRequirementDefaults.SystemName);

            foreach (var discountRequirement in discountRequirements)
            {
                _discountService.DeleteDiscountRequirement(discountRequirement, false);
            }

            //locales
            _localizationService.DeleteLocaleResources("Plugins.DiscountRules.CustomerRoles");

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

            //fixed rates
            var fixedRates = _taxCategoryService.GetAllTaxCategories()
                             .Select(taxCategory => _settingService.GetSetting(string.Format(FixedOrByCountryStateZipDefaults.FixedRateSettingsKey, taxCategory.Id)))
                             .Where(setting => setting != null).ToList();

            _settingService.DeleteSettings(fixedRates);

            //locales
            _localizationService.DeleteLocaleResources("Plugins.Tax.FixedOrByCountryStateZip");

            base.Uninstall();
        }
        /// <summary>
        /// Uninstall the plugin
        /// </summary>
        public override void Uninstall()
        {
            //smtp accounts
            foreach (var store in _storeService.GetAllStores())
            {
                var key            = $"{nameof(SendinBlueSettings)}.{nameof(SendinBlueSettings.EmailAccountId)}";
                var emailAccountId = _settingService.GetSettingByKey <int>(key, storeId: store.Id, loadSharedValueIfNotFound: true);
                var emailAccount   = _emailAccountService.GetEmailAccountById(emailAccountId);
                if (emailAccount != null)
                {
                    _emailAccountService.DeleteEmailAccount(emailAccount);
                }
            }

            //settings
            if (_widgetSettings.ActiveWidgetSystemNames.Contains(SendinBlueDefaults.SystemName))
            {
                _widgetSettings.ActiveWidgetSystemNames.Remove(SendinBlueDefaults.SystemName);
                _settingService.SaveSetting(_widgetSettings);
            }
            _settingService.DeleteSetting <SendinBlueSettings>();

            //generic attributes
            foreach (var store in _storeService.GetAllStores())
            {
                var messageTemplates = _messageTemplateService.GetAllMessageTemplates(store.Id);
                foreach (var messageTemplate in messageTemplates)
                {
                    _genericAttributeService.SaveAttribute <int?>(messageTemplate, SendinBlueDefaults.TemplateIdAttribute, null);
                }
            }

            //schedule task
            var task = _scheduleTaskService.GetTaskByType(SendinBlueDefaults.SynchronizationTask);

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

            //locales
            _localizationService.DeleteLocaleResources("Plugins.Misc.SendinBlue");

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

            //fixed rates
            var fixedRates = _shippingService.GetAllShippingMethods()
                             .Select(shippingMethod => _settingService.GetSetting(
                                         string.Format(FixedByWeightByTotalDefaults.FixedRateSettingsKey, shippingMethod.Id)))
                             .Where(setting => setting != null).ToList();

            _settingService.DeleteSettings(fixedRates);

            //locales
            _localizationService.DeleteLocaleResources("Plugins.Shipping.FixedByWeightByTotal");

            base.Uninstall();
        }