public BecomeService(IProductService productService,
     ICategoryService categoryService, 
     IManufacturerService manufacturerService, IPictureService pictureService,
     ICurrencyService currencyService, IWebHelper webHelper,
     ISettingService settingService,
     BecomeSettings becomeSettings, CurrencySettings currencySettings)
 {
     this._productService = productService;
     this._categoryService = categoryService;
     this._manufacturerService = manufacturerService;
     this._pictureService = pictureService;
     this._currencyService = currencyService;
     this._webHelper = webHelper;
     this._settingService = settingService;
     this._becomeSettings = becomeSettings;
     this._currencySettings = currencySettings;
 }
Пример #2
0
 public BecomeService(IProductService productService,
                      ICategoryService categoryService,
                      IManufacturerService manufacturerService, IPictureService pictureService,
                      ICurrencyService currencyService, IWebHelper webHelper,
                      ISettingService settingService,
                      BecomeSettings becomeSettings, CurrencySettings currencySettings)
 {
     this._productService      = productService;
     this._categoryService     = categoryService;
     this._manufacturerService = manufacturerService;
     this._pictureService      = pictureService;
     this._currencyService     = currencyService;
     this._webHelper           = webHelper;
     this._settingService      = settingService;
     this._becomeSettings      = becomeSettings;
     this._currencySettings    = currencySettings;
 }
Пример #3
0
        /// <summary>
        /// Install plugin
        /// </summary>
        public override void Install()
        {
            var settings = new BecomeSettings()
            {
                ProductPictureSize = 125
            };

            _settingService.SaveSetting(settings);

            this.AddOrUpdatePluginLocaleResource("Plugins.Feed.Become.ClickHere", "Click here");
            this.AddOrUpdatePluginLocaleResource("Plugins.Feed.Become.Currency", "Currency");
            this.AddOrUpdatePluginLocaleResource("Plugins.Feed.Become.Currency.Hint", "Select the default currency that will be used to generate the feed.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Feed.Become.Generate", "Generate feed");
            this.AddOrUpdatePluginLocaleResource("Plugins.Feed.Become.ProductPictureSize", "Product thumbnail image size");
            this.AddOrUpdatePluginLocaleResource("Plugins.Feed.Become.ProductPictureSize.Hint", "The default size (pixels) for product thumbnail images.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Feed.Become.SuccessResult", "Become.com feed has been successfully generated. {0} to see generated feed");

            base.Install();
        }
        /// <summary>
        /// Install plugin
        /// </summary>
        public override void Install()
        {
            //settings
            var settings = new BecomeSettings()
            {
                ProductPictureSize = 125
            };
            _settingService.SaveSetting(settings);

            //locales
            this.AddOrUpdatePluginLocaleResource("Plugins.Feed.Become.ClickHere", "Click here");
            this.AddOrUpdatePluginLocaleResource("Plugins.Feed.Become.Currency", "Currency");
            this.AddOrUpdatePluginLocaleResource("Plugins.Feed.Become.Currency.Hint", "Select the default currency that will be used to generate the feed.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Feed.Become.Generate", "Generate feed");
            this.AddOrUpdatePluginLocaleResource("Plugins.Feed.Become.ProductPictureSize", "Product thumbnail image size");
            this.AddOrUpdatePluginLocaleResource("Plugins.Feed.Become.ProductPictureSize.Hint", "The default size (pixels) for product thumbnail images.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Feed.Become.SuccessResult", "Become.com feed has been successfully generated. {0} to see generated feed");

            base.Install();
        }