OpenCart Core and Modules Update

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:
Development stages
Latest works
  • image_website-b2b-advance_0.png
    B2B ADVANCE company website development
    1212
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1161
  • image_websites_belfingroup_462_0.webp
    Website development for BELFINGROUP
    852
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1041
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    822
  • image_bitrix-bitrix-24-1c_fixper_448_0.png
    Website development for FIXPER company
    815

OpenCart Core and Modules Update

OpenCart uses modular architecture — core and extensions update differently. Core updates manually or via built-in mechanism, modules — via OpenCart Extension Installer.

Preparation for Update

# Backup files
tar czf /backups/opencart-$(date +%Y%m%d).tar.gz /var/www/shop.com

# Backup DB
mysqldump -u root opencart_db > /backups/opencart-db-$(date +%Y%m%d).sql

Update OpenCart Core

Via built-in mechanism (OpenCart 3.0.3+): Admin → Extensions → Installer → Updates tab.

Manually:

# Download new version
wget https://github.com/opencart/opencart/releases/download/4.x.x/opencart-4.x.x.zip
unzip opencart-4.x.x.zip

# Copy only core files (NOT overwriting config.php and modifications)
rsync -avz --exclude='config.php' \
    --exclude='admin/config.php' \
    --exclude='image/' \
    --exclude='system/storage/upload/' \
    opencart-4.x.x/upload/ \
    /var/www/shop.com/

# Run DB migration
php /var/www/shop.com/install/cli_install.php upgrade

Update via OpenCart Modification System (OCMOD)

OCMOD allows installing modifications without changing core files. On core update modifications reapply:

Admin → Extensions → Modifications → Refresh

Modifications stored separately — not overwritten on core update.

Update Paid Extensions

Admin → Extensions → Marketplace → Install
# Or manually via Extension Installer:
Admin → Extensions → Installer → Upload
# Select extension .zip file

After extension install:

Admin → Extensions → Modifications → Refresh (apply OCMOD)
Admin → Dashboard → clear cache

OpenCart 3 → OpenCart 4 Update

No direct upgrade — DB structure changed significantly. Recommended path:

  1. Install OpenCart 4 on new server
  2. Migrate content (products, categories, orders) via export/import
  3. Find OC4-compatible versions of all extensions
  4. Migrate custom templates (OC4 uses Twig instead of PHP templates)
-- Export products from OC3
SELECT p.product_id, pd.name, p.model, p.sku, p.price, p.quantity, p.status
FROM oc_product p
JOIN oc_product_description pd ON p.product_id = pd.product_id AND pd.language_id = 1
INTO OUTFILE '/tmp/products_export.csv'
FIELDS TERMINATED BY ',' ENCLOSED BY '"'
LINES TERMINATED BY '\n';

Check After Update

# PHP errors
tail -f /var/log/php/error.log

# Test cart and checkout
# Test payment gateway

# Clear all caches
# Admin → Dashboard → refresh icon
# Delete system/storage/cache/ if needed
rm -rf /var/www/shop.com/system/storage/cache/*

Timeframes

OpenCart update within one major version — 2–4 hours. OC3 to OC4 transition — 2–4 weeks.