Post by eisteddfod_37 » Sun Jul 29, 2018 6:38 am

Hi there,

I wonder if someone can help.

I've installed a theme, all working fine. Added multisite and looking to use slightly different stylesheets for each store (i.e. different colours).

So basics so far, copied the "Default theme" renamed the folder I've then created and edited the below files with the folder name.

Code: Select all

admin/controller/extension/theme/theme_default.php
admin/language/en-gb/extension/theme/theme_default.php
admin/view/template/extension/theme/theme_default.tpl
I've also changed all the bits inside like this

Code: Select all

class ControllerExtensionThemeThemeDefault extends Controller {

Code: Select all

class ControllerExtensionhad_copy extends Controller {
Visited extensions/extensions and tried to install. However, I'm getting the following error.

Code: Select all

Fatal error: Class 'Controllerextensionthemehadcopy' not found in /system/storage/modification/system/engine/action.php on line 43
OC version 2.3.0.1.

Any help, greatly appreciated.

Thanks

Andy

New member

Posts

Joined
Fri Jul 27, 2018 12:07 am

Post by OSWorX » Sun Jul 29, 2018 4:47 pm

As the message tells you, the controller cannot be found.
Because this

Code: Select all

class ControllerExtensionhad_copy extends Controller {
should be

Code: Select all

class ControllerExtensionhadcopy extends Controller {
or

Code: Select all

class ControllerExtensionHadCopy extends Controller {

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by straightlight » Sun Jul 29, 2018 7:04 pm

class ControllerExtensionhadcopy extends Controller {
With the exception of some Windows IIS versions or virtual servers out there, the lowercase 'h' of the term 'had' would also be incorrect with other OSes in this case since the OC Engine would still want to track a capital H.

However, there is also an undemonstrated example that could be used since there are absolutely no obligations to use underscores on a lowercased filename (more easy to read though):

Code: Select all

class ControllerExtensionHadcopy extends Controller {

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 8 guests