Installing an opencart 3.x theme without being forced to create and modify admin files?
Posted: Tue Oct 10, 2017 8:28 am
Hello I have a fresh install of opencart 3.0.2.0 and am trying to install a new theme. In the new version of opencart you go to (admin>extensions>themes). After installing a theme you can then apply in in admin>settings. So I tried just duplicating the default theme folder and renaming it. In previous versions of OC you could do this. Now here's where things get crazy.
When you go to (admin>extensions>themes) the theme is nowhere to be found. So I searched and according to this thread (viewtopic.php?t=185921) you MUST CREATE YOUR OWN CONTROLLER FILE in /admin/controller/extension/theme/ and modify that controller file among others. After doing this you can at least install the theme so in can be selecting in admin>settings theme dropdown, however the theme still does not work.
Question:1
Is this intended? Do the developers really intend for the end users to add files to the admin area and modify them in order to be able to install a theme?
So after creating the files in the admin section I was able to at least install and select the theme. But now when I try visiting the store front I get the "Error: A theme has not been assigned to this store!" error. I also notice that when trying to change theme settings in extensions>extensions>theme>myTheme, like the status it also affects the default theme.
Question:2
Is it possible to install a theme without creating and modifying controller files in OC 3.x? If not does anyone know what I am missing when modifying the files? I assume the settings model needs no adjustments and I should be looking for something in the controller file I was forced to create.
I found a thread on github with another person asking this question and he was met by some rude person telling him that the answers were all over the internet and on the forums but I haven't found any solution. The closest Ive come is the post I linked to above.
Is nobody else having this issue? I feel like I'm taking crazy pills.
When you go to (admin>extensions>themes) the theme is nowhere to be found. So I searched and according to this thread (viewtopic.php?t=185921) you MUST CREATE YOUR OWN CONTROLLER FILE in /admin/controller/extension/theme/ and modify that controller file among others. After doing this you can at least install the theme so in can be selecting in admin>settings theme dropdown, however the theme still does not work.
Question:1
Is this intended? Do the developers really intend for the end users to add files to the admin area and modify them in order to be able to install a theme?
So after creating the files in the admin section I was able to at least install and select the theme. But now when I try visiting the store front I get the "Error: A theme has not been assigned to this store!" error. I also notice that when trying to change theme settings in extensions>extensions>theme>myTheme, like the status it also affects the default theme.
Question:2
Is it possible to install a theme without creating and modifying controller files in OC 3.x? If not does anyone know what I am missing when modifying the files? I assume the settings model needs no adjustments and I should be looking for something in the controller file I was forced to create.
I found a thread on github with another person asking this question and he was met by some rude person telling him that the answers were all over the internet and on the forums but I haven't found any solution. The closest Ive come is the post I linked to above.
Is nobody else having this issue? I feel like I'm taking crazy pills.