Exemple #1
0
        public override void Install()
        {
            var settings = new HomePageNewProductsPluginSettings()
            {
                NumberOfProductsToShow = 3
            };

            _settingService.SaveSetting(settings);

            this.AddOrUpdatePluginLocaleResource("Plugins.Widgets.HomePageNewProductsPlugin.NumberOfProductsToShow", "NumberOfProducts");
            this.AddOrUpdatePluginLocaleResource("Plugins.Widgets.HomePageNewProductsPlugin.NumberOfProductsToShow.Hint", "Enter number of products");
            this.AddOrUpdatePluginLocaleResource("Plugins.Widgets.HomePageNewProductsPlugin.WidgetZone", "WidgetZone");
            this.AddOrUpdatePluginLocaleResource("Plugins.Widgets.HomePageNewProductsPlugin.WidgetZone.Hints", "Chose Widget zone");

            base.Install();
        }
Exemple #2
0
        /// <summary>
        /// Install plugin
        /// </summary>
        public override void Install()
        {
            // Default settings
            var settings = new HomePageNewProductsPluginSettings
            {
                WidgetZone = WidgetZones.home_page_top,
                NumberOfProductsToDisplay = 4
            };

            _settingService.SaveSetting(settings);

            this.AddOrUpdatePluginLocaleResource("Plugins.Widgets.HomePageNewProductsPlugin.WidgetZone", "Widget zone");
            this.AddOrUpdatePluginLocaleResource("Plugins.Widgets.HomePageNewProductsPlugin.WidgetZone", "Зона за показ", "bg-BG");
            this.AddOrUpdatePluginLocaleResource("Plugins.Widgets.HomePageNewProductsPlugin.WidgetZone.Hint", "Select which area of the site it will cover");
            this.AddOrUpdatePluginLocaleResource("Plugins.Widgets.HomePageNewProductsPlugin.WidgetZone.Hint", "Изберете зона за показване", "bg-BG");
            this.AddOrUpdatePluginLocaleResource("Plugins.Widgets.HomePageNewProductsPlugin.NumberOfProductsToDisplay", "Number of products to display");
            this.AddOrUpdatePluginLocaleResource("Plugins.Widgets.HomePageNewProductsPlugin.NumberOfProductsToDisplay", "Брой на показваните продукти", "bg-BG");
            this.AddOrUpdatePluginLocaleResource("Plugins.Widgets.HomePageNewProductsPlugin.NumberOfProductsToDisplay.Hint", "Select between 1 and 12");
            this.AddOrUpdatePluginLocaleResource("Plugins.Widgets.HomePageNewProductsPlugin.NumberOfProductsToDisplay.Hint", "Изберете между 1 и 12", "bg-BG");
            this.AddOrUpdatePluginLocaleResource("Plugins.Widgets.HomePageNewProductsPlugin.LatestProducts", "Latest Products");
            this.AddOrUpdatePluginLocaleResource("Plugins.Widgets.HomePageNewProductsPlugin.LatestProducts", "Последни Продукти", "bg-BG");

            base.Install();
        }
Exemple #3
0
 public HomePageNewProductsPlugin(IWebHelper webHelper, ISettingService settingService, HomePageNewProductsPluginSettings homePageNewProductsPluginSettings)
 {
     this._webHelper      = webHelper;
     this._settingService = settingService;
     this._homePageNewProductsPluginSettings = homePageNewProductsPluginSettings;
 }