Zen Cart Logo
Forums / Basic Configuration / Main Page Define - Product Listing above Main Text?

Main Page Define - Product Listing above Main Text?

Locked

Views: 11,502

Results 1 to 20 of 23
This thread is locked. New replies are disabled.
31 Jan 2009, 6:31 PM
#1
samortensen avatar

samortensen

New Zenner

Join Date:
Jan 2008
Location:
Minnesota
Posts:
87
Plugin Contributions:
0

Main Page Define - Product Listing above Main Text?

In Zencart, I know there has to be a way to move the products above the main page text...but I can't find it in the book, nor on the site, and this is possibly because I am not sure what I am looking for. Lack of terminology.

Is it possible to do this, or is this something that I would have to modify the actual code to do?

My site is Knot & Bauble Shoppe and I am running Zen Cart v1.3.8a/v1.3.8.

Your awesome help would be extremely appreciated.

31 Jan 2009, 7:57 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Main Page Define - Product Listing above Main Text?

I know there has to be a way to move the products above the main page tex

What "products"??
Your "New Products"??

31 Jan 2009, 10:03 PM
#3
samortensen avatar

samortensen

New Zenner

Join Date:
Jan 2008
Location:
Minnesota
Posts:
87
Plugin Contributions:
0

Re: Main Page Define - Product Listing above Main Text?

On the main page there is your Main text, below that is your new products, then specials or featured products (if desired). My question is, can you move that text below the new products for the month?

31 Jan 2009, 10:45 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Main Page Define - Product Listing above Main Text?

In a copy of includes/templates/template_default/templates/tpl_index_default.php - to be saved in the same structure in your template folder find this

<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_NEW_PRODUCTS') { ?>
<?php
/**
 * display the New Products Center Box
 */
?>
<?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>
<?php } ?>

Cut and paste it right before:

<?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>

Save and upload

31 Jan 2009, 11:07 PM
#5
samortensen avatar

samortensen

New Zenner

Join Date:
Jan 2008
Location:
Minnesota
Posts:
87
Plugin Contributions:
0

Re: Main Page Define - Product Listing above Main Text?

I'm not sure I am clear on that. Did you want me to paste "> <?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>" before this section: > <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_NEW_PRODUCTS') { ?>

<?php /** * display the New Products Center Box */ ?> <?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?> <?php } ?>

Doing that makes the whole center and right nav column disappear.:huh:

31 Jan 2009, 11:22 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Main Page Define - Product Listing above Main Text?

The other way around:

Find > cut and paste before

21 Feb 2009, 5:00 AM
#7
eggdashure avatar

eggdashure

New Zenner

Join Date:
Jan 2009
Posts:
28
Plugin Contributions:
0

Re: Main Page Define - Product Listing above Main Text?

Sorry to resurrect an old post. :cool:

Anywho, I've tried what you suggested to move products above text (save for the fact that I'm using the featured products tpl). When I cut it from it's current location and paste it above DEFINE_MAIN_PAGE_STATUS featured disappears completely.

Paste it back below and everything is happy again. Am I missing something?

Thanks!
Matt

21 Feb 2009, 6:22 AM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Main Page Define - Product Listing above Main Text?

Matt,

Paste it back below and everything is happy again. Am I missing something?
This is what you need to cut and where it needs to be pasted - Only highlighted code

<?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
<?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>
<?php
18 Mar 2009, 2:10 PM
#9
moggi1964 avatar

moggi1964

New Zenner

Join Date:
Mar 2009
Location:
New Jersey USA
Posts:
67
Plugin Contributions:
0

Re: Main Page Define - Product Listing above Main Text?

Ignore.

I need to try this before posting to ask if I should try this; right!

18 Mar 2009, 6:37 PM
#10
moggi1964 avatar

moggi1964

New Zenner

Join Date:
Mar 2009
Location:
New Jersey USA
Posts:
67
Plugin Contributions:
0

Re: Main Page Define - Product Listing above Main Text?

Okay!

I tried cutting and pasting code in tpl_index.php to try to find a way to create another block of text between Featured Items and the bottom banner.

Hasn't worked :(

Can anyone suggest an idea of what I need to do?

Thanks.

19 Mar 2009, 3:22 PM
#11
moggi1964 avatar

moggi1964

New Zenner

Join Date:
Mar 2009
Location:
New Jersey USA
Posts:
67
Plugin Contributions:
0

Re: Main Page Define - Product Listing above Main Text?

I made a change in the /english/index.php file and put text in the TEXT_MAIN category.

This worked as it inserted text under the Featured box but I cannot figure out where to go to control that text: move it; change font; etc.

