Developer forum

Forum » Integration » Custom BaseLiveIntegrationAddIn not showing up as expected

Custom BaseLiveIntegrationAddIn not showing up as expected

Espen Strømsnes
Espen Strømsnes
Reply

I have added a custom class that extends BaseLiveIntegrationAddIn, but my addin shows up different than the default DynamicwebLiveIntegrationAddIn in the DW admin ui.

I want to extend the BaseLiveIntegrationAddIn so that I can use a standardized place in the DW-admin for entering settings for my live integration.

The problem is that my addin does not end up with a plus button, only an edit button is visible and when I click the edit button a new settings file is created (the instance id is incremented).

How can I make my custom addIn to work with the plus-button for adding instance-settings for each shop?

DW version is 9.12.1

Best regards,

Espen

dw_plugin.png

Replies

 
Nicolai Pedersen
Reply

Hi Espen

Attached find our code for it. Maybe you can use that to figure out if you are missing some things?

 

 
Espen Strømsnes
Espen Strømsnes
Reply

Thanks for the sample code Nicolai. I ended up copying your code to see if that made a difference, but it's still the same result. The DW plugin has a plus sign button to add instances of the plugin, but my plugin (which now contains 100% your code) still only has an edit button (no plus sign).

What controls whether a plus sign button or edit button will be visible in the admin ui?

 

Espen

 
Kenneth Radoor
Reply

Hi

I had the same wish, and found ou that the +-sign only show up, if the addIn is of type Dynamicweb.Ecommerce.DynamicwebLiveIntegration.LiveIntegrationAddIn.

It would be nice if custom AddIns also could have multiple instances.

/Kenneth

 

You must be logged in to post in the forum