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.