public PromoWidgetAdminController(
                     ILocalizationService localizationService,
                     IPromoPictureService promoPictureService,
                     IPictureService pictureService,
                     PromoWidgetSettings widgetSettings,
                     ISettingService settingService,
                     IPromoBannerService promoBannerService,
                     IThemeContext themeContext)
 {
     this._localizationService = localizationService;
     this._promoPictureService = promoPictureService;
     this._pictureService = pictureService;
     this._widgetSettings = widgetSettings;
     this._settingService = settingService;
     this._promoBannerService = promoBannerService;
     this._themeContext = themeContext;
 }
        /// <summary>
        /// Install widget
        /// </summary>
        public override void Install()
        {
            // settings
            var settings = new PromoWidgetSettings()
            {
                ShowPromoDetailsOnProductPage = true,
                ShowStickersInCatalogue = true,
                ShowStickersInProductPage = true,
                ProductPagePromoDetailsWidgetZone = "productdetails_add_info"       // Default!
            };
            _settingService.SaveSetting(settings);

            // Deal with strings
            SetupStringResources();
            InstallAllStringResources();

            // set the widget to active (for the Customer Navigation menu only at present...)
            _widgetSettings.ActiveWidgetSystemNames.Add(this.PluginDescriptor.SystemName);
            
            base.Install();
        }
 public PromoWidgetController(
     IPromoUtilities promoUtilities,
     IPriceFormatter priceFormatter,
     IWorkContext workContext,
     PromoSettings promoSettings,
     IProductMappingService productMappingService,
     IProductPromoMappingService productPromoMappingService,
     IPromoDetailService promoDetailService,
     IStoreService storeService,
     IStoreContext storeContext,
     IAttributeValueService attributeValueService,
     ICurrencyService currencyService,
     IPromoPictureService promoPictureService,
     IPictureService pictureService,
     IProductService productService,
     PromoWidgetSettings widgetSettings,
     IPromoBannerService promoBannerService,
     ILocalizationService localizationService,
     IThemeContext themeContext)
 {
     this._promoUtilities = promoUtilities;
     this._priceFormatter = priceFormatter;
     this._workContext = workContext;
     this._productMappingService = productMappingService;
     this._productPromoMappingService = productPromoMappingService;
     this._promoDetailService = promoDetailService;
     this._promoSettings = promoSettings;
     this._storeService = storeService;
     this._storeContext = storeContext;
     this._attributeValueService = attributeValueService;
     this._currencyService = currencyService;
     this._promoPictureService = promoPictureService;
     this._pictureService = pictureService;
     this._productService = productService;
     this._widgetSettings = widgetSettings;
     this._promoBannerService = promoBannerService;
     this._localizationService = localizationService;
     this._themeContext = themeContext;
 }