Post by saccarrep » Thu Jan 28, 2010 6:06 pm

Well I try to find simple HTML module in opencart but I can't find one, so I try to make it based on existing module in opencart.

I don't know if this will help anyone else but this make me easier to add custom code to the module.

If anyone want to try it, you can get it here http://www.opencart.com/index.php?route ... ion_id=396

cheers ;)

Before you judge a book by its cover, you've got to flip through the pages

Image


User avatar
New member

Posts

Joined
Thu Jan 28, 2010 5:59 pm

Post by saccarrep » Fri Jan 29, 2010 7:28 am

Updated

Now you can change the module header from the admin area

http://www.opencart.com/index.php?route ... ion_id=396

Before you judge a book by its cover, you've got to flip through the pages

Image


User avatar
New member

Posts

Joined
Thu Jan 28, 2010 5:59 pm

Post by Qphoria » Fri Jan 29, 2010 8:46 am

saccarrep wrote:Updated

Now you can change the module header from the admin area
This is a good idea on paper, but it removes the ability to have multiple languages, unless you've added an array for the fields to create a different title in each language.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by saccarrep » Fri Jan 29, 2010 9:54 am

Yes you're right.

But you still can get the multilanguage by emptying the title and set the header to show. And for generic header, title can be used

Before you judge a book by its cover, you've got to flip through the pages

Image


User avatar
New member

Posts

Joined
Thu Jan 28, 2010 5:59 pm

Post by dancing1130 » Fri Jan 29, 2010 11:47 pm

It is a very good model,And i have try as your said.But it is not work,Please help me.I have upload the file.And also set the model.

Newbie

Posts

Joined
Fri Jan 29, 2010 11:43 pm

Post by saccarrep » Sat Jan 30, 2010 7:42 am

dancing1130 wrote:But it is not work,Please help me.I have upload the file.And also set the model.
what error did you get? have you try to reupload the files? maybe some of them are not yet uploaded.

Thank you for trying this module ;D

Before you judge a book by its cover, you've got to flip through the pages

Image


User avatar
New member

Posts

Joined
Thu Jan 28, 2010 5:59 pm

Post by dancing1130 » Sat Jan 30, 2010 11:04 am

saccarrep wrote:
dancing1130 wrote:But it is not work,Please help me.I have upload the file.And also set the model.
what error did you get? have you try to reupload the files? maybe some of them are not yet uploaded.

Thank you for trying this module ;

Thank you very much,Here is the file what i have upload and install.But it has some problem,Please check and help me.Thank you very much!!
1.JPG

The front page - 1.JPG (51 KiB) Viewed 7497 times

2.JPG

The admin page - 2.JPG (50.53 KiB) Viewed 7497 times


Newbie

Posts

Joined
Fri Jan 29, 2010 11:43 pm

Post by saccarrep » Sun Jan 31, 2010 12:26 am

Well basically what you could insert is html code

This is the normal view in admin
Image

While this is if you click the source button
Image

And this is how it will display
Image

Hope this help ;)

Before you judge a book by its cover, you've got to flip through the pages

Image


User avatar
New member

Posts

Joined
Thu Jan 28, 2010 5:59 pm

Post by dancing1130 » Sun Jan 31, 2010 4:48 pm

Hi,
Thank you very much,I have try set as you told me.But it is also not work,Is there any file i need to set up.
AS the .htaccess.txt file.Or the other.Thank yu very much!!!


saccarrep wrote:Well basically what you could insert is html code

This is the normal view in admin
Image

While this is if you click the source button
Image

And this is how it will display
Image

Hope this help ;)

Newbie

Posts

Joined
Fri Jan 29, 2010 11:43 pm

Post by saccarrep » Sun Jan 31, 2010 5:47 pm

dancing1130 wrote:I have try set as you told me.But it is also not work,Is there any file i need to set up.
AS the .htaccess.txt file.Or the other.
Well you don't have to modify anything for this module to work.
Do you try this module on a live site or on a local computer? if in a live site can you give the link?

