OpenCart : store time_zone

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

To Whom … is West of UTC (UTC-XX)

  • Unable to log-in as the admin
  • API (for ex: update order status) calls are not working

All of the above, it will call framework.php

// Database 
if ($config->get('db_autostart')) { 
// Sync PHP and DB time zones 
  $db->query("SET time_zone = '" . $db->escape(date('P')) . "'"); 

with time_zone from /system/config/default.php

// Date
$_['date_timezone'        = 'UTC'

OpenCart 3 : Last Accessed Selected

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)

UPDATED: file restored, updated tags, its should work up to
Working with the products, customers, ¬†orders, etc. lists it could be a problem to figure out which one you’ve just viewed or edited. For the most of lists (templates: *_list.twig, the item will be highlighted, after returning back by pressing Cancel or Save.


Override Engine and OpenCart

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

Since OpenCart ( ??)  the Twig has been moved to another location, and OverrideEngine stopped working. Unfortunately, there is no newer version from the author.

So, find the code (line 792, version for OpenCart

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

and replace with:

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