To install an OpenCartA free open-source CMS for online stores, written in PHP with a MySQL/MariaDB database. Everything that is not part of the core is added through extensions. More in the glossary → module, upload the .ocmod.zip archive in ExtensionsAdditional functionality: a module, a payment or shipping method, a feed, or a theme. They are managed in "Extensions → Extensions." More in the glossary → → Installer. Then find the module in the extension list of the required type, click Install, open its settings and enable it. In OpenCart 3.0, after uploading, you must always refresh the modifications. In OpenCart 4.1 the archive is structured differently and has a separate package installation step. Below we cover both versions, typical mistakes, and what to do when a module is installed but doesn't work.
Examples are for OpenCart 4.1; in 4.0.x, model triggers and event handling differ.
What should you prepare before installing a module?
Most module problems arise before you even click "Upload": the archive is for the wrong version, there is no backup, or something already on the site changes the same files. A few minutes of preparation saves hours of recovery.
- Version compatibility. A module for 3.0 won't work on 4.1, and vice versa. These branches have different directory structures and different code. The version number is visible at the bottom of the admin. Make sure the module description specifies your exact release, as well as a supported PHP versionThe language version on the hosting. 3.0.4.1 requires at least PHP 7.3, while 3.0.5.1 and 4.1.0.4 require at least PHP 8.1; check extension compatibility before updating. More in the glossary →.
- Backup. Before installing, make a copy of the files and the database. How to set this up regularly, not just "before a risky action," is described in the article about backing up an OpenCart store.
- Test copy. For modules that change the cart, checkout or payment, it is better to install them on a copy of the site (a subdomain or a local server) first. On a live store, a broken checkout means lost orders.
- Archive source. Get the module only from the developer or a marketplace. A "free" copy from a forum is most often a source of backdoors and viral code.
- Documentation. Read the module's instructions. Some extensions require a separate step: a license key, a cron job, or a setting in the service's personal account.
If you are still choosing an extension, first go through the checklist for choosing a module without surprises. Rejecting an unsuitable module before installation is far cheaper than after.
How is a module archive structured in 3.0 and 4.1?
Before uploading the archive, it's worth looking inside: this immediately shows whether it's really a package for your version. The installer extension is .ocmod.zip, but the contents differ between versions.
| What | OpenCart 3.0 | OpenCart 4.1 |
|---|---|---|
| Module files | In the upload/ folder, which is copied into the site root | At the root of the archive: admin/, catalog/, system/ |
| Package description | install.xml (OCMOD modification, optional) | install.json (name, version, author) |
| Where files end up | In standard core directories, for example admin/ | In a separate extension/ folder |
| Meaning of the archive name | Only the ending .ocmod.zip matters | The module code and folder name are taken from the file name |
Typical archive structure for OpenCart 4.1:
my_module.ocmod.zip
├── install.json
├── admin/controller/module/my_module.php
├── admin/language/en-gb/module/my_module.php
├── admin/view/template/module/my_module.twig
└── catalog/controller/module/my_module.php
# після встановлення файли опиняються тут:
extension/my_module/admin/controller/module/my_module.php
For more about the internal structure of the package, if you are assembling it yourself, see the article about packaging ocmod.zip with install.xml and install.json.
How do you install a module in OpenCart 3.0?
In OpenCart 3.0, installation consists of three stages: uploading the files, refreshing the modifications, and activating the extension itself. The skipped middle step is the most common reason for complaints like "the module installed, but nothing changed."
Step 1. Uploading the archive
- Open Extensions → Installer.
- Click "Upload" and select the
.ocmod.zipfile. - Wait until the progress indicator reaches the end, and a success message appears at the bottom. The module will appear in the installation history.
The 3.0 installer allows files to be written only to certain directories: extensions, language files, themes, system/library and a few others. If the module writes somewhere else, you will see an error about a forbidden directory. Then switch to manual installation, described below.
Step 2. Refreshing modifications
If the archive contained install.xml, it is an OCMOD modification. It changes core files "on the fly" rather than overwriting them. The changes will take effect only after the modification cache is refreshed.

- Go to Extensions → Modifications.
- Make sure the new modification is in the list and enabled.
- Click "Refresh" (the blue button with a circular arrow).
- Open the modifications log tab and check that there are no "NOT FOUND" lines.
Step 3. Activating the module
- Open Extensions → Extensions and, in the type filter, select the required one: "Modules," "Payment," "Shipping," etc.
- Next to the module name, click the green "Install" button. At this moment the module creates its tables, and permissions for it are added to the current administrator's group.
- Click "Edit" (the pencil), fill in the settings, set the status to "Enabled," and click "Save."
How do you install a module in OpenCart 4.1?
In OpenCart 4.1, uploading and extraction are separate. The archive is first simply placed on the server, and installation is a separate action. This makes it easier to manage several versions of the package, but this step is easy to miss.

