Post by leajen_croft » Tue Mar 08, 2016 11:54 pm

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 :)

Newbie

Posts

Joined
Tue Mar 08, 2016 11:48 pm

Post by artcore » Wed Mar 09, 2016 12:42 am

Had this issue as well in an early beta of 2.2, guess no-one ever found it until now :D
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

Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands

Post by viethemes » Wed Mar 09, 2016 12:52 am

Did you see any error log in admin > System > Tool > Error Logs?

http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension

Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme

Extra Positions PRO, Custom JavaScript, Custom CSS and others


User avatar
Active Member

Posts

Joined
Thu Jan 08, 2015 12:17 pm


Post by EvolveWebHosting » Wed Mar 09, 2016 1:29 am

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.

Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhosting.com


User avatar
Active Member

Posts

Joined
Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA

Post by leajen_croft » Wed Mar 09, 2016 5:11 pm

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

Newbie

Posts

Joined
Tue Mar 08, 2016 11:48 pm

Post by dlevesque » Sat Mar 12, 2016 10:45 am

You have to change the theme directory (Extensions -> Themes -> Edit your theme -> General -> Theme Directory).

Newbie

Posts

Joined
Sat Mar 12, 2016 10:38 am

Post by tom327 » Mon Mar 14, 2016 2:30 pm

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?

Active Member

Posts

Joined
Thu Feb 16, 2012 7:33 am

Post by tom327 » Tue Mar 15, 2016 2:17 am

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.

Active Member

Posts

Joined
Thu Feb 16, 2012 7:33 am

Post by artcore » Tue Mar 15, 2016 2:44 am

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.

Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands

Post by tom327 » Tue Mar 15, 2016 3:09 am

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

Active Member

Posts

Joined
Thu Feb 16, 2012 7:33 am
Who is online

Users browsing this forum: No registered users and 41 guests