Inhalte aufrufen

Profilbild

Plug-in License


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

#1 HatemHusam

HatemHusam

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 30 Beiträge

Geschrieben: 09 September 2018 - 12:57

I followed the instructions mentioned here "http://docs.smartsto...ugin licensable" to make my plugin licensable, but still I'm not getting the license option in the admin panel as in the photo:

 

license.png

 

Any instruction on how to implement it?



#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 10 September 2018 - 08:40

It is documented here. You must decorate your plugin class (typically derived from one of the base plugin classes BasePlugin or just IPlugin) with the LicensableModule attribute. Example:
[LicensableModule]
public class MyPlugin : BasePlugin, IConfigurable
{....

Marcus Gesing

Smartstore AG


#3 HatemHusam

HatemHusam

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 30 Beiträge

Geschrieben: 10 September 2018 - 13:19

Hi Marcus, I've already done that steps, but still I don't see the license option for my plugin!

 

Is it because I'm running the plugin in the developing environment (localhost) not the production environment? do that matters?



#4 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 10 September 2018 - 14:35

No, that doesn't affect it. Could you please look in the log list for exceptions and debug PrepareLocalPluginsModel and subsequent methods in PluginController.


Marcus Gesing

Smartstore AG


#5 HatemHusam

HatemHusam

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 30 Beiträge

Geschrieben: 10 September 2018 - 19:39

Hi Marcus, After doing some debugging I found that the value of IsLicensable is false in my plug-in, but it is true in other paid plug-ins as per the photo below

 

00_Untitled.png



#6 HatemHusam

HatemHusam

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 30 Beiträge

Geschrieben: 10 September 2018 - 20:02

Thank you Marcus, I found the issue and fixed the bug.