- Open Extensions → Installer.
- Click "Upload" and select the
.ocmod.zipfile. The package will appear in the list below, not yet installed. - In the package's row, click the green "Install" button. The files are now extracted into
extension/.{код_модуля}/ - If the package contains a modification, go to Extensions → Modifications and click "Refresh." Most modern modules for 4.1 work through events, so this step is not always required. But it won't hurt.
- Open Extensions → Extensions, select the type, click "Install" next to the module, then "Edit." Set the options, enable the status and save.

During installation, a module for 4.1 typically registers its events — points where it intervenes in the store's operation without changing core files. They can be seen in Extensions → Events. If the module is enabled but nothing changed on the storefrontWhat the customer sees: the home page, categories, product page, and cart. More in the glossary →, check whether its events are in the list and whether they are active. How this works is explained in the article about the OpenCart event system.
The module is installed but doesn't work: what should you check?
This situation is typical for both versions. Go from simple to complex, since in most cases the cause is mundane.
- The module is not enabled or not added to a layout. Block modules (banners, "Featured," etc.) are shown only where they were placed. Check Design → Layouts: the module must be in the correct position on the correct layout.
- Modifications not refreshed. In OpenCart 3.0, this is the number one cause. Click "Refresh" in Extensions → Modifications again.
- Theme cache. On the Dashboard, click the gear button in the upper right corner and clear the theme cache. After template changes, the storefront may otherwise show an old version.
- No access rights. The message "You do not have permission" means the module has not been granted to your group. Open System → Users → User Groups and tick the access and modify boxes for the module. How this check works in code is explained in the article about module access rights.
- PHP errors. Open System → Maintenance → Error Logs. Lines with the module's file name will immediately show where the problem is. How to read these entries is covered in the article about the OpenCart error log.
- Conflict with another modification. Two modules change the same piece of code, and only one is applied. For 3.0 there is a separate guide: why an OCMOD modification was not applied.
If after installation the site or admin shows a white screen or a 500 error, don't panic and don't delete everything. In OpenCart 3.0, first disable the modification you just added and click "Refresh" again. If the admin is unavailable, the diagnostics in the article about the white screen and 500 error will help.
What to do if the archive can't be installed through the installer?
Sometimes the installer refuses: the file is too large for the hosting settings, the module writes to a disallowed directory, or the developer supplies just a folder of files without .ocmod.zip. Then the module is installed manually via FTP or the hosting file manager.
- OpenCart 3.0: copy the contents of the
upload/folder from the archive into the site root, preserving the directory structure. If the archive containsinstall.xml, pack it into anназва.ocmod.ziparchive and upload it through the installer. Theupload/folder in such an archive may be empty or missing altogether. In OpenCart 3.0, the installer accepts only.ocmod.ziparchives. Another option is to add the modification using a third-party OCMOD editor. Then refresh the modifications and activate the module as described above. - OpenCart 4.1: manual extraction into
extension/is not recommended, because the installer keeps track of the package files. It is better to raise the upload limit on the hosting (PHP parametersupload_max_filesizeandpost_max_size) or place the archive in themarketplace/directory inside the storage directory (constantDIR_STORAGEinconfig.php). By default this issystem/. After that, the package will appear in the installer list, and you can install it with the button.storage/ marketplace/ - After manual copying, check file permissions: usually 644 for files and 755 for folders. Otherwise the server may not be able to read the new code.
The admin directory on many stores has been renamed for security reasons. During manual copying, put the files from the admin folder of the archive into your renamed directory. Other protection settings are discussed in the OpenCart security checklist.
If in 3.0 you need to quickly review or fix modification XML right in the admin, without FTP, OCT OCMOD Editor may help. But for most installations, the standard tools are sufficient.
Summary
- Before installing, check compatibility with your version and make a backup. Try payment and checkout modules on a test copy first.
- OpenCart 3.0: upload in the installer → Extensions → Modifications → "Refresh" → Extensions → Extensions → "Install" → "Edit" → enable.
- OpenCart 4.1: upload → "Install" next to the package in the installer → refresh modifications if needed → Extensions → Extensions → "Install" → "Edit" → enable. Do not rename the archive.
- If the module doesn't work, check the status, layouts, theme cache, user group rights and the error logThe error.log file, visible in "System → Maintenance → Error Logs." The first place to look when something breaks. More in the glossary →, in exactly that order.
Next, it is worth learning how to update and remove modules without leftovers and what to do when two extensions conflict. All these materials are collected in the section OpenCart Modules and Extensions.