OpenCart 3 : Last Accessed Selected

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

UPDATED: file restored, updated tags, its should work up to 3.0.3.8
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.

(more…)

OpenCart 3 : Maintenance Mode

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

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.

Background image will be displayed for both back-end and front-end if you put your site in Maintenance Mode, see the screenshot below:

(more…)

OpenCart : Percentage in Special and Discount

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

The mod allows you to use absolute value or % for OpenCart Special Price & Discount

  1. Any number < 1 is considered as a discount in %%, for ex: 0.15 means 15% OFF retail price. The ‘On Sale’ price will be correlated with retail price.
  2. Special or Discount is greater or equal 1 will be processed as an absolute value.
  3. The mod will change the priority for Special и Discount. Discount will have higher priority than Special price.

(more…)

Override Engine and OpenCart 3.0.3.6+

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

Since OpenCart 3.0.3.6 (3.0.3.5 ??)  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 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 );
Yandex.Metrica