public HomepageProductIndexPlugin(ISettingService settingService, HomepageProductIndexSettings ProductIndexSettings, HomepageProductIndexTask homepageProductIndexTask, IWebHelper webHelper, ILocalizationService localizationService) { this._settingService = settingService; this._ProductIndexSettings = ProductIndexSettings; this._homepageProductIndexTask = homepageProductIndexTask; this._webHelper = webHelper; this._localizationService = localizationService; }
public override void Install() { var settings = new HomepageProductIndexSettings { QtdProductsInHome = 8 }; _settingService.SaveSetting(settings); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.HomepageProductIndex.Fields.QtdProductsInHome", "Qtd products in home"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.HomepageProductIndex.Fields.QtdProductsInHome.Hint", "Enter number of products that will de displayed in home page."); _homepageProductIndexTask.InstallTask(); base.Install(); }