# How to Sell an OpenCart Module: Publishing on the OpenCart Code Marketplace

> From Seller Application to Approved Product: how to prepare the archive for 3.0 and 4.1, fill in the module listing, pass moderation and release updates.

Джерело: https://opencartcode.com/en/wiki/dev-practice/sell-opencart-module
Оновлено: 2026-11-25

To sell an [OpenCart](https://opencartcode.com/en/wiki/glossary/e-commerce-glossary#opencart) module on the OpenCart Code marketplace, you need to submit a seller application with bank details and wait for it to be approved. After that, you create a product listing, upload the `.ocmod.zip` archive that is installed with the standard installer, and send the product for review. Most rejections during moderation are related not to business logic but to packaging: the archive does not install on a clean store, the listing does not specify versions, or the instructions are missing.

Examples are for OpenCart 4.1; in 4.0.x, model triggers and event handling differ. Below we cover the whole path: from registering as an author to releasing updates for those who have already bought the module.

## What do you need to become a seller?

First you need a regular account on the site, and then an application via "Become a Seller". Three fields in the application are mandatory: bank name, recipient, and IBAN, because payouts go to these details. The remaining fields are optional, but your documents depend on them. These include the taxation system (sole proprietor of a certain group, LLC, etc.), company details (name, registration code, director, legal address), support working hours, and a note on whether you accept custom orders.

A submitted application receives the status "Under review". Until the administration approves it, the products section in the developer panel remains closed: you cannot create a draft or upload a file, because all these actions require a verified profile. If the application is rejected, the reason is visible in your dashboard. Correct the data and click "Resubmit"; there is no need to register again.

A few tips that will save you time:

- enter the details of the person who will actually receive the money. The recipient on the bank account and the name of the sole proprietor or company must match, otherwise the payout will have to be clarified manually;
- clarify tax questions (whether you are a VAT payer, which sole proprietor group to choose) with your accountant before submitting, because invoices and acts depend on them;
- fill in your working hours. Buyers see when to expect a reply to tickets and write again less often.

The marketplace commission and the minimum withdrawal amount are visible in the developer panel. Check the current terms there rather than in third-party reviews, because they may change.

## How do you prepare the module archive for OpenCart 3.0 and 4.1?

The marketplace accepts `zip` or `ocmod` files. The buyer will install your archive via "[Extensions](https://opencartcode.com/en/wiki/glossary/e-commerce-glossary#extensions) → Installer", so the archive must pass this installer without manual copying. The requirements for the archive differ between the two branches, and this is the main reason for rejections. The packaging is described in detail in the article [how to build ocmod.zip with install.xml and install.json](https://opencartcode.com/en/wiki/dev-extensions/ocmod-zip). Here is only what is checked most often during moderation.

### OpenCart 3.0

- The file name must end with `.ocmod.zip`, otherwise the installer will reject it immediately due to the file type.
- The module files are located in the `upload/` folder inside the archive, and `install.xml` is added only if OCMOD is needed.
- You may write only to allowed directories: `admin/controller/extension/`, `admin/model/extension/`, `admin/language/`, `admin/view/template/extension/`, similar paths in `catalog/`, as well as `catalog/view/theme/`, `system/config/`, `system/library/`, `image/catalog/` and the JS/CSS folders. If the archive contains even one file outside this list, for example in `system/engine/` or in the site root, the installation will stop with an error that the directory is not allowed for writing. The list is the same in 3.0.4.1 and 3.0.5.1.

### OpenCart 4.1

- The archive name without `.ocmod.zip` becomes the extension code: `my_delivery.ocmod.zip` will be extracted to `extension/my_delivery/`. Therefore the file name must match the namespace and paths in your code.
- In the root of the archive, add `install.json` with the name, version, author and link: this data is shown in the list of installed extensions.
- The `admin/`, `catalog/` and `system/` folders are located directly in the root of the archive, without `upload/`. The contents of `image/` are copied to the images directory, `system/storage/` goes to storage, and files from `ocmod/` are not copied; they are handled by the modifications page.

Example

```json
{
    "name": "Моя доставка",
    "description": "Розрахунок вартості доставки за вагою",
    "version": "1.2.0",
    "author": "Your Studio",
    "link": "https://example.com/support"
}
```

If the module supports both branches, upload two separate archives or one zip with two nested `.ocmod.zip` and a short instruction on which one to take. How to organize the code for both versions is described in the article [about module compatibility with 3.0 and 4.1](https://opencartcode.com/en/wiki/dev-practice/opencart-module-compatibility-3-4).

Встановлення розширень: сюди покупець завантажує ваш архів .ocmod.zip · OpenCart 4.1.0.4

## How do you test the module before submitting?

The moderator has no access to your working store. They see only the archive and the description, so check everything the way a buyer would: on a clean installation without your edits and without developer mode.

1. Deploy clean OpenCart 3.0.4.1, 3.0.5.1 and 4.1.0.4, that is, all the releases you plan to list in the listing. Pay attention to PHP: 3.0.4.1 starts on PHP 7.3, while 3.0.5.1 and 4.1.0.4 require PHP 8.1.
2. Install the archive via "Installer", then click "Install" on the "Extensions → Extensions" page, selecting "Modules" in the type filter.
3. Open the settings form, save it, and check that the values remain after reloading the page.
4. Go through the scenario on the [storefront](https://opencartcode.com/en/wiki/glossary/e-commerce-glossary#storefront): place a test order if it is a payment or shipping module, or open the page where the module is displayed.
5. Uninstall the module ("Uninstall") and make sure the admin and storefront work, and that there are no new entries in the [error log](https://opencartcode.com/en/wiki/glossary/e-commerce-glossary#error-log). The article [about the error log in OpenCart](https://opencartcode.com/en/wiki/dev-practice/error-log-opencart) explains where to find these entries.
6. Install the module again. An error "table already exists" or duplicate event registration means install and uninstall need to be fixed; see [install and uninstall of a module](https://opencartcode.com/en/wiki/dev-extensions/install-opencart-module).

> Uninstalling a module in 4.1 does not remove user group access rights, while in 3.0 it does. Delete the module's tables and events in your own uninstall method. Settings rows by `code` are removed automatically by the core in 3.0 and 4.1.

Also review security separately, because it is the first thing reviewers look at in the code of paid modules. Check whether there is a permission check `modify` before saving, whether input is cast to a type or escaped, and whether raw data from external APIs is output into the [template](https://opencartcode.com/en/wiki/glossary/e-commerce-glossary#template). The list of typical vulnerabilities and how to close them is collected in the article [about module security](https://opencartcode.com/en/wiki/dev-practice/opencart-module-security).

## How do you fill in the module listing so it gets approved?

The listing is both a storefront and a technical specification. The minimum system requirements for submission for review are: at least one translation, a name, a description, and a price if the product is paid. But the moderator and the buyer read much more.

| Field | What to write | Common mistake |
| --- | --- | --- |
| Product type and category | Module, theme, bundle or package; the most precise category | Shipping module in the general "Other" category |
| OpenCart versions | Only the releases you actually tested on | All versions marked "just in case" |
| Description and features | What task the module solves and what exactly it changes in the store | A list of technologies instead of benefits |
| Installation instructions | Steps from downloading the archive to the first setup | "Installs as usual" |
| Requirements | PHP version, PHP extensions, third-party APIs and keys | Not stating that a shipping service API key is required |
| Theme compatibility | Themes on which you tested the storefront | Empty field in a module that changes the storefront appearance |
| Demo link and admin access | Demo store and a separate account with limited rights | The main admin account of a working site |

Only the default site language is mandatory; other translations can be added later. However, buyers with English- or Russian-language admin panels are more willing to buy when the description is in their language. The same applies to the module's own language files: if the archive contains only `en-gb`, write this in the listing. The difference between uploading translations in 3.0 and 4.1 is explained in the article [about module language files](https://opencartcode.com/en/wiki/dev-mvc/opencart-language-files).

Add images in JPEG, PNG or WebP format, up to 2 MB each. There are horizontal and square thumbnails. Screenshots of the module settings and the storefront result work best, rather than a full-frame logo. YouTube videos are added as a link.

## Which price and license options should you choose?

There are three pricing types: free, paid with one-time payment, and subscription (price per month and per year). For a paid product, you can set an initial price and a discount, as well as quantity discounts for those buying several licenses.

The license type determines how many sites the buyer can install the module on: one, several (then a limit is set), or unlimited. To tie a purchase to a specific store, enable "Require domain from buyer". If the buyer does not yet know the address at the time of purchase, for example if the store is still being developed, add "Allow specifying domain later".

Configure support separately: whether you provide it at all, how many days it is free after purchase, whether it is unlimited, and how much renewal costs per month or per year. There is also an option that allows downloading new versions without an active support subscription. Decide this in advance, because it determines who gets updates a year from now.

> Base the price on the scope of support, not only on code complexity. A module integrating with a third-party service that changes its API costs you time every year, and this should be factored into the price or into paid support renewal.

## How does moderation work and what to do after a rejection?

A marketplace product has several statuses, and each determines what you can do with it.

```mermaid
flowchart TD
    A["Чернетка"] --> B["На перевірці"]
    B --> C["Схвалено"]
    B --> D["Відхилено"]
    D -->|"виправити і подати повторно"| B
    C --> E["Приховано автором"]
    E --> C
    C --> F["Призупинено адміністрацією"]
```

- **Draft**: only you see the product; you can edit and delete it. You can submit it for review right when creating it or later with the button in the listing.
- **Under review**: the product is waiting for a moderator, and the administration receives a notification.
- **Approved**: the product appears in the catalog and search. You can temporarily remove it from sale with the activity switch, and then it becomes "Hidden".
- **Rejected**: the reason for rejection is visible in your dashboard. Fix the remarks and resubmit; the old reason is then cleared. You can delete only a draft or a rejected product.
- **Suspended**: the administration has withdrawn an already approved product, for example due to complaints. In this case, it is worth contacting support.

The reason for rejection is usually specific: the archive does not install, a file is outside the allowed 3.0 directories, 4.1 lacks `install.json`, the description does not match the functionality, or the demo access uses the main account. Fix exactly what is stated and check again on a clean store, not on the one where the module is already installed.

## How do you release updates for buyers?

Upload a new version in the product's versions section: the archive, the version number (up to 20 characters), and a changelog in at least one language. Without a changelog, the version will not be saved. The new file becomes the latest version, while previous ones remain in the history. You can set a separate price and an update price for those who bought earlier. If you check the notification box, buyers of the approved product will receive a message about the release.

A few rules that spare you a wave of tickets after an update:

- number versions sequentially, for example `1.2.0` → `1.2.1` for fixes and `1.3.0` for new features, and write the same number in `install.json`;
- make table structure changes as a migration in the module code, because the buyer will install the new version over the old one with live data;
- in the changelog, write which files were changed and whether after the update you need to click "Refresh" on the 3.0 modifications page or clear the cache;
- do not rename the extension code in 4.1 between versions, because an archive with a different name will install as a separate extension alongside the old one.

Supported, predictable code noticeably reduces the time needed for such releases. How to structure a module so it is easy to update is described in the article [about code style and module structure](https://opencartcode.com/en/wiki/dev-practice/opencart-coding-standards).

## Summary

The path to selling a module consists of several mandatory steps, and at each one you can lose time over small details:

- a seller application with correct details, and products become available only after verification;
- an archive that installs with the standard installer: `upload/` and allowed directories in 3.0, `install.json` and the correct file name in 4.1;
- testing on clean 3.0.4.1, 3.0.5.1 and 4.1.0.4 with a full cycle of install, uninstall and reinstall;
- a listing with an honest list of versions, requirements and instructions;
- a well-considered license, domain and support before the first sale;
- updates with a version number, changelog and data migration.

If the module is still in development, start with the archive and a test stand: this is the longest part. Other articles on module quality and debugging are collected in the section [debugging, performance and code quality](https://opencartcode.com/en/wiki/dev-practice).

## FAQ

**Can I sell a module that only works on OpenCart 4.1?**

Yes, you don't have to support both branches. The main thing is that the listing marks only the versions the module has actually been tested on, so the buyer doesn't purchase it for 3.0 by mistake.

**Is re-moderation required after uploading a new version?**

The new version is uploaded to the already approved product and does not return it to the "Under review" status. The author is responsible for the quality of the release, so test updates over the previous version.

**Can I publish a free module?**

Yes, the "free" pricing type doesn't require a price, and the remaining requirements for the archive and listing are the same. A free module often helps earn the first reviews and an audience for paid extensions.

**What should I do if the module includes a third-party library from Composer?**

In 4.1, put it in system/storage/ inside the archive; the installer will move it to the storage directory. In 3.0, libraries usually go in system/library/, since that is one of the allowed directories. Specify the third-party library's license in the description.
