Override Engine and OpenCart 3.0.3.6

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

In OpenCart 3.0.3.6 (since 3.0.3.5 ??)  the Twig was moved to another location, and, OverrideEngine stopped working. Unfortunately, there is no any newer version from author.

Find the code (line 792, version for OpenCart 3.0.3.3):

include_once(DIR_SYSTEM . 'library/template/Twig/Autoloader.php');
Twig_Autoloader::register();
$loader = new \Twig_Loader_Filesystem(DIR_TEMPLATE);		
$config = array('autoescape' => false, 'cache'=>false);

and replace with:

$loader = new \Twig\Loader\FilesystemLoader();
$loader->addPath(DIR_TEMPLATE);
$config = array( 'autoescape'  => false, 'cache'	=> false, 'debug' => false, 'auto_reload' => true );

OpenCart: Maintenance Mode

Unfortunately, being logged-in as Administrator you can forget, that Maintenance Mode is ON and the website is not accessible for the users until your decided to check it from another computer or device and figured out that you had a problem… for a long time. [...]

Yandex.Metrica