Upgrade from 3.x to 4.x
Guide to upgrade from OpenCart 3.x to 4.x
Last updated
Guide to upgrade from OpenCart 3.x to 4.x
Before starting the upgrade process, please note:
Backup everything: Database and files
Test in staging environment first
Check extension compatibility with OpenCart 4
Review theme compatibility
Backup your store:
Database backup
File system backup
Extension configurations
Check compatibility:
Verify PHP version compatibility (PHP 8.0+ required)
Check if extensions support OpenCart 4
Review theme compatibility
Prepare for downtime:
Schedule upgrade during low-traffic periods
Inform customers about maintenance
Download OpenCart 4
Get the latest version from OpenCart website
Upload new files
Upload all files except:
/config.php
/admin/config.php
/images/ directory
/system/storage/ directory
Run upgrade script
Navigate to yourdomain.com/install
Follow the upgrade wizard
Update database
The upgrade script will automatically update your database schema
Some hosting providers offer extension-based upgrades through their control panels.
Clear cache:
Delete /system/storage/cache/ contents
Clear browser cache
Test functionality:
Test frontend and backend
Verify all extensions work
Check payment and shipping methods
Update extensions:
Install OpenCart 4 compatible versions
Configure settings as needed
Extension compatibility: Some extensions may not work with OpenCart 4
Theme issues: Custom themes may need updates
Database errors: Check error logs for any database-related issues
If you encounter issues during upgrade, visit the OpenCart forums for community support.
Last updated