Inhalte aufrufen

Profilbild

Hello world plugin

plugin

  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
5 Antworten zu diesem Thema

#1 BasicLilium

BasicLilium

    Newbie

  • Members
  • Punkt
  • 3 Beiträge

Geschrieben: 26 August 2018 - 07:46

Hi

in want to extend smartstore capabilities by developing plugins. but its complicated at first. 

i read this page 

http://docs.smartsto... write a Plugin

and u know all links in this page are broken!

how can i learn developing plugins?

can anybody help me with "hello world" plugin? 

 


  • MediArt und GalenKa gefällt das

#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3799 Beiträge

Geschrieben: 26 August 2018 - 21:19

Dev-Tools is a simple plugin that shows the most important techniques to extend SmartStore.NET, like event consumers, injection through widget zones, action and result filters etc. Hello world examples can be found in DevToolsController.

  • BasicLilium gefällt das

Marcus Gesing

Smartstore AG


#3 BasicLilium

BasicLilium

    Newbie

  • Members
  • Punkt
  • 3 Beiträge

Geschrieben: 27 August 2018 - 08:56

 

Dev-Tools is a simple plugin that shows the most important techniques to extend SmartStore.NET, like event consumers, injection through widget zones, action and result filters etc. Hello world examples can be found in DevToolsController.

 

thank u dear Marcus for ur kind reply. lemme to check this plugin in deep.

 

and how about that dead links? can anybody repair or at least remove that? 



#4 Artar

Artar

    SmartStore AG

  • Administrators
  • 988 Beiträge

Geschrieben: 27 August 2018 - 13:57

please follow this link: http://docs.smartsto... write a Plugin


  • BasicLilium gefällt das

Zihni Artar
SmartStore AG


#5 BasicLilium

BasicLilium

    Newbie

  • Members
  • Punkt
  • 3 Beiträge

Geschrieben: 22 September 2018 - 15:02

im writing my first plugin and try to develop step by step as SmartStore reference.

in first step create a project and add two file : Plugin.cs and Description.txt

and put breakpoint in plugin.cs

 

in runtime i got this warning on break point :

 

Xwmei4S.png

 

whats wrong?

and how can i attach project here?

 

 

--------------

using SmartStore.Core.Plugins;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using SmartStore.Core.Logging;
using SmartStore.Services.Configuration;

namespace SmartStore.FirstPlugin
{
    public class Plugin : BasePlugin
    {
        private readonly ILogger _logger;
        private readonly ISettingService _settingService;



        public Plugin(ILogger logger,
            ISettingService settingService)
        {
            this._logger = logger;
            this._settingService = settingService;
        }


        public override void Install()
        {


            base.Install();

            _logger.Info(string.Format("Plugin installed: SystemName: {0}, Version: {1}, Description: '{2}'", PluginDescriptor.SystemName, PluginDescriptor.Version, PluginDescriptor.FriendlyName));
        }


        public override void Uninstall()
        {
            base.Uninstall();
        }
    }
}


#6 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3799 Beiträge

Geschrieben: 24 September 2018 - 09:11

Change your Visual Studio debugging settings as noted in the warning message.


Marcus Gesing

Smartstore AG



Auch markiert mit einem oder mehrerer dieser Schlüsselwörter: plugin