Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Main page text displays on all pages

Main page text displays on all pages

Locked

Views: 3,060

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
25 Feb 2008, 11:55 AM
#1
g3steve avatar

g3steve

New Zenner

Join Date:
Nov 2007
Posts:
55
Plugin Contributions:
0

Main page text displays on all pages

Hello all,

Im wondering if someone can help me, im having a few problems with the content of my define_main_page displaying on all my pages,

Example: if you go here:

http://www.you-save-online.com/shop/

Click on Games Consoles-> from the right hand menu.

The content of the main page still says there and the sub categories displays under the main page content.

How do i remove the main page from displaying when you click on a category which has sub categories. If you click on a link with no sub categories eg. Blu Ray & DVD Players, it displays the products fine without the the main page.

Please help!

Thanks alot

Steve

25 Feb 2008, 1:18 PM
#2
g3steve avatar

g3steve

New Zenner

Join Date:
Nov 2007
Posts:
55
Plugin Contributions:
0

Re: Main page text displays on all pages

Does anyone have any ideas on this as ive tried everything i can think of but getting nowhere with it :no:

Thanks

steve

25 Feb 2008, 6:05 PM
#3
j_smith avatar

j_smith

New Zenner

Join Date:
Feb 2008
Posts:
11
Plugin Contributions:
0

Re: Main page text displays on all pages

That is happening because it is the default page, ie: you will get that when no other page is defined.

In other words, if whatever category/sub-category you click on has nothing defined for it you will see the default page.

I am having a similar problem, myself, only in my case it revolves around wanting a subcategory on certain pages but not others.

I am going to investigate EZ pages (through the Admin setup) and see if that will help because I am getting absolutely no replies so far so I am guessing that my problem can probably be fixed quite easily if only I could work out how...

25 Feb 2008, 6:39 PM
#4
g3steve avatar

g3steve

New Zenner

Join Date:
Nov 2007
Posts:
55
Plugin Contributions:
0

Re: Main page text displays on all pages

I see what you mean, but on other installation of zen cart i have which dont have a product under a category but have a list of sub categories, the sub categories show at the top of the page and the default (index) page onlt shows on the main page.

Id really love if someone could help me only showing the main page on the index page, and not repeating it on other pages.

Thank alot

steve

25 Feb 2008, 11:37 PM
#5
j_smith avatar

j_smith

New Zenner

Join Date:
Feb 2008
Posts:
11
Plugin Contributions:
0

Re: Main page text displays on all pages

Well surely you need to add some content for that page? - Something, anything, because otherwise your cart will have nothing to show there and that's simply not allowed short of you customizing the .php template to make that happen.

Do you have a link to your website? - Maybe if I could see what was happening I could advise you better?

26 Feb 2008, 12:04 AM
#6
g3steve avatar

g3steve

New Zenner

Join Date:
Nov 2007
Posts:
55
Plugin Contributions:
0

Re: Main page text displays on all pages

Hello,

I think i have explained that badly, i do have products in the shop, some are under top categories and some under sub categories which are under the top categories, eg. Top category is "Games Consoles" with sub categories of "Playstation 3" etc. When i click on a top category eg. Games Consoles i would like the sub categoies to show to the left hand side of the menu (as they do in my other shops) but instead im still getting the home page text displaying to the right and then the sub category buttons/links displaying under them, Basically i need to remove the home page text that displays on my sub category pages.

If you scroll up a little i have put a link to the shop at the top of the thread.

Thanks

26 Feb 2008, 12:24 AM
#7
g3steve avatar

g3steve

New Zenner

Join Date:
Nov 2007
Posts:
55
Plugin Contributions:
0

Re: Main page text displays on all pages

Hello,

I have found the issue, it was from a FAQ mod i installed, all i ded was remove the open-operations/faq_aplication_top.php file and that fixed it!

Thanks

steve

25 Aug 2008, 3:39 AM
#8
bgroup99 avatar

bgroup99

Zen Follower

Join Date:
Aug 2006
Posts:
197
Plugin Contributions:
0

Re: Main page text displays on all pages

Didn't work for me, when I delete that page, nothing displays at all. The body is blank.

27 Aug 2008, 1:07 AM
#9
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

Re: Main page text displays on all pages

I did not install the FAQ mod (that I know of) and I have the same issue. Any other solutions?

My site is at https://www.burnerbooks.com/index.php.

27 Aug 2008, 1:22 AM
#10
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,607
Plugin Contributions:
0

Re: Main page text displays on all pages

Looks fine to me, did you figure out the problem?

27 Aug 2008, 2:03 AM
#11
bgroup99 avatar

bgroup99

Zen Follower

Join Date:
Aug 2006
Posts:
197
Plugin Contributions:
0

Re: Main page text displays on all pages

Yeah, I don't see the problem in evidence either.

17 Oct 2008, 4:15 PM
#12
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,286
Plugin Contributions:
39

Re: Main page text displays on all pages

I fixed it by commenting out the include for main page defined text in the custom/tpl_index_categories.php as nothing else worked.

<?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>
<div id="indexCategoriesMainContent" class="content"><?php
/**
 * require the html_define for the index/categories page
 */
 [B] //include($define_page);[/B]
?></div>

Main page defined text is now only on the main page and category defined text still works.

~Melanie

17 Oct 2008, 5:24 PM
#13
bgroup99 avatar

bgroup99

Zen Follower

Join Date:
Aug 2006
Posts:
197
Plugin Contributions:
0

Re: Main page text displays on all pages

Ah, too bad I uninstalled the mod a couple weeks ago. Thanks for sharing the fix though! :smile:

Nate