Skip to content

Modified Opencart 2.3.0.x. This version work on PHP 7.4, 8.0, 8.1, 8.2, 8.3. Ocmod extensions should be adapted to work with this version.

Notifications You must be signed in to change notification settings

IP-CAM/Opencart-v.2.3.0.3-modified-PHP-7.4-8.0-8.1-8.2-8.3

 
 

Repository files navigation

OpenCart

Overview

OpenCart is a free open source ecommerce platform for online merchants. OpenCart provides a professional and reliable foundation from which to build a successful online store.

Minimum PHP Version Lint

Informations

Added

  • Bug fixes found on opencart forum and github
  • Currency module from 3.0.x.x
  • Timezone from Master Branch - 3.1.0.0b
  • Vendor folder for some payments
  • Filter on Zone List - 4.0.0.0_b
  • Filter on Country List - 4.0.0.0_b
  • No FTP on Ocmod Installer
  • Admin SEO URL like in Opencart 3.0.x.x
  • Paypal Checkout Integration

Updates

  • Bootstrap 3.4.1
  • jQuery 3.7.1
  • Summernote v0.8.20

Removed

  • OpenBay
  • Deprecated Klarna Payment
  • FTP settings from admin

Features

Compatibility

  • PHP 7.4.0 and above

Language patch for non English

Currency module & Timezone

  • Edit admin/language/your_language/setting.php and add this values:

$['entry_timezone'] = 'Time Zone';
$
['entry_currency_engine'] = 'Currency Rate Engine';

  • Copy currency.php from admin/language/en-gb/extension/extension in the same location of your language.
  • Copy currency folder from admin/language/en-gb/extension/ in the same location of your language.

Multilanguage Summernote

  • Edit admin/language/your_language/xx-yy.php and add this value:

$_['summernote'] = 'xx-YY';

Patching standard version of Opencart 2.3.0.2

After you have replaced this version with your standard version run your-store-url/install

Make changes in both config files

Admin config

Replace old structure

// DIR
define('DIR_APPLICATION', '/your_path/admin/');
define('DIR_SYSTEM', '/your_path/system/');
define('DIR_LANGUAGE', '/your_path/admin/language/');
define('DIR_TEMPLATE', '/your_path/admin/view/template/');
define('DIR_CONFIG', '/your_path/system/config/');
define('DIR_IMAGE', '/your_path/image/');
define('DIR_CACHE', '/your_path/system/storage/cache/');
define('DIR_DOWNLOAD', '/your_path/system/storage/download/');
define('DIR_LOGS', '/your_path/system/storage/logs/');
define('DIR_MODIFICATION', '/your_path/system/storage/modification/');
define('DIR_UPLOAD', '/your_path/system/storage/upload/');
define('DIR_CATALOG', '/your_path/catalog/');

With the new one

// DIR
define('DIR_APPLICATION', '/your_path/admin/');
define('DIR_SYSTEM', '/your_path/system/');
define('DIR_IMAGE', '/your_path/image/');
define('DIR_STORAGE', DIR_SYSTEM . 'storage/');
define('DIR_CATALOG', '/your_path/catalog/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/template/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');

Catalog config

Replace old structure

// DIR
define('DIR_APPLICATION', '/your_path/catalog/');
define('DIR_SYSTEM', '/your_path/system/');
define('DIR_LANGUAGE', '/your_path/catalog/language/');
define('DIR_TEMPLATE', '/your_path/catalog/view/theme/');
define('DIR_CONFIG', '/your_path/system/config/');
define('DIR_IMAGE', '/your_path/image/');
define('DIR_CACHE', '/your_path/system/storage/cache/');
define('DIR_DOWNLOAD', '/your_path/system/storage/download/');
define('DIR_LOGS', '/your_path/system/storage/logs/');
define('DIR_MODIFICATION', '/your_path/system/storage/modification/');
define('DIR_UPLOAD', '/your_path/system/storage/upload/');

With the new one

// DIR
define('DIR_APPLICATION', '/your_path/catalog/');
define('DIR_SYSTEM', '/your_path/system/');
define('DIR_IMAGE', '/your_path/image/');
define('DIR_STORAGE', DIR_SYSTEM . 'storage/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/theme/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');

Ocmod Compatibility

Ocmod extensions should be adapted to work with this version.

Old array was changed to new modern array
From:

array ();

To:

[]

Backward escaped quotes was added in MySQL commands:
From:

INSERT INTO " . DB_PREFIX . "category

To:

INSERT INTO `" . DB_PREFIX . "category`

How to enable DB session.

1.Go to system->config and edit catalog.php. After this line:

$_['session_autostart'] = false;

add these lines:

$_['session_engine']    = 'db';
$_['session_name']      = 'OCSESSID';

2.Go to system->config and edit default.php. Rename this line:

$_['session_name']         = 'PHPSESSID';

in to

$_['session_name']         = 'OCSESSID';

then add this line after OCSESSID line

$_['session_engine']       = 'db';

3.Go to system and make back-up to framework.php, then rename framework_db.php to framework.php

4.Go to system->library and make back-up to session.php, then rename session_db.php to session.php

About

Modified Opencart 2.3.0.x. This version work on PHP 7.4, 8.0, 8.1, 8.2, 8.3. Ocmod extensions should be adapted to work with this version.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 53.5%
  • Smarty 30.8%
  • JavaScript 11.0%
  • SCSS 2.0%
  • HTML 1.6%
  • CSS 1.1%