Twig Manager (add .twig support for your Opencart 2.x)

Twig Manager (add .twig support for your Opencart 2.x)

Twig is a powerful theme engine and is implemented in Opencart v3.x This means you have to create two different extensions to work on OC2.x and OC3.x or do you? We have created Twig manager so that you could develop your extensions in twig and then port them to OC2.x. Focus on development, not compatibility.

How it works

  1. Install twig manager via extension installer
  2. Refresh modification cache
  3. Now you can develop your view files in .twig


Q. How is the twig support implemented?
A. There is a small ocmod file that adds 2 lines of code to your system/engine/loader.php file. It checks if there is a twig file available for the rout and passes that file through the twig compiler. If it doesn't find a twig file, it falls back to .tpl.

Q. When I uninstalled twig manager, it broke my site. I see a 500 error!
A. Just clear the modification cache via FTP at system/storage/modification - delete all files. This happens when you delete the code but not the modification. In the latest versions, we added a check to avoid this error, in case such a delete happens.

Q. Can I use this in my development and sell my extensions with this module?
A. Absolutely. You are free to use this extension as you please. You can create and sell extensions using twig manager.

Q. Is support included?
A. Yes, We always help our users. Visit

  • Developed by OpenCart Partner
  • Documentation Included



Last Update
7 Sep 2021

12 Feb 2017
Member since: 16 Jan 2012

View all extensions Get Support