コード例 #1
0
 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;
 }
コード例 #2
0
        /// <summary>
        /// Install plugin
        /// </summary>
        public override void Install()
        {
            var settings = new NewProductSetting
            {
                SpecificationAttributeOptionId = _productService.GetSpecificationAttributeOptionId(),
                WidgetZone = "new_product"
            };

            _settingService.SaveSetting(settings);
            base.Install();
        }