• Getting Started
    • Prerequisites
    • Download and Installation
    • Change Log
  • Developer Guide
    • EvenCart Plugins
      • Development Environment Setup
      • Plugin Structure
      • EvenCart MVC
      • Dependency Injection
      • Domain Entities
      • Database Versions
      • Plugin Settings
      • Data Provider Plugin
      • Payment Processing Plugin
      • Shipping Provider Plugin
      • Authentication Provider
      • Widget Plugin
    • EvenCart API
      • Authentication
      • Requests & Responses
      • API EndPoints
    • Caching
  • Designer Guide
    • How to create a theme
    • Extended Tags
      • Layout Tag
      • Widget Tag
      • Json Tag
      • Css Tag
      • Js Tag
      • Bundle Tag
      • Partial Tag
      • Control Tag
      • Route Tag
      • Global Tag
      • Component Tag
    • Extended Filters
    • Global Objects
  • Packaging & Distribution

How to Package and Distribute plugin and theme?

An EvenCart plugin or theme must be packaged properly in order to make it loadable via administration. By packing all the plugin and theme files in a package, you allow the package to be identifiable by EvenCart platform.

Package Structure

An EvenCart package is collection of themes or plugins zipped together in a single zip archive along with a meta file. A typical package has following directory structure.

Package File
|- meta.json
|- directory1/...
|- directory2/...

The meta file gives the meta information about the package.

meta.json

The meta.json file a text file with the following contents.

{
    "package":"theme|plugin",
    "packageDirectoryName":"",  
    "items":[
        {
            "supportedVersion":"",
            "path":""
        }
    ]
}

Meta File Fields

package - Specifies the type of package. It can be either plugin or theme

packageDirectoryName - The name of the directory. The directory with same name will be created in Plugins or Themes directory depending on the package value above.

items - It's a JSON array that contains information about files for various supported versions.

  • supportedVersion - The EvenCart version that this plugin supports.
  • path - The path within the zipped package that'll be extracted to the output directory.

Submit package to EvenCart market

Once you have packaged your plugin or theme, you can submit it to list on EvenCart market. To do that, upload the zip file of the package on your Google Drive / DropBox / Hosting account and contact us with the link to the package.

Our team will verify the plugin details and approve or reject the plugin or theme depending on our internal assessment. In case the package is approved your package will be listed on our market with your vendor name.

ON THIS PAGE
  • Package Structure
  • Submit package to EvenCart market
© 2022 Sojatia Infocrafts Pvt. Ltd. All rights reserved. Powered by onlyDoc.