Post by Rytis » Tue Aug 04, 2009 2:29 am

Hello,
for some reasons I want to make custom page. But it won't work me. I create files in catalog/view, language, controller, but it drops

Code: Select all

Fatal error: Class 'Controllercommonsutikimas' not found in /var/www/sex/system/engine/front.php on line 39
What I am doing wrong?

Newbie

Posts

Joined
Sat Jul 25, 2009 1:12 am

Post by npws » Mon Aug 10, 2009 10:20 pm

I am having this issue, as well.

These are the steps I took to create a new custom page, similar to the "contact" and "information" pages:

1. Make a copy of "controller/information/contact.php", "language/english/information/contact.php" and "view/template/default/information/contact.tpl" and rename each copy from "contact" to "custom".

2. Open the files and replace "information/contact" with "information/custom".

3. Open my OpenCart store and specify "route=information/custom".

These steps result in the same error as the OP of this thread (different route name, same error).

Any help would be much appreciated.

New member

Posts

Joined
Tue Jul 28, 2009 10:09 pm

Post by Qphoria » Mon Aug 10, 2009 10:41 pm

If you want the custom pages to be in the information sidebox you can just create more information pages.
If you want the custom pages to be in their own sidebox, you can use codebits Directory Module. It is basically a clone of the information module:
http://forum.opencart.com/viewtopic.php?f=23&t=5481

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by npws » Tue Aug 11, 2009 12:24 am

That didn't answer my question at all.... as clearly stated, I am looking to build a new page which I can modify through TPL/PHP files, not through a WYSIWYG editor in the admin panel.

I did, however, get it working by myself. The only thing I forgot to do, was:

In "catalog/controller/information/custom.php" I had to rename the class on Line 2 as "Controllerinformationcustom".

To the OP of this thread, that was most likely your mistake too. Rename that class extender and you should be good to go.

New member

Posts

Joined
Tue Jul 28, 2009 10:09 pm
Who is online

Users browsing this forum: Semrush [Bot] and 83 guests