Developer Resources for AbleCommerce eCommerce platform
In This Topic
    How to Add a Plug-in
    In This Topic

    Plug-ins

    The AbleCommerce Plug-in manager is the gateway to new integrations, widgets, and customizations. Features of the plug-in framework include:

     

    Download Sample Plugin

    There are two methods to download and install the plugin: 

    • Download the compiled RandomQuotesPlugin.zip file and follow the "Plugin Deployment" instructions in the following section of this document, or . . .
    • Download the RandomQuotesPlugin source code and follow the "How to build the sample project" instructions at Github instead.         

    Plugin Deployment

    This will install a sample plugin that contains the Random Quotes widget. A menu item will be created for configuration.

    1. Place the compiled version of RandomQuotesPlugin.zip file in the Website/Plugins folder.
    2. Login to the AbleCommerce Merchant Menu.
    3. Click on the Plugins menu item to view all available plugins.
    4. Press the Refresh button located in the upper-right corner of the page.
    5. Find the newly listed plugin and install it.
    6. Click on the Third-Party menu item to view the Random Quotes configuration page.
    7. Enter a few random quotes using the Add button.

    Widget Use

    The new widget should appear on the widget toolbar within the General section. In order to use this widget, just drag it from the sidebar into a suitable area on a page. It will display one of the quotes that you've entered through the configuration page.

    Testing Notes

    Any plugin that is installed will have its DLL version information listed under the Help > About page.

    To enable error logging, edit the Website/App_Data/log4net.config file as shown:

    Find Code:

    <root>
    <level value="WARN" />
    <appender-ref ref="RollingLogFileAppender" />
    </root>

    Replace with Code:

    <root>
    <level value="INFO" />
    <appender-ref ref="RollingLogFileAppender" />
    </root>

    Save the file and restart the application.  The plugin framework will output the details about actions being performed into the application log file located Website/App_Data/app.log or by viewing the Help > Error Log page from within the Merchant Administration.