If You want to find modules, which will be as compatible with the version of the online store, and also pay attention to the quality of the code, then we offer to view: twig manager, this solution was specifically designed for stores, working on the platform OpenCart, with the support of our company from every store that works on CMS Brocart.
When you download a free extension, we do not give 100% guarantee that it will work in your store, please be careful about the installation instructions!
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
- Install twig manager via extension installer
- Refresh modification cache
- 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 https://dreamvention.ee/support
Светлана – 27/10/2017 –
Здравствуйте! Не сразу поняла как скачать файл, потом получилось, все нормально работает, пока не проставила права на изменения в админке, то не видела файл (, надо бы инструкцию. Всем рекомендую!