Post by seito » Wed Sep 27, 2017 9:14 pm

Hi,

I searched OC3.0 subforum for "tlp" keyword and found nothing, so this is perhaps a new thing...

I have a problem with a theme that uses *.tlp file type. When I upload it and then install through selecting new folder in Extension->Extension->Theme, nothing changes and I still see the default theme.

I tried to repeat the same process with a theme that uses new twig language and file type, and everything worked as expected.

If I convert one of the *.tlp files from the theme that doesn't get recognized into *.twig, OC recognizes and implements theme, but just that file.

Which made me think there is an issue with *.tlp support although it was stated that OC will continue to support it. I then looked through files and settings to perhaps find any related setting, and I found this file:

system->config->default.php

Which has on line 48 this code:

Code: Select all

$_['template_engine']      = 'twig';
That makes me think that this is the place one should perhaps switch/add support for the tlp engine? But there is no documentation anywhere and I couldn't find this in GUI Admin Store Settings (to perhaps get a drop down and I could see what my options are).

Any help would be much appreciated!

Thank you.

Newbie

Posts

Joined
Sat Mar 24, 2012 12:12 am

Post by Johnathan » Wed Sep 27, 2017 10:29 pm

OpenCart 3 no longer supports .tpl files. If your theme is using that, it's probably designed for OpenCart 2, and will not work with OpenCart 3. You'll need to contact its author and ask them for a version compatible with OpenCart 3.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by Qphoria » Wed Feb 09, 2022 2:42 am

Just to clarify this a bit. Twig is technically optional. All of my mods continue to use the *.tpl extension in 2.x and 3.x mods for easier maintenance and compatibility.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by by mona » Wed Feb 09, 2022 4:17 am

:ponder:

hello :) - How lovely to see you here
Happy New Year

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by thekrotek » Wed Feb 09, 2022 5:47 am

Qphoria wrote:
Wed Feb 09, 2022 2:42 am
Just to clarify this a bit. Twig is technically optional. All of my mods continue to use the *.tpl extension in 2.x and 3.x mods for easier maintenance and compatibility.
Same for my extensions, but I have to add a function with TPL processing to my every extension and call it instead of default load->view(). The code is short, but without it you will have to use another extension like Template Switcher. OpenCart 3 indeed still has TPL support, but it doesn't allow you to choose the template engine.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by JNeuhoff » Wed Feb 09, 2022 9:15 pm

You can try our Template Switcher extension which will allow for the usage of *.tpl files in OpenCart 3.0.2.0 or later.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am

Who is online

Users browsing this forum: Google [Bot] and 25 guests