/// <summary> /// Uninstall plugin /// </summary> public override void Uninstall() { //settings _settingService.DeleteSetting <JusdaSettings>(); //locales _localizationService.DeletePluginLocaleResources("Enums.Nop.Plugin.Shipping.UPS"); _localizationService.DeletePluginLocaleResources("Plugins.Shipping.UPS"); base.Uninstall(); }
public override void Uninstall() { //locales _localizationService.DeletePluginLocaleResources("Plugins.Api"); //_localizationService.DeletePluginLocaleResource("Plugins.Api.Admin.Menu.Title"); //_localizationService.DeletePluginLocaleResource("Plugins.Api.Admin.Menu.Settings.Title"); //_localizationService.DeletePluginLocaleResource("Plugins.Api.Admin.Configure"); //_localizationService.DeletePluginLocaleResource("Plugins.Api.Admin.GeneralSettings"); //_localizationService.DeletePluginLocaleResource("Plugins.Api.Admin.EnableApi"); //_localizationService.DeletePluginLocaleResource("Plugins.Api.Admin.EnableApi.Hint"); //_localizationService.DeletePluginLocaleResource("Plugins.Api.Admin.Settings.GeneralSettingsTitle"); //_localizationService.DeletePluginLocaleResource("Plugins.Api.Admin.Edit"); var apiRole = _customerService.GetCustomerRoleBySystemName(Constants.Roles.ApiRoleSystemName); if (apiRole != null) { apiRole.Active = false; _customerService.UpdateCustomerRole(apiRole); } base.Uninstall(); }
/// <summary> /// Uninstall the plugin /// </summary> public override void Uninstall() { //locales _localizationService.DeletePluginLocaleResources("Plugins.Misc.MmsAdmin"); base.Uninstall(); }
/// <summary> /// Uninstall the plugin /// </summary> public override void Uninstall() { //locales _localizationService.DeletePluginLocaleResources("Plugins.Pickup.PickupInStore"); base.Uninstall(); }
/// <summary> /// Uninstall plugin /// </summary> public override void Uninstall() { //locales _localizationService.DeletePluginLocaleResources("Plugins.Widgets.MinburHeaderMenu"); base.Uninstall(); }
/// <summary> /// Uninstall the plugin /// </summary> public override void Uninstall() { //settings if (_widgetSettings.ActiveWidgetSystemNames.Contains(Defaults.SystemName)) { _widgetSettings.ActiveWidgetSystemNames.Remove(Defaults.SystemName); _settingService.SaveSetting(_widgetSettings); } _settingService.DeleteSetting <SkrillSettings>(); //locales _localizationService.DeletePluginLocaleResources("Plugins.Payments.Skrill"); _localizationService.DeletePluginLocaleResources("Enums.Nop.Plugin.Payments.Skrill"); base.Uninstall(); }
/// <summary> /// Uninstall the plugin /// </summary> public override void Uninstall() { _settingService.DeleteSetting <Sms77Settings>(); _localizationService.DeletePluginLocaleResources("Plugins.Misc.Sms77"); base.Uninstall(); }
/// <summary> /// Uninstall plugin /// </summary> public override void Uninstall() { _widgetSettings.ActiveWidgetSystemNames.Remove(FacebookPixelDefaults.SystemName); _settingService.SaveSetting(_widgetSettings); _localizationService.DeletePluginLocaleResources("Plugins.Widgets.FacebookPixel"); base.Uninstall(); }
/// <summary> /// Uninstall the plugin /// </summary> public override void Uninstall() { //settings _settingService.DeleteSetting <IpayDoubleEightPaymentSettings>(); //locales _localizationService.DeletePluginLocaleResources("Plugins.Payments.IpayDoubleEight"); base.Uninstall(); }
/// <summary> /// Uninstall the plugin /// </summary> public override void Uninstall() { //settings _settingService.DeleteSetting <CheckMoneyOrderPaymentSettings>(); //locales _localizationService.DeletePluginLocaleResources("Plugins.Payment.CheckMoneyOrder"); base.Uninstall(); }
/// <summary> /// Uninstall the plugin /// </summary> public override void Uninstall() { //settings _settingService.DeleteSetting <PayPalExpressCheckoutPaymentSettings>(); // locales _localizationService.DeletePluginLocaleResources("Plugins.Payments.PayPalExpressCheckout"); base.Uninstall(); }
/// <summary> /// Uninstall the plugin /// </summary> public override void Uninstall() { //settings _settingService.DeleteSetting <EzkelTechAwsS3Settings>(); //locales _localizationService.DeletePluginLocaleResources("EzkelTech.Plugin.Misc.EzkelTech"); base.Uninstall(); }
/// <summary> /// Uninstall the plugin /// </summary> public override void Uninstall() { //settings _settingService.DeleteSetting <ManualPaymentSettings>(); //locales _localizationService.DeletePluginLocaleResources("Plugins.Payments.Manual"); base.Uninstall(); }
/// <summary> /// Uninstall plugin /// </summary> public override void Uninstall() { //settings _settingService.DeleteSetting <NivoSliderSettings>(); //locales _localizationService.DeletePluginLocaleResources("Plugins.Widgets.NivoSlider"); base.Uninstall(); }
/// <summary> /// Uninstall the plugin /// </summary> public override void Uninstall() { //settings _settingService.DeleteSetting <FacebookExternalAuthSettings>(); //locales _localizationService.DeletePluginLocaleResources("Plugins.ExternalAuth.Facebook"); base.Uninstall(); }
/// <summary> /// Uninstall plugin /// </summary> public override void Uninstall() { //settings _settingService.DeleteSetting <GoogleAnalyticsSettings>(); //locales _localizationService.DeletePluginLocaleResources("Plugins.Widgets.GoogleAnalytics"); base.Uninstall(); }
/// <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.DeletePluginLocaleResources("Enums.Smi.Plugin.Tax.Avalara.Domain"); _localizationService.DeletePluginLocaleResources("Plugins.Tax.Avalara"); base.Uninstall(); }
/// <summary> /// Uninstall the plugin /// </summary> public override void Uninstall() { //delete categories import task DeleteTask(ErplyIntegrationDefaults.CategoriesImportTask); //delete products import task DeleteTask(ErplyIntegrationDefaults.ProductsImportTask); //locales _localizationService.DeletePluginLocaleResources("Plugins.Misc.ErplyIntegration"); base.Uninstall(); }
/// <summary> /// Uninstall the plugin /// </summary> public override void Uninstall() { if (_widgetSettings.ActiveWidgetSystemNames.Contains(Defaults.SystemName)) { _widgetSettings.ActiveWidgetSystemNames.Remove(Defaults.SystemName); _settingService.SaveSetting(_widgetSettings); } _settingService.DeleteSetting <CryptoPaymentSettings>(); _localizationService.DeletePluginLocaleResources("Plugins.Payments.Crypto"); base.Uninstall(); }
public override void Uninstall() { _settingService.DeleteSetting <LuceneSettings>(); //locales _localizationService.DeletePluginLocaleResources(new List <string> { "Plugins.Misc.Lucene.Fields.Enabled", "Plugins.Misc.Lucene.Fields.Enabled.Hint", "Plugins.Misc.Lucene.Fields.AutoCompleteSearchEnabled", "Plugins.Misc.Lucene.Fields.AutoCompleteSearchEnabled.Hint" }); 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.DeletePluginLocaleResources("Plugins.DiscountRules.CustomerRoles"); base.Uninstall(); }
public override void Uninstall() { //locales _localizationService.DeletePluginLocaleResources("Plugins.Api"); var apiRole = _customerService.GetCustomerRoleBySystemName(Constants.Roles.ApiRoleSystemName); if (apiRole != null) { apiRole.Active = false; _customerService.UpdateCustomerRole(apiRole); } 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.DeletePluginLocaleResources("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.DeletePluginLocaleResources("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.DeletePluginLocaleResources("Plugins.Shipping.FixedByWeightByTotal"); base.Uninstall(); }
/// <summary> /// Uninstall plugin /// </summary> public override void Uninstall() { //settings _settingService.DeleteSetting <ShipRocketSetting>(); //locales _localizationService.DeletePluginLocaleResources("Plugin.NopFeatures.ShipRocket"); //remove Task var task = _scheduleTaskService.GetTaskByType("Nop.Plugin.NopFeatures.ShipRocket.ScheduleTasks.ShipRocketOrderTask"); if (task != null) { _scheduleTaskService.DeleteTask(task); } base.Uninstall(); }
/// <summary> /// Uninstall the plugin /// </summary> public override void Uninstall() { //webhooks _mailChimpManager.DeleteBatchWebhook().Wait(); _mailChimpManager.DeleteWebhooks().Wait(); //synchronization task var task = _scheduleTaskService.GetTaskByType(MailChimpDefaults.SynchronizationTask); if (task != null) { _scheduleTaskService.DeleteTask(task); } //settings _settingService.DeleteSetting <MailChimpSettings>(); //locales _localizationService.DeletePluginLocaleResources("Plugins.Misc.MailChimp"); base.Uninstall(); }
/// <summary> /// Uninstall the plugin /// </summary> public override void Uninstall() { //settings _settingService.DeleteSetting <FraudLabsProSettings>(); //generic attributes var orders = _orderService.SearchOrders(); foreach (var order in orders) { var genericAttributes = _genericAttributeService.GetAttributesForEntity(order.Id, order.GetType().Name).ToList() .Where(w => w.Key.Equals(FraudLabsProDefaults.OrderResultAttribute) || w.Key.Equals(FraudLabsProDefaults.OrderStatusAttribute)) .ToArray(); if (genericAttributes.Any()) { _genericAttributeService.DeleteAttributes(genericAttributes); } } //locales _localizationService.DeletePluginLocaleResources("Plugins.Misc.FraudLabsPro"); base.Uninstall(); }