Maybe you could try redownload the the file, there should be 6 files in the zipped file
mymodule\admin\controller\module\mymodule.php
mymodule\admin\language\language\english\module\mymodule.php
mymodule\admin\view\template\module\mymodule.tpl
mymodule\catalog\controller\module\mymodule.php
mymodule\catalog\language\english\module\mymodule.php
mymodule\catalog\view\theme\default\template\module\mymodule.tpl

If you try to put simple text, is there still any error?

I have tried this module in local and also live site but I don't encountered any error

Before you judge a book by its cover, you've got to flip through the pages

Image


User avatar
New member

Posts

Joined
Thu Jan 28, 2010 5:59 pm

Post by richard211986 » Sun Jan 31, 2010 5:55 pm

would this work in 1.3.2?

Active Member

Posts

Joined
Sun Sep 20, 2009 5:34 am

Post by saccarrep » Mon Feb 01, 2010 10:49 am

richard211986 wrote:would this work in 1.3.2?
Well I didn't try it in 1.3.2, sorry

Before you judge a book by its cover, you've got to flip through the pages

Image


User avatar
New member

Posts

Joined
Thu Jan 28, 2010 5:59 pm

Post by saccarrep » Wed Feb 03, 2010 3:13 am

Updated!

Simple HTML Module now support multilanguage header and also content

Cheers ;)
mymodule_v1.3.jpg

Admin View - mymodule_v1.3.jpg (46.17 KiB) Viewed 7416 times

Last edited by saccarrep on Wed Feb 03, 2010 3:22 am, edited 1 time in total.

Before you judge a book by its cover, you've got to flip through the pages

Image


User avatar
New member

Posts

Joined
Thu Jan 28, 2010 5:59 pm

Post by saccarrep » Wed Feb 03, 2010 3:14 am

Somsak2004 wrote:in some module name Freebox Simply for you from Thailand.
Well I guess both of us make the same module ;D

Before you judge a book by its cover, you've got to flip through the pages

Image


User avatar
New member

Posts

Joined
Thu Jan 28, 2010 5:59 pm

Post by txyaaj » Sun Mar 21, 2010 11:40 pm

I just downloaded this module (mymodule_v1.3) and installed it on a live site on OC v1.4. Everything works great just as expected in Firefox, but when view in IE, all right sideboxes are shown in left at bottom of the left sideboxes and the main/center contents box is only one character wide.

Is this caused by missing DIV's ? I tried to look through the files, but didn't see div's that would cause the problem.

User avatar
New member

Posts

Joined
Thu Feb 18, 2010 12:48 pm
Location - USA

Post by vitamin X » Tue Mar 23, 2010 2:33 am

Hi,

I just installed it and it's not working.

I have a small problem.

Fatal error: Call to a member function https() on a non-object in /home/asyan4/public_html/webshop2/admin/controller/module/mymodule.php on line 66

This is the code on line 66: 'href' => $this->url->https('common/home'),

It's working for others, but on my page not :(

Newbie

Posts

Joined
Tue Feb 23, 2010 4:38 am

Post by jackfitz » Tue Mar 23, 2010 3:08 pm

I got the same error,
Fatal error: Call to a member function https() on a non-object in /home/folder/domains/store.com.au/public_html/admin/controller/module/mymodule.php on line 66

Outdoor Hammock


New member

Posts

Joined
Thu Mar 18, 2010 1:14 pm

User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by saccarrep » Mon Mar 29, 2010 4:10 pm

Thx Qphoria, I'll try to fix it

Before you judge a book by its cover, you've got to flip through the pages

Image


User avatar
New member

Posts

Joined
Thu Jan 28, 2010 5:59 pm

Post by saccarrep » Sun Apr 25, 2010 10:06 pm

Updated....

Now works on OpenCart 1.4.7 ;D

Before you judge a book by its cover, you've got to flip through the pages

Image


User avatar
New member

Posts

Joined
Thu Jan 28, 2010 5:59 pm
Who is online

Users browsing this forum: No registered users and 13 guests