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.
Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
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"MarcPinnell wrote: ↑Wed Jul 26, 2017 1:17 amI 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.
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
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
class ControllerExtensionThemeDefault extends Controller {
to:
class ControllerExtensionThemeYourTheme extends Controller {
Note the capitalisation of the theme name !
.
Google Product Feed - Get your products into Google Shopping. Includes a bulk update facility.
Backup Pro - Backup (on demand or scheduled), Restore and Clone your store.
Freestyle Box - Add multiple information boxes on multiple pages of your store. Includes optional "Code Mode".
View my other extensions
display_errors = 1
error_reporting = E_ALL
The problem is almost certainly the second line of the file admin/controller/extension/theme/MyTheme.php (see my previous post).
.
Google Product Feed - Get your products into Google Shopping. Includes a bulk update facility.
Backup Pro - Backup (on demand or scheduled), Restore and Clone your store.
Freestyle Box - Add multiple information boxes on multiple pages of your store. Includes optional "Code Mode".
View my other extensions
Do NOT operate these commands if running on a production network. This is strongly suggested to use in a development environment network or with virtual tools.justcurious wrote: ↑Tue Oct 03, 2017 3:19 pmTo turn on error reporting edit the file 'php.ini' and add the following lines (or uncomment them). Make sure also that error reporting is set to 'display' in your Opencart (Server) settings.
display_errors = 1
error_reporting = E_ALL
The problem is almost certainly the second line of the file admin/controller/extension/theme/MyTheme.php (see my previous post).
.
As for replacing the controller name, take note that the URLs as well as some possible key names inside the custom extension theme file may also need to be changed since they may work in an associative way.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I should also have made clear that I was replying directly to archaeopteryx who had indicated that he had created the controller file in question from a copy of an existing controller file and had already made the necessary changes to urls and relevant key names.
.
Google Product Feed - Get your products into Google Shopping. Includes a bulk update facility.
Backup Pro - Backup (on demand or scheduled), Restore and Clone your store.
Freestyle Box - Add multiple information boxes on multiple pages of your store. Includes optional "Code Mode".
View my other extensions
Edit your theme and you'll be able to choose a new theme in the Themes drop-down menu.
สูตรบาคาร่า