Post by SoccerGuy3 » Wed Jul 19, 2017 6:42 am

New to OpenCart, but surely this isn't that hard... I want to make some simple changes to the default theme. I created a new directory at catalog >> view >> theme called "newtheme". Created image, stylesheet and template directories inside that. When I go into the admin at System >> Settings >> select my store I only see the default theme there for selection under Themes. There isn't really any info on this on the web yet (since 3.0 is so new I guess). Help!

Newbie

Posts

Joined
Wed Jul 19, 2017 6:35 am

Post by cyclops12 » Thu Jul 20, 2017 1:42 am

Try going into extensions/extensions and choose Themes from the dropdown
Edit your theme and you should be able to select your new theme in the Theme Directory dropdown

Active Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by MarcPinnell » Wed Jul 26, 2017 1:17 am

I had to change usernames as my other user can't reply for some reason...

Anyway, I can see the newtheme under extensions >> Themes >> edit >> Theme Directory

However, if I go to System >> Settings >> "Store" Edit >> General, it shows the default theme and only the default theme under the drop in the Theme section. The preview is the default theme as well.

The public side of the store is showing the "newtheme" design. This doesn't make any sense.

Newbie

Posts

Joined
Wed Jul 26, 2017 1:12 am

Post by labeshops » Wed Jul 26, 2017 3:22 am

There are a lot of things it seems where "enabling" does not stick. Themes are one of them for me.

Running Opencart v2.2 with multi-stores from http://www.labeshops.com which has links to all my stores.

Image


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by cyclops12 » Mon Jul 31, 2017 2:44 am

MarcPinnell wrote:
Wed Jul 26, 2017 1:17 am
I had to change usernames as my other user can't reply for some reason...

Anyway, I can see the newtheme under extensions >> Themes >> edit >> Theme Directory

However, if I go to System >> Settings >> "Store" Edit >> General, it shows the default theme and only the default theme under the drop in the Theme section. The preview is the default theme as well.

The public side of the store is showing the "newtheme" design. This doesn't make any sense.
Yes if you look at the code for the settings page it is not coded to show what actual theme you have installed.....only the text "Default Store Theme"

Active Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by BigSoft » Thu Aug 31, 2017 7:38 pm

To install or make installable a new theme THEMENAME for Opencart 3 (may not be the complete intention of developers but it just worked for me - i hope i recall all the steps):

1. Copy all the files to catalog/view/theme/THEMENAME
2. Create the files
./admin/language/en-gb/extension/theme/THEMENAME.php (other languages too if needed)
./admin/view/template/extension/theme/THEMENAME.twig
./admin/controller/extension/theme/THEMENAME.php
as the respective default theme files and replacing theme_default with theme_THEMENAME, heading title on language files etc
3. You can now go to Extensions- Extensions Filter Themes and see your new Theme. Enable, choose the directory you uploaded at in step 1 and set all the parameters necessary and save
4. You can now go to System Settings edit your store(s) and select the NEWTHEME

You should now be seeing your new theme (assuming client/server caches are set to renew)

Hope it helps

Bigsoft.Gr - Greece Europe based Worldwide Opencart Development


Newbie

Posts

Joined
Fri Feb 13, 2015 6:23 pm

Post by jon.mosier@mac.com » Wed Sep 13, 2017 12:35 am

Thank you for your post. It has helped me get a bit further.

I simply duplicated the Default theme and tried to change everything to jon instead of default (...public_html/catalog/view/theme/jon/). After applying the steps from your post, I'm able to select the theme in the admin now, but get the following error when I try to apply it to my store.

Fatal error: Uncaught Error: Class 'Controllerextensionthemejon' not found in .../storage/modification/system/engine/action.php:71 Stack trace: #0 .../storage/modification/system/engine/loader.php(48): Action->execute(Object(Registry), Array) #1 .../public_html/admin/controller/extension/extension/theme.php(44): Loader->controller('extension/theme...') #2 .../storage/modification/system/engine/action.php(79): ControllerExtensionExtensionTheme->uninstall() #3 .../public_html/admin/controller/startup/router.php(26): Action->execute(Object(Registry), Array) #4 .../storage/modification/system/engine/action.php(79): ControllerStartupRouter->index() #5 .../public_html/system/engine/router.php(67): Action->execute(Object(Registry)) #6 .../public_html/system/engine/router.php(56): Router->execute(Object(Action)) #7 /v in .../storage/modification/system/engine/action.php on line 71

Any ideas would be greatly appreciated.

Thanks,
Jon

User avatar

Posts

Joined
Fri Oct 04, 2013 9:27 pm
Who is online

Users browsing this forum: No registered users and 12 guests