/// <summary>
        /// Installs this instance.
        /// </summary>
        /// <param name="plugin">The plugin.</param>
        public virtual void Install(BasePlugin plugin)
        {
            //settings
            var settings = new MailChimpSettings()
            {
                ApiKey        = "",
                DefaultListId = "",
                WebHookKey    = "",
            };

            _settingService.SaveSetting(settings);


            //locales
            plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.MailChimp.ApiKey", "MailChimp API Key");
            plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.MailChimp.DefaultListId", "Default MailChimp List");
            plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.MailChimp.AutoSync", "Use AutoSync task");
            plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.MailChimp.AutoSyncEachMinutes", "AutoSync task period (minutes)");
            plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.MailChimp.AutoSyncRestart", "If sync task period has been changed, please restart the application");
            plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.MailChimp.WebHookKey", "WebHooks Key");
            plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.MailChimp.QueueAll", "Initial Queue");
            plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.MailChimp.QueueAll.Hint", "Queue existing newsletter subscribers (run only once)");
            plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.MailChimp.ManualSync", "Manual Sync");
            plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.MailChimp.ManualSync.Hint", "Manually synchronize nopCommerce newsletter subscribers with MailChimp database");

            //Install sync task
            InstallSyncTask();

            //Install the database tables
            _mailChimpObjectContext.Install();
        }
Esempio n. 2
0
 public static void Install(BasePlugin plugin)
 {
     foreach (var d in Collection)
     {
         plugin.AddOrUpdatePluginLocaleResource(d.Key, d.Value);
     }
 }
        /// <summary>
        /// Installs this instance.
        /// </summary>
        /// <param name="plugin">The plugin.</param>
        public virtual void Install(BasePlugin plugin)
        {
            ////locales
            //plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.ScheduledXmlEporter.ApiKey", "ScheduledXmlEporter API Key");
            //plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.ScheduledXmlEporter.DefaultListId", "Default ScheduledXmlEporter List");
            plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.ScheduledXmlEporter.AutoSync", "Use AutoSync task");
            plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.ScheduledXmlEporter.AutoSyncEachMinutes", "AutoSync task period (minutes)");
            plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.ScheduledXmlEporter.AutoSyncRestart", "If sync task period has been changed, please restart the application");
            //plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.ScheduledXmlEporter.WebHookKey", "WebHooks Key");
            //plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.ScheduledXmlEporter.QueueAll", "Initial Queue");
            //plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.ScheduledXmlEporter.QueueAll.Hint", "Queue existing newsletter subscribers (run only once)");
            //plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.ScheduledXmlEporter.ManualSync", "Manual Sync");
            //plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.ScheduledXmlEporter.ManualSync.Hint", "Manually synchronize nopCommerce newsletter subscribers with ScheduledXmlEporter database");

            //Install sync task
            InstallSyncTask();

            ////Install the database tables
            //_scheduledXmlEporterObjectContext.Install();
        }
Esempio n. 4
0
        /// <summary>
        /// Installs this instance.
        /// </summary>
        /// <param name="plugin">The plugin.</param>
        public virtual void Install(BasePlugin plugin)
        {
            ////locales
            plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.XmlUpdateFromRotap.AutoSync", "Use AutoSync task");
            plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.XmlUpdateFromRotap.AutoSyncEachMinutes", "AutoSync task period (minutes)");
            plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.XmlUpdateFromRotap.AutoSyncRestart", "If sync task period has been changed, please restart the application");

            plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.XmlUpdateFromRotap.ScheduleTime", "Zamanlama periyodu (dk)");
            plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.XmlUpdateFromRotap.LastStartDate", "En son çalışma zamanı");
            plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.XmlUpdateFromRotap.EmailForReporting", "Rapor email adresi");
            plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.XmlUpdateFromRotap.EmailForReportingCC", "Rapor email adresi (cc)");
            plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.XmlUpdateFromRotap.NameForReporting", "Rapor adı");
            plugin.AddOrUpdatePluginLocaleResource("Plugin.Misc.XmlUpdateFromRotap.EnablePriceUpdate", "Fiyat güncellensin");

            //Install sync task
            InstallSyncTask();

            ////Install the database tables
            //_xmlUpdateFromRotapObjectContext.Install();
        }