public NewProductPlugin(IPictureService pictureService, ISettingService settingService, IWebHelper webHelper, NewProductSetting settings, IMyProductService productService) { this._pictureService = pictureService; this._settingService = settingService; this._webHelper = webHelper; _settings = settings; _productService = productService; }
/// <summary> /// Install plugin /// </summary> public override void Install() { var settings = new NewProductSetting { SpecificationAttributeOptionId = _productService.GetSpecificationAttributeOptionId(), WidgetZone = "new_product" }; _settingService.SaveSetting(settings); base.Install(); }