/// <summary>
        /// Install plugin
        /// </summary>
        public override void Install()
        {
            var settings = new FroogleSettings()
            {
                ProductPictureSize = 125,
				StaticFileName = "google_merchant_center_{0}.xml".FormatWith(CommonHelper.GenerateRandomDigitCode(10)),
				CurrencyId = _googleService.Helper.CurrencyID,
				Condition = "new",
				OnlineOnly = true,
				AdditionalImages = true,
				SpecialPrice = true
			};
            _settingService.SaveSetting(settings);

			_localizationService.ImportPluginResourcesFromXml(this.PluginDescriptor);

			_googleService.Helper.ScheduleTaskInsert();

            base.Install();
        }
示例#2
0
        /// <summary>
        /// Install plugin
        /// </summary>
        public override void Install()
        {
            var settings = new FroogleSettings()
            {
                ProductPictureSize = 125,
                StaticFileName     = "google_merchant_center_{0}.xml".FormatWith(CommonHelper.GenerateRandomDigitCode(10)),
                CurrencyId         = _googleService.Helper.CurrencyID,
                Condition          = "new",
                OnlineOnly         = true,
                AdditionalImages   = true,
                SpecialPrice       = true
            };

            _settingService.SaveSetting(settings);

            _localizationService.ImportPluginResourcesFromXml(this.PluginDescriptor);

            _googleService.Helper.ScheduleTaskInsert();

            base.Install();
        }