Forums / Templates, Stylesheets, Page Layout / how to edit main page help please

how to edit main page help please

Views: 1,660

Results 1 to 20 of 22
27 Oct 2011, 5:48 PM
#1
kevin_baker avatar

kevin_baker

New Zenner

Join Date:
Oct 2011
Posts:
12
Plugin Contributions:
0

how to edit main page help please

i have just started to work on zen cart and i carnt ad text to the main page with the editor. i have checked on the server and the text is on the main page file. but it is not showing on the home page. i can ad text every where else ie. page 2,3,4 etc but not the home.
ANY IDEAS PLEASE. AS I WOULD LIKE TO GET MY SITE UP AND RUNNING..

27 Oct 2011, 6:23 PM
#2
kevin_baker avatar

kevin_baker

New Zenner

Join Date:
Oct 2011
Posts:
12
Plugin Contributions:
0

Re: how to edit main page help please

i have just started to work on zen cart and i carnt ad text to the main page with the editor. i have checked on the server and the text is on the main page file. but it is not showing on the home page. i can ad text every where else ie. page 2,3,4 etc but not the home.
ANY IDEAS PLEASE. AS I WOULD LIKE TO GET MY SITE UP AND RUNNING.

27 Oct 2011, 6:41 PM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: how to edit main page help please

As always, a link to the site would help.

27 Oct 2011, 7:25 PM
#5
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: how to edit main page help please

Have you built your CUSTOM template yet? And constructed the relevant OVER-RIDE FOLDERS?

20 years a Zencart User

27 Oct 2011, 7:33 PM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: how to edit main page help please

And please don't spam the forums with multiple posts - you've asked the same question five times.

27 Oct 2011, 7:35 PM
#7
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: how to edit main page help please

I'm seeing Welcome to our store! on your main page - what else have you added ?

27 Oct 2011, 8:13 PM
#8
kevin_baker avatar

kevin_baker

New Zenner

Join Date:
Oct 2011
Posts:
12
Plugin Contributions:
0

Re: how to edit main page help please

We Supply the public and Re Sellers with top quality engraved products at below high street prices. please feel free to have a look around my store at the many products i sell. We Produce Solid brass plaques/signs, bench memorial plaques, pet memorial plaques, Human memorial plaques. trophy plaques,name badges and engarved pens.

ALL THE ABOVE INFORMATION IS ON THE SERVER. BUT ITS NOT SHOWING ON MAIN PAGE.:

27 Oct 2011, 11:28 PM
#9
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: how to edit main page help please

kevin baker:

ALL THE ABOVE INFORMATION IS ON THE SERVER. BUT ITS NOT SHOWING ON MAIN PAGE.:

That's all well and good... but you don't say WHERE it is on the server.

My earlier question is attempting to determine that answer.

What is the directory PATH to that file?

You see... if you have a CUSTOM template, then it is likely that the files for the HTML defines are a bit "wonky".

20 years a Zencart User

28 Oct 2011, 12:55 AM
#10
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: how to edit main page help please

Could this be the problem?

<!-- deprecated - to use uncomment this section

<div id="" class="content">TEXT_MAIN</div> --> <!-- deprecated - to use uncomment this section <div id="" class="content">TEXT_INFORMATION</div> -->

The best way to learn is to try stuff. But, back it up first.

28 Oct 2011, 12:56 AM
#11
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: how to edit main page help please

You see... if you have a CUSTOM template, then it is likely that the files for the HTML defines are a bit "wonky".

He's using the classic template.

The best way to learn is to try stuff. But, back it up first.

28 Oct 2011, 5:52 AM
#12
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: how to edit main page help please

The "deprecated" sections are untouched from stock, and cannot be related to the problem.

Do you have a file /includes/languages/english/html_includes/classic/define_main_page.php? If so, what is its content?
And what is the content of /includes/languages/english/html_includes/define_main_page.php?

28 Oct 2011, 8:54 AM
#13
kevin_baker avatar

