How do I add a custom information page to my Opencart 3 template?
All I want is another layout, identical to the information/information layout, except I want it to load some different script and CSS and have some script in the body.
I have tried duplicating information.twig and information.php controller and adjusting the variables accordingly, and added the body script. I have then created a new layout in OC and applied it to my custom page, only it behaves as if I've changed nothing. If I hardcode text to the twig file, nothing happens.
I can't find a definitive guide on how to do this in Opencart 3 (well there is one but it doesn't work).
Thanks,
Joe
hello world
). Created a custom.php controller (ans set the view to information/custom). Added a new layout in the admin and called it Custom and set its route to information/custom. Added a new information page and set the design to Custom. Nothing happens, it just behaves like an information page; no hello world. I even added a custom.php language file, loaded it in the controller, set a variable and tried to get the twig to call that up. Again, nothing. – The Joff Feb 10 '18 at 20:02