So, was this the right thing to do and if so how do I change the format of this text?

Thanks.

20 Mar 2009, 11:53 PM
#12
moggi1964 avatar

moggi1964

New Zenner

Join Date:
Mar 2009
Location:
New Jersey USA
Posts:
67
Plugin Contributions:
0

Re: Main Page Define - Product Listing above Main Text?

Here is what now sits underneath my Featured Box:

This is the main define statement for the page for english when no template defined file exists. It is located in: /includes/languages/english/index.php
This is the main define statement for the page for english when no template defined file exists. It is located in: /includes/languages/english/index.php
This is the main define statement for the page for english when no template defined file exists. It is located in: /includes/languages/english/index.php

I cannot figure out what I need to change to be able to manipulate that text. If I change it in index.php it repeats itself three times.

If I delete ```php
define('TEXT_MAIN','This is the main define statement for the page for english when no template defined file exists. It is located in: <strong>/includes/languages/english/index.php</strong>');


I am sure that I should be able to control that text placement from somewhere else and not through index.php but I have spent hours finding out nothing :unsure:

Hell, I can't even remember how I got the text to appear there in the first place.

Help please!
21 Mar 2009, 2:50 AM
#13
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Main Page Define - Product Listing above Main Text?

I tried cutting and pasting code in tpl_index.php to try to find a way to create another block of text between Featured Items and the bottom banner.
I am sure that I should be able to control that text placement from somewhere else and not through index.php
Display is normally in a "tpl_xxx.php" file
Can not see your site and what the issue might look like???

Post a link...

21 Mar 2009, 1:08 PM
#14
moggi1964 avatar

moggi1964

New Zenner

Join Date:
Mar 2009
Location:
New Jersey USA
Posts:
67
Plugin Contributions:
0

Re: Main Page Define - Product Listing above Main Text?

I just noticed the address field has changed and now has:

main_page= at the end of it.

Anyway, here is the link:

http://apmamerica.com/zencart/index.php?main_page=

Thanks for your continuing help Cobra

21 Mar 2009, 2:21 PM
#15
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Main Page Define - Product Listing above Main Text?

moggi1964,
Do you have an edited tpl_main_page.php in your template structure? Or even if you edited the core file in template_default/common?

Replace with an original....As it looks as though you broke something

21 Mar 2009, 4:22 PM
#16
moggi1964 avatar

moggi1964

New Zenner

Join Date:
Mar 2009
Location:
New Jersey USA
Posts:
67
Plugin Contributions:
0

Re: Main Page Define - Product Listing above Main Text?

Kobra,

good question!

I will take a look at it later today and if necessary I'll reload the originals.

By the way, do you know how to insert text under the Featured Product box; that IS what I am trying to achieve :dontgetit

Thanks.

21 Mar 2009, 7:07 PM
#17
moggi1964 avatar

moggi1964

New Zenner

Join Date:
Mar 2009
Location:
New Jersey USA
Posts:
67
Plugin Contributions:
0

Re: Main Page Define - Product Listing above Main Text?

Kobra,
you're a bloody genius mate :hug:

Now, I suppose I am back to where I came in so I still need to work out how the hell I am going t get text under the Featured Product box on the main page.

I am of course, open to suggestions:D

Cheers!

25 Apr 2009, 12:39 PM
#18
asphole avatar

asphole

New Zenner

Join Date:
Mar 2007
Posts:
25
Plugin Contributions:
0

Re: Main Page Define - Product Listing above Main Text?

Not sure if this is what you are trying to do but I also moved my text block under the other product items (featured/new etc)

This is what i do: Open the following file:

includes/templates/YOUR_TEMPLATE/templates/tpl_index_default.php

Find:

<?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?> <?php /** * get the Define Main Page Text */ ?> <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div> <?php } ?>

And then move this to the bottom of the page (just above the last div tag)

Hope this helps.

25 Apr 2009, 1:08 PM
#19
moggi1964 avatar

moggi1964

New Zenner

Join Date:
Mar 2009
Location:
New Jersey USA
Posts:
67
Plugin Contributions:
0

Re: Main Page Define - Product Listing above Main Text?

asphole,

thanks for sharing that. I will give it a go.

Cheers!

29 Jul 2009, 3:24 AM
#20
luxurywatches avatar

luxurywatches

New Zenner

Join Date:
Jul 2009
Posts:
20
Plugin Contributions:
0

Re: Main Page Define - Product Listing above Main Text?

asphole,

thanks for sharing that.
My site (Luxury watches for sale)has been improved
:clap: