Page 1 of 1
Adding new custom theme
Posted: Tue Mar 08, 2016 11:54 pm
by leajen_croft
Hi all
I'm new to opencart and have recently built a site in Version 2.1.0.2 which I create a custom theme for in the catalog\view\theme which all worked fine and I was able to enable it from the backend in settings.
I have upgraded to Version 2.2.0.0 today and I can no longer set a different theme then the defualt one, no other themes are being displayed.
Lucky I have done this on a local staging version of the site so no issue to the live site but I would like to know where I have gone wrong as I can't see any bug reports about this issue in the bug reports section.
Any advice would be helpful

Re: Adding new custom theme
Posted: Wed Mar 09, 2016 12:42 am
by artcore
Had this issue as well in an early beta of 2.2, guess no-one ever found it until now
I changed the db
settings table to force the custom theme. I believe it's called config_theme, rename it in the db to your custom theme name
Re: Adding new custom theme
Posted: Wed Mar 09, 2016 12:52 am
by viethemes
Did you see any error log in admin > System > Tool > Error Logs?
Re: Adding new custom theme
Posted: Wed Mar 09, 2016 1:29 am
by EvolveWebHosting
leajen_croft wrote:Hi all
I'm new to opencart and have recently built a site in Version 2.1.0.2 which I create a custom theme for in the catalog\view\theme which all worked fine and I was able to enable it from the backend in settings.
I have upgraded to Version 2.2.0.0 today and I can no longer set a different theme then the defualt one, no other themes are being displayed.
Lucky I have done this on a local staging version of the site so no issue to the live site but I would like to know where I have gone wrong as I can't see any bug reports about this issue in the bug reports section.
Any advice would be helpful

Was your theme updated and uploaded to the proper location? There are a lot of changes in 2.2 so it's not a straightforward move.
Re: Adding new custom theme
Posted: Wed Mar 09, 2016 5:11 pm
by leajen_croft
EvolveWebHosting wrote:leajen_croft wrote:Hi all
I'm new to opencart and have recently built a site in Version 2.1.0.2 which I create a custom theme for in the catalog\view\theme which all worked fine and I was able to enable it from the backend in settings.
I have upgraded to Version 2.2.0.0 today and I can no longer set a different theme then the defualt one, no other themes are being displayed.
Lucky I have done this on a local staging version of the site so no issue to the live site but I would like to know where I have gone wrong as I can't see any bug reports about this issue in the bug reports section.
Any advice would be helpful

Was your theme updated and uploaded to the proper location? There are a lot of changes in 2.2 so it's not a straightforward move.
Uploaded to the same location as it was before the upload so catalog\view\theme
Re: Adding new custom theme
Posted: Sat Mar 12, 2016 10:45 am
by dlevesque
You have to change the theme directory (Extensions -> Themes -> Edit your theme -> General -> Theme Directory).
Re: Adding new custom theme
Posted: Mon Mar 14, 2016 2:30 pm
by tom327
Thanks for the information dlevesque.
I was having same issue using the latest OpenCart 2.2. I added my own custom theme as I had done using Opencart 1.5 versions. But when I went to Settings the only theme available was the Default theme.
I tried your suggestion to go to the Extension -> Themes. And I saw that you can select your theme directory there, and I did that. Though the popup info for that field says it is for maintain compatibly with old theme with new theme system? I
Now, when I went back to Settings page, the default theme was still the only theme available on drop down list. So it was still set to default - the only option.
But, my store was now using the custom theme. But, I'm concerned if this is just a temporary work around?
And, this seems to be a bit confusing situaiont that they made for such a fundamental thing like enabling a custom theme. Is this a bug in 2.2.? Should I use the previous version instead?
Re: Adding new custom theme
Posted: Tue Mar 15, 2016 2:17 am
by tom327
I tried artcore's advice to modify the database. I found the correct field, and replaced "theme_default" with the name of my custom theme, but this did not work for me.
I tried to find some information about the new Theme Extension, but could not find any. It almost seems like that the Theme extension is supposed to Replace the place in Store Settings that allows you to pick the theme, but the work is not totally complete?
For example, the ability to set your image sizes has also been removed from Store Settings, and is now in the Themes Extension.
I'm frustrated that such a fundamental feature of OpenCart, the ability to add and select your own theme is not working or has been changed in a significant way. There is no new information if this is a bug, or if it is a change in how custom themes are added.
At the moment, I have solved problem by using the Themes Extension which allows you to select your theme directory. I picked my custom theme folder, and my initial test shows it is in fact using my custom templates I modified. But, is this actually the new way to select a custom theme, or just a work around? Either way, back in Store Settings, the Default theme is the only theme available on drop down menu that lets you select your theme.
Re: Adding new custom theme
Posted: Tue Mar 15, 2016 2:44 am
by artcore
Did you prefix the folder with theme_
My experience is from an earlier alpha or beta but I just remembered the prefix after reading your post.
Re: Adding new custom theme
Posted: Tue Mar 15, 2016 3:09 am
by tom327
OK. I will try that as well.
Also, I found a relate thread on this topic:
http://forum.opencart.com/viewtopic.php?f=181&t=158958