Post by Heilong » Fri Nov 07, 2008 11:26 am

Hi guys,

I want to know how to make the greeting text on the homepage editable from the Control Panel by the admin.
In fact what I want to do is to make an introduction text of the company editable and then link to a page with more details which is also editable by the admin.

Like the information link on the left panel, but I need some text to be displayed on the homepage.

Any ideas ?

New member

Posts

Joined
Mon Sep 01, 2008 5:57 pm

Post by jty » Fri Nov 07, 2008 11:30 am

Fido-x has done it as the Homepage Contribution
You can get it from the Contributions section of Open Cart's main site

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by Qphoria » Fri Nov 07, 2008 11:40 am

There are plans to add this to 0.8.. not sure if hm2k was looking at the homepage contrib or what, but there is something like this on the todo list.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Heilong » Mon Nov 10, 2008 2:14 pm

Thanks guys,

I got it work for the part I needed to modify.

But, as I'm using french language, the specials characters like é or à, are displayed like this : ? .

Any help about that ?

Thanks

New member

Posts

Joined
Mon Sep 01, 2008 5:57 pm

Post by Qphoria » Mon Nov 10, 2008 8:06 pm

Heilong wrote:
But, as I'm using french language, the specials characters like é or à, are displayed like this : ? .

Any help about that ?
Search chinese language support and other language support... there are a few threads about this regarding changing your charset in the language/french/french.php file and/or database

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Heilong » Thu Nov 13, 2008 2:48 pm

I installed the contribution successfully, but when I put online the OC, the admin menu is not displayed anymore.

Is there a way to fix that problem ? I need to have this menu...

Thanks,

New member

Posts

Joined
Mon Sep 01, 2008 5:57 pm

Post by jty » Thu Nov 13, 2008 2:53 pm

Have another look at the instructions in the readme.htm file
The answer should be in there under Step 4 (in 0.7.9 copy)

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by Heilong » Thu Nov 13, 2008 3:06 pm

I'm using version 0.7.7 and I did exactly what was written in the readme file. and for my version of OC I changed the 2nd line as mentionned
Add the following lines to "admin/extension/module/menu.php":–
$view->set('text_homepage', $language->get('text_homepage'));
$view->set('homepage', $url->rawssl('homepage'));

NOTE: If using OpenCart 0.7.7 or 0.7.8, the second line should read as follows:–
$view->set('homepage', $url->ssl('homepage'));
my admin menu is still not displayed.

New member

Posts

Joined
Mon Sep 01, 2008 5:57 pm

Post by jty » Thu Nov 13, 2008 3:16 pm

I don't have that version anymore. I'm using the 0.7.9 version but do you have this part
Edit your store‘s "(path to your store)/admin/template/default/module/menu.tpl" file by inserting the following line:–

['', '', '', null, null],

before the line that reads –

['', '', '', null, null]
Any instructions on editing the menu.tpl ?

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by Heilong » Thu Nov 13, 2008 3:37 pm

That is also what i did...  ???

Could be the version ? I'm not sure...

New member

Posts

Joined
Mon Sep 01, 2008 5:57 pm

Post by jty » Thu Nov 13, 2008 4:08 pm

That's weird. I know the version for 0.7.8 works because I had it working before I moved to 0.7.9

Are you saying that when you go to Admin and go to Catalog, there is no Home Page on the menu ?
Have you installed any other contributions/modules since installing the Home Page contribution, which may have overwritten the menu
Did the SEO or Import/Export modules overwrite your menu.tpl
Have you downloaded the menu.tpl and had another look to see if those lines are still in there?
Do you have it working on a local version which would indicate there is something wrong with the file in your online site.

Also check this

Code: Select all

$view->set('homepage', $url->rawssl('homepage'));

NOTE: [color=red]If using OpenCart 0.7.7 or 0.7.8[/color], the second line should read as follows:–
$view->set('homepage', $url->ssl('homepage'));
Note there is no 'raw' for version 0.7.7 and 0.7.8
Last edited by jty on Thu Nov 13, 2008 4:12 pm, edited 1 time in total.

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by fido-x » Thu Nov 13, 2008 4:40 pm

Hi Hellong,

I've just done a test on this. I installed a clean 0.7.7 with no mods, then added the current homepage package (following the instructions - in fact, I copied and pasted from the documentation into the relevant files) and everything worked as it should. I can only conclude that you must have made a mistake somewhere while editing the menu files, maybe a typo? eg. did you forget the comma at the end of the line?

Fido-X.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by Heilong » Fri Nov 14, 2008 11:02 am

Hi guys,

The problem was actually a mistake in the admin menu.tpl file, some lines not well commented. Now it's working.

But I still have a problem of characters encoding, I'm using french in my website and everything I write after a special french character for home page description all the after is not displayed on the homepage.

MySQL database setting set to "utf8_unicode_ci" even for the homepage and homepage_description tables.

Any ideas what to do ? Maybe when inserting values in the database ? i'm investigating...

New member

Posts

Joined
Mon Sep 01, 2008 5:57 pm
Who is online

Users browsing this forum: No registered users and 4 guests