kevin_baker

New Zenner

Join Date:
Oct 2011
Posts:
12
Plugin Contributions:
0

Re: how to edit main page help please

Do you have a file /includes/languages/english/html_includes/classic/define_main_page.php? If so, what is its content?

answer:
welcome to The Engraving Shop. <br /><p>We Supply the public and Re Sellers with top quality engraved products at below high street prices. please feel free to have a look around my store at the many products i sell. We Produce Solid brass plaques/signs, bench memorial plaques, pet memorial plaques, Human memorial plaques. trophy plaques,name badges and engarved pens.

</p>

And what is the content of /includes/languages/english/html_includes/define_main_page.php?

answer: <div style="text-align: center;"><span style="font-family: monospace;"><font size="5" style="font-weight: bold; font-style: italic;">welcome to our new store.</font

28 Oct 2011, 1:11 PM
#14
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: how to edit main page help please

So what appears to be your correct template copy is not being used... Double check the exact filename and foldername just to be sure. Capitalization matters. I can't take time to look at things now, maybe someone else can.

28 Oct 2011, 1:17 PM
#15
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: how to edit main page help please

From your new thread, you have changed templates and are still getting the same result. That rules out a wonky template copy of /includes/templates/classic/templates/tpl_index_default.php, but not an improperly edited /includes/templates/template_default/templates/tpl_index_default.php.

You should really keep all of your posts about this problem in one thread so people don't get confused as to the current status.

28 Oct 2011, 1:21 PM
#16
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: how to edit main page help please

The file you want now is includes/languages/english/html_includes/denim/define_main_page.php

28 Oct 2011, 1:23 PM
#17
kevin_baker avatar

kevin_baker

New Zenner

Join Date:
Oct 2011
Posts:
12
Plugin Contributions:
0

Re: how to edit main page help please

includes/languages/english/html_includes/denim

the file in here is
define_main_page

and in there is

test page text bla bla bla bla<br />
<br />
<a><br /></a>
but this is not showing on site

28 Oct 2011, 6:53 PM
#18
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: how to edit main page help please

Kevin... in your post #11...

/includes/languages/english/html_includes/define_main_page.php

... is the file that is rendering the content showing on the site.

and...

/includes/languages/english/html_includes/classic/define_main_page.php

... was NOT rendering its content.

(Though I see now that you have a template called denim).

even so...

Zencart's OVERRIDE system works this way.

  1. it will look FIRST for a file in an over-ride folder. IF it finds a file that is OK, it will use that file.

  2. If it does not find the file it needs in a valid over-ride folder, it will go fetch the CORE (default) file.

In your case, number "2" seems to be happening, suggesting either:

a) a corrupted /missing file at: /includes/languages/english/html_includes/define_main_page.php

b) a mis-named over-ride folder

If you load a fresh define_main_page.php file (from a download of ZC software - use the DEFAULT file) into your includes/languages/english/html_includes/denim folder... what happens?

The point is that zencart works this way... if it is not showing the file in the over-ride area, then it is simply reverting to the default file.

You need to address WHY it is not seeing the over-ride file, and that's usually a case of badly edited PHP code, a missing or mis-naled file, or a file in the wrong location.

IE: it can only be an error caused by a person - not the software.

20 years a Zencart User

28 Oct 2011, 7:16 PM
#19
kevin_baker avatar

kevin_baker

New Zenner

Join Date:
Oct 2011
Posts:
12
Plugin Contributions:
0

Re: how to edit main page help please

i am totaly lost here can some one tell me what to do exactly or can someone take a look at my files on my server.

28 Oct 2011, 11:05 PM
#20
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: how to edit main page help please

What you need to do is examine the precise folder/filenames for the files mentioned, ON YOUR SERVER, and their actual contents. All we could do is look at what you should be able to see if you look carefully - it's not complicated.
Re post #13, what do you have in /includes/templates/template_default/templates/tpl_index_default.php?