Page 1 of 1

Tutorial has.tpl my Version 3.0.3.6 has .twig .....

Posted: Fri Oct 23, 2020 2:26 pm
by Thom222
1) I have no idea and very little grey matter between the ears :choke:, so this is troublesome for me, I am watching a tutorial from 2013 about editing the code and he says to edit the header.tpl, I follow his folder route and get to header.twig... wotsgoingon was there a language dispute that someone else won, or am I looking for love in all the wrong places...

2) This is the vid (at the timestamp I am having trouble on, https://youtu.be/c3GZUcRhS2I?list=PLLjR ... erqc&t=423
In it the instructor/teacher/tutor places a folder in the themes folder to make any stylesheet mods in (apparently they override the default somehow) he then changes the header.tpl to accommodate the new folder, this is then supposed to be in the dropdown menu in the theme selection .... but of course for me, its not showing....wotsgoingon ......... yes I am new to coding :joker: please help

Re: Tutorial has.tpl my Version 3.0.3.6 has .twig .....

Posted: Fri Oct 23, 2020 3:59 pm
by JNeuhoff
This tutorial is for an older OpenCart 2.x version, not for 3.0.x.

You may find more useful docs here:

https://github.com/opencart/opencart/wiki
or
http://docs.opencart.com/en-gb/introduction/

Re: Tutorial has.tpl my Version 3.0.3.6 has .twig .....

Posted: Fri Oct 23, 2020 4:19 pm
by thekrotek
If you have very low tech skills you'd better ask someone to do everything for you.

Re: Tutorial has.tpl my Version 3.0.3.6 has .twig .....

Posted: Fri Oct 23, 2020 5:47 pm
by paulfeakins
thekrotek wrote:
Fri Oct 23, 2020 4:19 pm
If you have very low tech skills you'd better ask someone to do everything for you.
Yep would agree.

Re: Tutorial has.tpl my Version 3.0.3.6 has .twig .....

Posted: Sat Oct 24, 2020 6:01 am
by Thom222
I'll take the more positive answer, thanks JNeuhoff, I'll check out what you have given me....

Re: Tutorial has.tpl my Version 3.0.3.6 has .twig .....

Posted: Sat Oct 24, 2020 4:39 pm
by khnaz35
As JNeuhoff said
JNeuhoff wrote:
Fri Oct 23, 2020 3:59 pm
This tutorial is for an older OpenCart 2.x version, not for 3.0.x.
OC Version 3.X use .twig and before versions uses .tpl so the workaround .tpl wouldn't be helpful on .Twig

Re: Tutorial has.tpl my Version 3.0.3.6 has .twig .....

Posted: Sat Oct 24, 2020 5:32 pm
by JNeuhoff
Well, having said that, the documentation needs some updates, since OC 3.0.x now uses the twig rendering engine instead of PHP templates for the view part.

Twig is documented here: https://twig.symfony.com/doc/